vim-airline-colornum


Ⅰ. 插件描述

Cursor line number color = Airline mode color

Ⅱ. 基本信息

创建日期:  2015-05-03
使用用户:  32
Github星:  41
插件作者:  Nate Peterson

Ⅲ. 安装方法

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

Normal Example
Insert Example
Visual Example

Installation

There are a few ways you can go about installing this plugin:

  1. If you have Vundle you can simply add:

    Bundle 'ntpeters/vim-airline-colornum'

    to your .vimrc file then run:

    :BundleInstall
  2. If 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
  3. 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 = 0
  • To disable this plugin temporarily:

    :DisableAirlineColorNum
  • To 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 cursorline

Depending 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 CursorLine

Promotion

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

添加新评论