Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Toggle sets of Vim plugins

Is there a trick or script that allows me to switch between sets of vim-plugins and -settings easily?

I use vim for very different development and writing. It can be really annoying to have certain webdevelopment-specific plugins turn up, when writing a report in LaTeX, for example.

What I'd like to see is something like RVM.

  • Have a set of "global" plugins and settings; plugins and settings that are always enabled or used.
  • Per project plugins and settings; pluginss, configurations and settings that will be loaded after activating that "environment".
like image 938
berkes Avatar asked Oct 18 '11 07:10

berkes


1 Answers

You may find localvimrc to be useful for point number two. It allows you to have a .lvimrc in your project folder with settings for that specific project. In that file you could load your project-specific plugins by manipulating the runtimepath or by using pathogen/vundle/whatever.

Using this method you would configure your "global" settings and plugins as you would normally.

like image 189
Randy Morris Avatar answered Sep 18 '22 11:09

Randy Morris