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 

Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts