summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.vimrc')
-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 =====