VIM on Windows without installation

Category: Windows
------------------------------------------------------------

VIM can be used on Windows without installing it. So, if PC does not have access permissions, then simply follow these instructions to get VIM:

Installation:
1. Download VIM runtime files.
2. Download VIM GUI executable files for Windows.
3. Extract both archives, and copy GUI executables to extracted VIM run time folder.
4. Run "gvim.exe"!

For example:
1. Download VIM runtime: vim73_46rt.zip (Size about 8 MB),
2. Then download VIM GUI executable files: gvim73_46.zip (Size about 1.5 MB).
3. Extract vim73_46rt.zip (Creates directory structure like: vim73_46rt\vim\vim73).
4. Extract gvim73_46.zip (Creates directory structure like: gvim73_46\vim\vim73).
5. Now copy all files from "gvim73_46\vim\vim73\*.*" to "vim73_46rt\vim\vim73".
6. Goto "vim73_46rt\vim\vim73" and run "gvim.exe".
7. That's it, VIM is ready to use.

Problems:
A very obvious problem this VIM faces is "no syntax coloring" and "backspace does not work!".
One simple solution is to configure VIM.

Follow this steps to bare minimum VIM configuration:
1. Run "gvim.exe".
2. Goto: Edit-->Startup Settings. (This will open VIM configuration file).
3. Type following in that file and save it.
set bs=2
syn on

4. Restart "gvim.exe"

One obvious question, where does VIM stores .vimrc? 
For Windoes, VIM uses _vimrc, and stores it in: "C:\Documents and Settings\UserName\_vimrc"

References:

Comments

Post a Comment