How to set vim/gvim on windows?

Using the following steps one can setup vim/gvim to run on windows. 1) Add the following new variable VIM on your system. Example: VIM=C:\apps\vim\vim73 (Where C:\apps\vim\vim73 is where vim/gvim is installed) 2) Copy the file %VIM%\vimrc_example.vim as _vimrc in %VIM% folder 3) Add the following 2 lines at the end in %VIM%\_vimrc so it sets... Continue Reading →

Advertisements

Useful commands in vi to save/quit

There are few commands one can use to save a file n To save and quit: <esc>:wq To save (if modified) and then quit, if not modified then does not save quit: <esc>:x (by jwood@opsource.net) To save (if modified) and then quit, if not modified then does not save quit: <esc>ZZ (by boomslaang@hotmail.com) To save... Continue Reading →

Useful commands in vi to delete

Useful commands in vi: To delete lines One at a time: <esc>dd n lines at a time: <esc>ndd - where n is the number of lines to be deleted, eg: 3dd would delete 3 lines To delete all blank lines (lines that don't have spaces in between): <esc>:g/^$/d To delete all blank lines that have... Continue Reading →

Blog at WordPress.com.

Up ↑