summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2016-12-12 23:51:54 -0600
committerBobby Bingham <koorogi@koorogi.info>2016-12-12 23:51:54 -0600
commite7d78a8ae6daf0c41a2ec4133e458cd902f7f2de (patch)
tree63c73d516eaf7806a89f1fd486bfdf131802acc2
parent85612b984f2d44e3bdca60cc3985b4cd05f1ae4f (diff)
vim: simpler line number settings
-rw-r--r--vim/.vimrc17
1 files 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 <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 =====