Ⅰ. 插件描述
Cursor line number color = Airline mode colorⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ntpeters/vim-airline-colornum'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ntpeters/vim-airline-colornum'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ntpeters/vim-airline-colornum'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ntpeters/vim-airline-colornum
Ⅳ. 文档说明
#Airline Color Num Plugin
Sets the cursor line number to the same color as the current mode in the
statusline set by the Vim Airline plugin.
Screenshots



Installation
There are a few ways you can go about installing this plugin:
If you have Vundle you can simply add:
Bundle 'ntpeters/vim-airline-colornum'to your
.vimrcfile then run::BundleInstallIf you are using Pathogen, you can just run the following command:
git clone git://github.com/ntpeters/vim-airline-colornum.git ~/.vim/bundle/vim-airline-colornum- While this plugin can also be installed by copying its contents into your
~/.vim/directory, I would highly recommend using one of the above methods as they make managing your Vim plugins painless.
Usage
This plugin is enabled by default.
To disable this plugin in your
.vimrc:let g:airline_colornum_enabled = 0To disable this plugin temporarily:
:DisableAirlineColorNumTo enable this plugin:
:EnableAirlineColorNum
Troubleshooting
If you are not seeing the highlight in certain modes, make sure your cursorline
is enabled by adding this to your .vimrc:
set cursorlineDepending on your theme, this may cause your cursorline to be highlighted.
If you do not like this behavior, then also add the following to your .vimrc:
hi clear CursorLinePromotion
If you like this plugin, please star it on Github and vote it up at Vim.org!
Repository exists at: http://github.com/ntpeters/vim-airline-colornum
Plugin also hosted at: http://www.vim.org/scripts/script.php?script_id=5219