vimdiff and MacVim

From the terminal If you have the mvim script installed (it is in the dmg, just put it somewhere in your PATH), you can just type in a shell: mvim -d file1 file2 You can alias this to mvimdiff if you like. From within macvim In macvim, like in vim , you can also use: … Read more

Matchit not working

Since Vim comes shipped with matchit plugin, all I needed to do was activate it: vim ~/.vimrc Then add the following into your .vimrc: set nocompatible filetype plugin on runtime macros/matchit.vim

Move to start and end of search lookup

You are looking for cgn. From :help gn: Search forward for the last used search pattern, like with `n`, and start Visual mode to select the match. If the cursor is on the match, visually selects it. If an operator is pending, operates on the match. E.g., “dgn” deletes the text of the next match. … Read more