Question: On UNIX / Linux platform, I’ve used Vi or Vim editors and I’m very comfortable with it. I would like to use Vim editor on Windows OS also. How do I install and configure Vim editor for Windows platform ( Windows XP, Vista or Windows 7 )?
Answer: Follow the steps mentioned below to install and configure the gVim editor on Windows platform.
1. Download Vim for Windows
Go to Vim Download page and click on “PC: MS-DOS and MS-Windows”. Click on the ‘gvim72.exe, which is a Self-installing executable.
(or) Download gvim72.exe directly.
2. Install gVim
After downloading click on gVim72.exe, which will install gVim on your Windows as shown below.
Fig: Vim Installation Confirmation
Fig: Vim 7.2 License Agreement
Fig: Vim Installation Option. (Make sure to select “Full” from the drop-down list)
Fig: gVim Installation location ( directory should end with vim )
Fig: gVim Installation Progress and Completion
3. Configure gVim
- On UNIX platform Vim configuration file is called .vimrc
- On Windows platform the vim configuration file is called _vimrc
- _vimrc file is located under $HOME/_vimrc. For example: C:\Documents and Settings\ramesh\_vimrc
- Please note there is a _ (underscore) before vimrc on Windows platform