Skip to content

Instantly share code, notes, and snippets.

@iagox86
Created July 20, 2012 03:06
Show Gist options
  • Save iagox86/3148423 to your computer and use it in GitHub Desktop.
Save iagox86/3148423 to your computer and use it in GitHub Desktop.
function! ToggleNuMode()
if(&rnu == 1)
set nu
else
set rnu
endif
endfunction
nnoremap <leader>b :call ToggleNuMode()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment