Created
February 3, 2015 22:21
-
-
Save joshmcarthur/ad61d25144f09c873cd3 to your computer and use it in GitHub Desktop.
Relative line number toggles in Vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" --- 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