Vim Geek (@vimgeek) header
Vim Geek (@vimgeek) profile picture

Tweeting Vim tips | Tweets by @susam

Joined January 2010
Photo by Vim Geek (@vimgeek)Photo by Vim Geek (@vimgeek)Photo by Vim Geek (@vimgeek)Photo by Vim Geek (@vimgeek)
Vim Geek retweeted
It took me a while to realize what this picture on the cover of the book "Introduction to Analytic Number Theory" (Apostol, 1976) really means. Special thanks to @LavaboMouille for helping me interpret this picture correctly.
1
19
3
82
Vim Geek retweeted
Released Muboard 0.5.0. It now supports GitHub Flavored Markdown (GFM). GFM extensions like tables, task lists, strikethrough, autolinks, etc. are supported now. Website: muboard.net/ Source: github.com/susam/muboard #mathematics #latex #javascript #programming
5
10
Vim Geek retweeted
Execute a command and insert its standard output below the cursor with this command: :r !{cmd} For example, on a Linux, macOS, or Unix system, try this: :r !cal #vim #unix #linux
1
3
Latency Exists, Cope! - web.archive.org/web/20181004… This blog post from 2007 discusses these four strategies to design for latency: good decomposition, asynchronous interactions, non-monolithic data, and designing for active/active. #software #design #architecture #programming
1
4
Vim Geek retweeted
Replying to @JC_SoCal
This Twitter thread has a description of how the “:w !sudo tee %” command works: teapawt.org/susam/status/139099141… . Apparently, this trick is known at least since 2005. By the way, put double-quotes around percent (%) if your filename has spaces.
The famous Vim sudo-write trick: You open a file, edit it, and save it only to get the E45 error message. You now realize that only root can edit the file. What do you? Start over? No, instead try this: :w !sudo tee "%" Learnt it from vim.fandom.com/wiki/Su-write… back in 2005. #vim
1
7
Vim Geek retweeted
The famous Vim sudo-write trick: You open a file, edit it, and save it only to get the E45 error message. You now realize that only root can edit the file. What do you? Start over? No, instead try this: :w !sudo tee "%" Learnt it from vim.fandom.com/wiki/Su-write… back in 2005. #vim
4
7
4
39
Vim Geek retweeted
How does :w !sudo tee "%" work? :w !{cmd} - Executes {cmd} with all lines in buffer as standard input. % - Expands to current filename. Quotes around it keep it as a single argument even if the filename contains whitespace. tee {file} - Copies stdin to stdout and {file}. #vim
1
2
12
Vim Geek retweeted
For more information on the command :w !sudo tee "%", enter the following commands in Vim: :help :w_c :help current-file :help :_% Also, enter the following command in shell: man tee I hope this was fun! #vim #unix #linux #shell #programming
1
10
Vim Geek retweeted
Replying to @Microsoft
Incorrect. Vim!
1
4
Vim Geek retweeted
And vice versa! 🙂
1
1
6
Replying to @vimgeek
dd :)
1
3
Replying to @vimgeek
Don’t know about favorite, but using :cdo to run a command on every entry in the quickfix list is super nice.
1
3
Replying to @vimgeek
It changes depending on what I am working on , Been using grep and vimgrep and quickfix list a lot lately, so that have to be it. Besides that, I use nvr to send remote commands and VimL expression and opening files on the existing process is also are very interesting feature.
1
1
The C++ reference website has a nice summary of popular data models: en.cppreference.com/w/cpp/la… I like how Windows chose LLP64 to maintain backward compatibility with LP32. On the other hand, Linux, BSD, macOS, etc. made the more pragmatic choice of LP64. #programming #linux #unix
2
12
Vim Geek retweeted
With Vim 8, you can copy or git clone plugins to ~/.vim/pack/plugins/start and Vim will load them automatically on starting. You can manage them with commands like git clone, rm -rf, ln -snf, or with shell aliases for them. See also susam.in/blog/lisp-in-vim-wi… (that section only).
Replying to @vimgeek
vim * -> /pattern -> cw -> n . n . -> :wn -> n . n.
1
2
Replying to @vimgeek
CTRL-v
1
1
2
ci" -- change between ""
1
1
We are bringing vim-easymotion to macOS. Now you can access most of UI elements without your hands leaving the keyboard. Hope #vim users will love it as we do ♥️ @VimGeeks @vimgeek #macOS
1
5