aboutsummaryrefslogtreecommitdiff
path: root/Editor
diff options
context:
space:
mode:
Diffstat (limited to 'Editor')
-rw-r--r--Editor/vimrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/Editor/vimrc b/Editor/vimrc
index 0a080a0..7aef0da 100644
--- a/Editor/vimrc
+++ b/Editor/vimrc
@@ -49,7 +49,7 @@ set incsearch " Incremental search
"set hidden " Hide buffers when they are abandoned
"set mouse=a " Enable mouse usage (all modes)
-"set number
+set number
"set spell
set ruler
@@ -153,3 +153,7 @@ nnoremap <Leader>w :w<CR>
let g:ycm_goto_buffer_command = 'same-buffer' "[ 'same-buffer', 'horizontal-split', 'vertical-split', 'new-tab' ]
let g:ycm_filetype_whitelist = { '*': 1 }
let g:ycm_key_invoke_completion = '<C-Space>'
+
+"relative number in normal but just number in insert
+autocmd InsertEnter * :set norelativenumber
+autocmd InsertLeave * :set relativenumber