Compile vim from source with:
./configure --prefix=$(readlink -f ~/roxma/.local_vim)/ --with-features=huge --enable-pythoninterp && make && make install
Compile cmake from source with:
mkdir ~/.local_cmake
./configure --prefix=$(readlink -f ~/.local_cmake)/
make && make install
Ctrl-OJump back to the previous (older) location. Use the ':jumps' command to see a list of jump history.Ctrl-I(same as Tab) Jump forward to the next (newer) location.Ctrl-]go to definitionCtrl-w Ctrl-]Open the definition in a horizontal split
Ctrl-BMove to beginning of command line.Ctrl-EMove to end of command line.Ctrl-WDelete the word before the cursor.Ctrl-UDelete all words before the cursor.Ctrl-FOpen command line window.veyto select a word, and then:<C-r>0to paste the word to command line. where0is the register.
-
Replace one by one
:s/search_string/replace_string/to replace the first string found in the cursor line, Thennto find the next, then&to repeat the last substitute command.ssubstitute
-
Replace all
:%s/search_string/replace_string/g%Traverse and Execute all linesgReplace all occurance in the line.
-
Replace inside blocks
vorV, and then:s/search_string/replace_string/
gqFormat lines according totextwidth=Auto indent
vimdiff FILE_LEFT FILE_RIGHTorvim -d FILE_LEFT FILE_RIGHTor:vertical diffsplit FILE_RIGHT
:set pasteand:set nopaste, used to paste some snippet of code, that already has indentatio.ctrl-r 0to paste register 0 content in insert mode.:registerto see the registers' values.
:shOpen a bash shell.:read !cmdExecute a shell command, read the output into vim.
:set makegrp=make\ alland then:make.:makewill compile if you are using a Makefile. Use these to examine the compile errors::copenopen a mini-window with list of errors- hit enter on an error to jump to line
:cclosecloses the mini-window:cwtoggles the mini-window (if errors exist)