sponsor Vim development Vim logo Vim Book Ad

Sauce : Manage multiple vimrc files dynamically

 script karma  Rating 5/2, Downloaded by 382    Comments, bugs, improvements  Vim wiki

created by
Jon Cairns
 
script type
utility
 
description
Sauce is a lightweight manager for multiple vimrc files, which can be used to load different settings for different environments. In short, you can maintain lots of different vim settings files and only load the one(s) you need when you need them.

This can be used as a simple project organiser tool. For instance:

" Load the MyProject sauce
:Sauce MyProject

This "sauce" (read: source) can contain anything that you would put in your vimrc, and can be used to override those settings. In this case, it could be used to CD into the project directory, set spaces instead of tabs, open NERDTree, set configuration options for PHPQA tools, etc.

There's even autocomplete on the sauce names, so you don't need to remember them :)

Visit the Github repository page to read more about usage: https://github.com/joonty/vim-sauce

The autocomplete won't currently work on Windows, but plans are under way to change this.
 
install details
If you're using Vundle, just add:

Bundle 'joonty/vim-sauce.git'

To your vimrc file, then install as normal. Otherwise, extract the files in each folder to the corresponding folder in your ".vim/" directory.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-sauce-0.3.0.tgz 0.3.0 2013-06-26 7.0 Jon Cairns * Add :SauceRename command
* Allow usage of custom skeletons (thanks @UmkaDK)
vim-sauce-0.2.tgz 0.2 2012-05-21 7.0 Jon Cairns You can now copy an existing Sauce when creating a new one, for copying common configurations.

Also, an error no longer appears when using on Windows. However, the autocomplete doesn't yet work.
vim-sauce.tgz 0.1 2012-03-28 6.0 Jon Cairns Initial upload
ip used for rating: 204.236.255.69

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo