Created
June 28, 2012 16:41
-
-
Save neilmiddleton/3012412 to your computer and use it in GitHub Desktop.
Use Ctrl+L to flip between absolute and relative line numbering 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
" use Ctrl+L to toggle the line number counting method | |
function! g:ToggleNuMode() | |
if(&rnu == 1) | |
set nu | |
else | |
set rnu | |
endif | |
endfunc | |
nnoremap <C-L> :call g:ToggleNuMode()<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment