Vim

How To Use Project Specific .vimrc

Posted by Weston Ganger on May 19, 2016

I was working on an open source plugin where they were sticklers regarding indentation. So I needed to have a project specific .vimrc so I wasnt messing with my global config.

To get this done just add the following lines to your ~/.vimrc


" ~/.vimrc

set exrc "Enable Project Specific settings
set secure "Skip incorrect settings

Now you can add a project specific .vimrc and it will automatically override any global rules with the ones in your project specific .vimrc ex. ~/apps/my_project/.vimrc

Simple pimple.


Related External Links:


Posted in Linux and Tagged with vim linux 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts