Skip to content

Instantly share code, notes, and snippets.

@robertbasic
Created June 28, 2012 14:50
Show Gist options
  • Select an option

  • Save robertbasic/3011774 to your computer and use it in GitHub Desktop.

Select an option

Save robertbasic/3011774 to your computer and use it in GitHub Desktop.
function! NumberToggle()
if(&relativenumber == 1)
set number
else
set relativenumber
endif
endfunc
nnoremap <C-A-n> :call NumberToggle()<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment