Created
June 28, 2012 15:53
-
-
Save dlo/3012145 to your computer and use it in GitHub Desktop.
Relative Line Numbers 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
set rnu | |
au BufEnter * :set rnu | |
au BufLeave * :set nu | |
au WinEnter * :set rnu | |
au WinLeave * :set nu | |
au InsertEnter * :set nu | |
au InsertLeave * :set rnu | |
au FocusLost * :set nu | |
au FocusGained * :set rnu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@brianbaligad is right. My current setup is: