Skip to content

Instantly share code, notes, and snippets.

@joequery
Created August 1, 2012 17:36
Show Gist options
  • Select an option

  • Save joequery/3229108 to your computer and use it in GitHub Desktop.

Select an option

Save joequery/3229108 to your computer and use it in GitHub Desktop.
Toggl relative line numbers
" use Ctrl+L to toggle the line number counting method
function! g:ToggleNuMode()
if &nu == 1
set rnu
else
set nu
endif
endfunction
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