summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2014-11-25 17:28:33 -0500
committerJune McEnroe <june@causal.agency>2014-11-25 17:28:33 -0500
commit0a65046e0de236e046d6ba13e78fccf56b9ecce5 (patch)
tree64d35dacbb7a2b29205f3162712737a2ac387aed
parentAdd Goyo.vim (diff)
downloadsrc-0a65046e0de236e046d6ba13e78fccf56b9ecce5.tar.gz
src-0a65046e0de236e046d6ba13e78fccf56b9ecce5.zip
Simplify C-n relative number toggle
Diffstat (limited to '')
-rw-r--r--.vimrc9
1 files changed, 1 insertions, 8 deletions
diff --git a/.vimrc b/.vimrc
index 49545539..fcd5a28d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -185,14 +185,7 @@ nmap Y y$
 imap <S-tab> <C-v><tab>
 
 " Toggle relative/absolute line numbers.
-function! NumberToggle()
-  if(&relativenumber == 1)
-    set norelativenumber
-  else
-    set relativenumber
-  endif
-endfunc
-nmap <C-n> :call NumberToggle()<CR>
+nmap <C-n> :set relativenumber!<CR>
 
 " Common typos.
 command! W :w