From e7d78a8ae6daf0c41a2ec4133e458cd902f7f2de Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Mon, 12 Dec 2016 23:51:54 -0600 Subject: vim: simpler line number settings --- vim/.vimrc | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 29244b5..9be83da 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -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 :call NumberToggle() - -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 ===== -- cgit v1.2.3