Ⅰ. 插件描述
Starts from the root of the FS and reads up to the current directory, sourcing every .lvimrc it finds along the way.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'pinktrink/localvimrc-love-story'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'pinktrink/localvimrc-love-story'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'pinktrink/localvimrc-love-story'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/pinktrink/localvimrc
Ⅳ. 文档说明
# Local .lvimrc
This plugin will start from the root folder of the filesystem and search up to
the current directory, sourcing any .lvimrc file it finds. This makes it easy to
have per-directory or per-project vim settings.
Inspiration
I normally work with 4 spaces for tabs, however the current project I'm on uses
2 spaces for tabs. I know that there are plugins out there that do this already,
but I just wanted something that was simple and quick. This is only 16 lines.
Usage with Vundle
Plugin 'pinktrink/localvimrc'Contributing
Sure, feel free to contribute. Just don't bloat it. It's fast, it's simple, and
it works. That's what I like.