How to start vim without executing /etc/vimrc?

Posted by florin on Super User See other posts from Super User or by florin
Published on 2010-05-13T21:01:43Z Indexed on 2010/05/13 21:04 UTC
Read the original article Hit count: 481

Filed under:
|
|

On my Linux server at work, the admins did not install cscope, and I installed it from source in my home directory and added it to the $PATH. The trouble is, the /etc/vimrc has a reference to /usr/bin/cscope which does not exist and everytime I start vim, it complains about that and I have to press for that message to go away.

It is interesting that if I remove cscope from my $PATH, I don't get that behavior - so it is possible that vim is testing that cscope exists somewhere, and only then executing the cscope configuration - but then it gets it wrong!

So my question is: can I set something up in my .vimrc so it does not source the global /etc/vimrc? I don't want to move cscope out of PATH, as I don't want to type the full directory name every time I run it from the command line.

© Super User or respective owner

Related posts about vim

Related posts about vimrc