Created
September 24, 2011 20:15
-
-
Save juanpabloaj/1239808 to your computer and use it in GitHub Desktop.
Toggle {number,relativenumber,off}
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
nn <silent> <leader>vn :call ToggleNumber()<CR> | |
fun! ToggleNumber() "{{{ | |
if exists('+relativenumber') | |
:exec &nu==&rnu? "setl nu!" : "setl rnu!" | |
else | |
setl nu! | |
endif | |
endf "}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@SethMilliken, thanks. I merged you suggestion with sehe solution