local-indent.vim


Ⅰ. 插件描述

Display a guide for the current line's indent level.

Ⅱ. 基本信息

创建日期:  2016-02-16
使用用户:  5
Github星:  31
插件作者:  Tommy Allen

Ⅲ. 安装方法

使用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.

local-indent

Usage

Turn it on using the LocalIndentGuide command with one of the following options:

OptionDescription
+hlEnable highlighting
-hlDisable highlighting
+ccEnable colorcolumn
-ccDisable colorcolumn

To enable it in any file type, add this to your vimrc:

autocmd FileType * LocalIndentGuide +hl +cc

To change the highlight color:

highlight LocalIndentGuide ctermfg=5 ctermbg=0 cterm=inverse

Note 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

添加新评论