Make it on Linux. The reason to use more than one version of Vim, is because one version would be heavily hacked, for Lisp jobs. I want separate it and make it use it’s own .vimrc file as well.
/usr/bin/vim use -> ~/.vimrc
/my/vim use -> ..../another_vimrc
Command line option
You can give the
-uparameter to your command line. This parameter will force the vim to read the specific vimrc without reading the system wide configurations:You can even create a command alias, with which you can start this custom vim. Put this in your
.bash_profilefor e.g.:And then start this custom vim with:
Building configuration
You can specify the
prefixoption to the configuration script of when you’re building from source. If you set this, vim will look for configuration file in the prefixed directory.For e.g. if you do with stow:
Then the vim will be installed in
/usr/local/stow/vim-7.3/and the custom configuration should be in/usr/local/stow/vim-7.3/etc/vimrc