Ⅰ. 插件描述
Use different settings for different directories.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/local-configuration'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/local-configuration'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/local-configuration'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/Local-configuration
Ⅳ. 文档说明
I work in a project which involves contribution from many other people each with their own coding style. This script helps to load files from different places but with the right settings. I use "ts=4, sw=4, ..." in directories i use, and set it to "ts=8, sw=8, ..." in the root of the linux kernel directory. These configurations are stored in a file called .lvimrc, subdirectories inherit the settings from their parent unless the subdirectory itself doesnot have a .lvimrc file.