aboutsummaryrefslogtreecommitdiff
path: root/Editor/vimrc
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2016-10-13 19:20:52 +0100
committerVasil Zlatanov <v@skozl.com>2016-10-13 19:20:52 +0100
commit6531c75eb9a6a664a45b372014a709ac9910c1e2 (patch)
tree191153123a8a8560aee5176422bf81be4bcb210d /Editor/vimrc
parent1c221916600457d945094c1df59f0756aca19367 (diff)
parent52582edc079a197d8204c1310ecd37176bfaef84 (diff)
downloaddotfiles-6531c75eb9a6a664a45b372014a709ac9910c1e2.tar.gz
dotfiles-6531c75eb9a6a664a45b372014a709ac9910c1e2.tar.bz2
dotfiles-6531c75eb9a6a664a45b372014a709ac9910c1e2.zip
Merge branch 'master' of https://github.com/vaskozl/dotfiles
Diffstat (limited to 'Editor/vimrc')
-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