commit 94abe38d141de03a5922de663615e88a6f31bd26
parent 8e1e182da0f4ce52559958267e5fe2b05d979e0b
Author: Chris Bracken <chris@bracken.jp>
Date: Sat, 13 Jul 2013 23:11:11 -0700
Use absolute numbering in insert mode
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/.vim/.vimrc b/.vim/.vimrc
@@ -46,6 +46,12 @@ function! ToggleNumbering()
endfunc
nmap <C-n> :call ToggleNumbering()<CR>
+if has("autocmd")
+ " Use absolute numbering in insert mode
+ au InsertEnter * :set number
+ au InsertLeave * :set relativenumber
+endif
+
" Indentation/tabulation
set autoindent
set smartindent