aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-08-02 20:22:20 +0200
committerKarel Kočí <cynerd@email.cz>2017-08-02 20:22:20 +0200
commitcf52d4ecaef0ea3b7283bf2f38d19422cb84e917 (patch)
tree7ff3c5200b75abfe3863d549928f93461ec1a647 /vimrc
parent24659f9f7efa5479563dea8d2bb1b02134674dfc (diff)
downloadmyconfigs-cf52d4ecaef0ea3b7283bf2f38d19422cb84e917.tar.gz
myconfigs-cf52d4ecaef0ea3b7283bf2f38d19422cb84e917.tar.bz2
myconfigs-cf52d4ecaef0ea3b7283bf2f38d19422cb84e917.zip
Updates for vim
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc14
1 files changed, 4 insertions, 10 deletions
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 <F11> :call LangToggle()<cr>
-" 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="<c-h>"
let g:UltiSnipsJumpForwardTrigger="<c-j>"