localvimrc : load subdirectory specific vimrc files
| script karma |
Rating 152/55,
Downloaded by 2499
|
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| Markus Braun |
| |
| script type |
| utility |
| |
| description |
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 |
| |
| install details |
localvimrc is now distributed as a vimball (see :help vimball)
vim localvimrc.vba
:so %
:q
and that's all! |
| |
script versions (upload new version)
Click on the package to download.
| localvimrc.vba |
2.1.0 |
2012-09-25 |
7.2 |
Markus Braun |
- add possibility to make decisions persistent
- use full file path when storing decisions |
| localvimrc.vba |
2.0.0 |
2012-04-05 |
7.2 |
Markus Braun |
- added g:localvimrc_whitelist and g:localvimrc_blacklist settings.
- ask only once per session and local vimrc before loading it, if it didn't change. |
| localvimrc.vim |
2758 |
2009-05-11 |
7.0 |
Markus Braun |
- source .lvimrc in a sandbox to better maintain security, configurable using g:localvimrc_sandbox
- ask user before sourcing any local vimrc file, configurable using g:localvimrc_ask
|
| localvimrc.vim |
1870 |
2007-09-28 |
7.0 |
Markus Braun |
- new configuration variable g:localvimrc_name to change filename
- new configuration variable g:localvimrc_count to limit number of loaded files |
| localvimrc.vim |
1613 |
2007-04-05 |
7.0 |
Markus Braun |
- switched to arrays in vim 7
- escape file/path names correctly |
| localvimrc.vim |
1.2 |
2002-10-09 |
6.0 |
Markus Braun |
Initial upload |
ip used for rating: 184.72.184.104
|