diff options
author | June McEnroe <programble@gmail.com> | 2014-11-25 17:28:33 -0500 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2014-11-25 17:28:33 -0500 |
commit | 07a32d0de1be7d630e9800ed70fcc2eb50b7cec2 (patch) | |
tree | 0e95cf169685d2e0fc1e794de05f38dee45f76a9 | |
parent | Add Goyo.vim (diff) | |
download | src-07a32d0de1be7d630e9800ed70fcc2eb50b7cec2.tar.gz src-07a32d0de1be7d630e9800ed70fcc2eb50b7cec2.zip |
Simplify C-n relative number toggle
-rw-r--r-- | .vimrc | 9 |
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 |