Ⅰ. 插件描述
Enable configuration file of each directory.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'thinca/localrc-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'thinca/localrc-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'thinca/localrc-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/thinca/vim-localrc
Ⅳ. 文档说明
You can put a configuration file for the files below the certain directory.
The configuration file is a Vim script of a decided file name like .vimrc.
The file name is specified by |g:localrc_filename|.
Configuration file applied only to a specific filetype can be put. The file
name is specified by |g:localrc_filetype|.
When two or more configuration files exist, it is sequentially loaded from a
shallow hierarchy.
For example:
~/
|- .local.vimrc (1)
`- project/
|- .local.vimrc (2)
`- src/
|- .local.vimrc (3)
`- main.cIn this case, when main.c is loaded, the configuration files are loaded in order
of the number.
Latest Version:
https://github.com/thinca/vim-localrc