diff options
Diffstat (limited to 'vim/.vimrc')
-rw-r--r-- | vim/.vimrc | 17 |
1 files changed, 2 insertions, 15 deletions
@@ -30,21 +30,8 @@ endfunction autocmd BufWritePre * :call StripTrailingWhitespace() -" display absolute line numbers in insert mode, relative otherwise -" allow ^N to toggle between them on demand -function! NumberToggle() - if(&relativenumber == 1) - set number - else - set relativenumber - endif -endfunc - -nnoremap <C-n> :call NumberToggle()<cr> - -set relativenumber -autocmd InsertEnter * :set number -autocmd InsertLeave * :set relativenumber +" display absolute line number for current line, relative offsets for other lines +set number relativenumber " ===== BUNDLE CONFIGURATION ===== |