Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

load subdirectory specific vimrc files

branch: master

Version 2.3.0

- private persistence file to enable persistence over concurrent vim instances.
- add convenience variables g:localvimrc_sourced_once and g:localvimrc_sourced_once_for_file.
latest commit 3f81e1800a
embear embear authored February 06, 2014 vim-scripts committed February 21, 2014
Octocat-spinner-32 plugin Version 2.3.0 February 21, 2014
Octocat-spinner-32 README Version 2.3.0 February 21, 2014
README
This is a mirror of http://www.vim.org/scripts/script.php?script_id=441

Sometimes, when you work on different projects, you have the problem, that they use different indentation, tab expansion and so on. You need vimrc for each project that overrides your prefered settings from ~/.vimrc

This plugin searches for local vimrc files in the file system tree of the currently opened file. By default it searches for all ".lvimrc" files from the file's directory up to the root directory and loads them in reverse order. The filename and amount of loaded files are customizable through global variables.

For security reasons it the plugin asks for confirmation before loading a local vimrc file and loads it using :sandbox command. The plugin asks once per session and local vimrc before loading it, if the file didn't change since previous loading.

It is possible to define a whitelist and a blacklist of local vimrc files that are loaded or ignored unconditionally.

If you think this plugin could be improved, fork on GitHub and send a pull request or just tell me your ideas.

GitHub: https://github.com/embear/vim-localvimrc
Bitbucket: https://bitbucket.org/embear/localvimrc
Something went wrong with that request. Please try again.