How to really!! quit vim
2020年10月13日
In terminal
vim todo.txt
Colon (:) (lowercase) q vim :q
Just don't use MacVim @joe :D
In terminal
vim todo.txt
Colon (:) (lowercase) q vim :q
Just don't use MacVim @joe :D
1. Install latest version of Vim 2. Open a file in Vim 3. ⌘-Q and close the terminal 4. Reopen terminal
How to save a file with sudo in VIM
I often move lines around in vim so I have created mappings to make this easier. These map to ⌘-j for move down and ⌘-k for move up. Works in normal, insert, and visual modes. vim nnoremap <D-j> :m…