From 74a8b0e36255b7ce19319f96fd67978f6b7e0674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 21 Jul 2017 16:08:20 +0200 Subject: Update changes in vimrc --- vimrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 75a75ce..fd23bfa 100644 --- a/vimrc +++ b/vimrc @@ -20,6 +20,7 @@ set foldmethod=syntax set wildmode=longest:full,full set wildmenu set modeline +set encoding=utf-8 set number set colorcolumn=82 @@ -47,6 +48,12 @@ function TabToogle() endfunction command TabToogle call TabToogle() +" Indent guides +let g:indent_guides_start_level=2 +let g:indent_guides_guide_size=1 +hi IndentGuidesOdd ctermbg=black +hi IndentGuidesEven ctermbg=102 + " Write as root cmap w!! w !sudo tee >/dev/null % -- cgit v1.2.3 From cf52d4ecaef0ea3b7283bf2f38d19422cb84e917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 2 Aug 2017 20:22:20 +0200 Subject: Updates for vim --- vimrc | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index fd23bfa..3d48e8d 100644 --- a/vimrc +++ b/vimrc @@ -49,10 +49,12 @@ endfunction command TabToogle call TabToogle() " Indent guides +let g:indent_guides_enable_on_vim_startup = 1 let g:indent_guides_start_level=2 let g:indent_guides_guide_size=1 -hi IndentGuidesOdd ctermbg=black -hi IndentGuidesEven ctermbg=102 +let g:indent_guides_auto_colors = 0 +autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=232 +autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=233 " Write as root cmap w!! w !sudo tee >/dev/null % @@ -103,14 +105,6 @@ endfunction setlocal spelllang=en_us map :call LangToggle() -" TODO for python file type set: -" set colorcolumn=79 -" set textwidth=79 - -" TODO for C file type set: -" TODO bind F2 to execute gnu ident on whole file and ensure that if it fails, no change is done. -" TODO check if .tags exists and alternativelly warn that it missing - " UltiSnips triggers let g:UltiSnipsExpandTrigger="" let g:UltiSnipsJumpForwardTrigger="" -- cgit v1.2.3