I would like to know, if there is a way in vim/vi to provide a different vimrc file. I am looking at managing 2 different vimrc files. For the contents I checkout/checkin in version control I want to use different set of commands and not the normal one in my .vimrc
file
For Example.
My .vimrc
file contains a command to automatically delete any trailing space while saving a file. But, I don't want this feature to be activated for specific files.
So any way to provide a different vimrc file ( maybe at command line, giving it as parameter each time as vim –vimrc=somefile file-to-open) ?
Best Answer
See the manpage: