Ⅰ. 插件描述
Display a guide for the current line's indent level.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tweekmonster/local-indent-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tweekmonster/local-indent-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tweekmonster/local-indent-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tweekmonster/local-indent.vim
Ⅳ. 文档说明
# Local Indent Guide
Display a guide for the current line's indent level. This was taken from
braceless.vim and shouldn't be
used in conjunction with its highlighting, because that would just be silly.

Usage
Turn it on using the LocalIndentGuide command with one of the following options:
| Option | Description |
|---|---|
+hl | Enable highlighting |
-hl | Disable highlighting |
+cc | Enable colorcolumn |
-cc | Disable colorcolumn |
To enable it in any file type, add this to your vimrc:
autocmd FileType * LocalIndentGuide +hl +ccTo change the highlight color:
highlight LocalIndentGuide ctermfg=5 ctermbg=0 cterm=inverseNote that it is a foreground color and that the style is inverse. This
allows the highlight to be displayed while colorcolumn is enabled.
License
MIT