Last Updated: February 25, 2016
·
719
· klj613

How to have project-specific vimrc

I always wondered how to do this... however I didn't research much... I just came across vim-localvimrc.

This will load .lvimrc files within the file system tree of the currently opened file.

You can put .lvimrc into your project (for everyone to benefit) or the parent directory of the project (outside of version control), like:

/var/www/project-a/.lvimrc
/var/www/project-a/app

or add it to your ~/.gitignore and you can put it anywhere in the project! even sub directories for even more specific settings.

Please use your own ~/.gitignore and DON'T add it to the project's .gitignore. The project's .gitignore is specific for the project! e.g. build files...