Toggles between relative and absolute line numbers automatically
VimL
Pull request Compare This branch is 1 commit ahead, 32 commits behind jeffkreeftmeijer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
plugin
README.markdown

README.markdown

numbertoggle

While Vim's relativenumber option is great, you probably don't want to use it all the time. numbertoggle allows you to quickly toggle between relative and absolute line numbers and cleverly switches when when focus is lost or gained or when switching between normal and insert mode.

Installation

If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/jeffkreeftmeijer/vim-numbertoggle.git

Once help tags have been generated, you can view the manual with :help numbertoggle.