summary refs log tree commit diff
diff options
context:
space:
mode:
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