Skip to content

ntpeters/vim-airline-colornum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 

Repository files navigation

#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

About

Cursor line number color = Airline mode color

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •