load subdirectory specific vimrc files
- private persistence file to enable persistence over concurrent vim instances. - add convenience variables g:localvimrc_sourced_once and g:localvimrc_sourced_once_for_file.
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