This commit is contained in:
Geoffrey Frogeye 2019-06-11 06:28:58 +02:00
parent 0ee03a1173
commit c427ac3370
6 changed files with 43 additions and 11 deletions

View file

@ -1,5 +1,7 @@
""" VIM SETTINGS """
" From https://www.hillelwayne.com/post/intermediate-vim/
set encoding=utf-8
set title
@ -11,6 +13,9 @@ set scrolloff=10
set ignorecase
set smartcase
if has('nvim')
set inccommand=nosplit " Shows you in realtime what changes your ex command should make.
endif
set incsearch
@ -27,12 +32,20 @@ set backspace=indent,eol,start
set hidden
set updatetime=250
set lazyredraw " Do not redraw screen in the middle of a macro. Makes them complete faster.
set cursorcolumn
set splitbelow
set number relativenumber
" Turn off relativenumber only for insert mode.
if has('nvim')
augroup every
autocmd!
au InsertEnter * set norelativenumber
au InsertLeave * set relativenumber
augroup END
endif
syntax enable