How to break a line in vim in normal mode?

I don’t know of a single key command, but a lot of times I do “r” then “Enter” to break a line. “r” replaces the current character under the cursor without going into insert mode. This may not be what you want if you don’t want to replace a character…

How can I install MacVim on OS X?

Step 1. Install homebrew from here: http://brew.sh Step 1.1. Run export PATH=/usr/local/bin:$PATH Step 2. Run brew update Step 3. Run brew install vim && brew install macvim Step 4. Run brew link macvim You now have the latest versions of vim and macvim managed by brew. Run brew update && brew upgrade every once in … Read more

UltiSnips and YouCompleteMe

Another option is using the SuperTab plugin: ” if you use Vundle, load plugins: Bundle ‘ervandew/supertab’ Bundle ‘Valloric/YouCompleteMe’ Bundle ‘SirVer/ultisnips’ ” make YCM compatible with UltiSnips (using supertab) let g:ycm_key_list_select_completion = [‘<C-n>’, ‘<Down>’] let g:ycm_key_list_previous_completion = [‘<C-p>’, ‘<Up>’] let g:SuperTabDefaultCompletionType=”<C-n>” ” better key bindings for UltiSnipsExpandTrigger let g:UltiSnipsExpandTrigger = “<tab>” let g:UltiSnipsJumpForwardTrigger = “<tab>” let … Read more