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 up vim for windows source $VIM/mswin.vim behave mswin Advertisements Continue reading How to set vim/gvim on windows?

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 and continue edititing: <esc>:w To quit: <esc>:q (Note: You will … Continue reading Useful commands in vi to save/quit