diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2016-12-12 23:51:54 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2016-12-12 23:51:54 -0600 |
commit | e7d78a8ae6daf0c41a2ec4133e458cd902f7f2de (patch) | |
tree | 63c73d516eaf7806a89f1fd486bfdf131802acc2 | |
parent | 85612b984f2d44e3bdca60cc3985b4cd05f1ae4f (diff) |
vim: simpler line number settings
-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 ===== |