Skip to content

Instantly share code, notes, and snippets.

@joshmcarthur
Created February 3, 2015 22:21
Show Gist options
  • Save joshmcarthur/ad61d25144f09c873cd3 to your computer and use it in GitHub Desktop.
Save joshmcarthur/ad61d25144f09c873cd3 to your computer and use it in GitHub Desktop.
Relative line number toggles in Vim
" --- snip ---
" Relative Numbering
" =======
:au FocusLost * :set number
:au FocusGained * :set relativenumber
autocmd InsertEnter * :set number
autocmd InsertLeave * :set relativenumber
" --- snip ---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment