Created
June 20, 2013 23:47
-
-
Save bradland/5827768 to your computer and use it in GitHub Desktop.
This file contains 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
" C-n to toggle relative/normal line numbers | |
function! NumberToggle() | |
if(&relativenumber == 1) | |
set number | |
else | |
set relativenumber | |
endif | |
endfunc | |
nnoremap <C-n> :call NumberToggle()<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment