X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/4fe394d230d60645042ea83b68d5f996430aca20..refs/heads/uh-backup:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 5ca33ac..e763b5d 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -30,8 +30,10 @@ Plug 'kshenoy/vim-signature' Plug 'majutsushi/tagbar' Plug 'octol/vim-cpp-enhanced-highlight' Plug 'raimondi/delimitmate' -Plug 'ram-z/vim-clang-format', { 'branch': 'fix_undo' } -Plug 'ram-z/vimwiki', { 'branch': 'no_override_map' } +Plug 'ram-z/vim-clang-format', { 'branch': 'fix-undo' } +" fix some issue with vim-clang-format not finding .clang-format +let g:clang_format#detect_style_file = 1 +Plug 'vimwiki/vimwiki', { 'branch': 'dev' } Plug 'scrooloose/syntastic' Plug 'sgeb/vim-diff-fold' Plug 'shougo/unite.vim' @@ -47,13 +49,14 @@ Plug 'tpope/vim-repeat' Plug 'tpope/vim-surround' "investigate vim-sandwich Plug 'tpope/vim-unimpaired' Plug 'tweekmonster/spellrotate.vim' +" consider enabling clangd support --clangd-completer, it's possible to use both Plug 'valloric/youcompleteme', { 'do': './install.py --clang-completer' } Plug 'vim-scripts/mediawiki.vim' Plug 'vim-scripts/replacewithregister' Plug 'vim-scripts/yankring.vim' " colorschemes -Plug 'flazz/vim-colorschemes' +Plug 'morhetz/gruvbox' " snippets Plug 'sirver/ultisnips' @@ -69,10 +72,13 @@ Plug 'kana/vim-operator-user' " find an alternative (latex-box? Automatic Latex Plugin?) Plug 'vim-latex/vim-latex' Plug 'alx741/vinfo' +Plug 'rbong/vim-flog' +" Vim/Python is broken atm +" Plug 'tbabej/taskwiki' " needs editing colorscheme " Plug 'jeaye/color_coded' " Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp -Plug 'wincent/loupe' +" Plug 'wincent/loupe' call plug#end() @@ -84,6 +90,8 @@ set background=dark let g:gruvbox_contrast_dark = 'hard' let g:gruvbox_contrast_light = 'soft' colorscheme gruvbox +" override the background to be black +highligh Normal ctermbg=None " options {{{1 " moving around, searching and patterns {{{2 @@ -110,7 +118,7 @@ set list " show chars defined in 'listchars' set listchars=tab:❭\ " list of strings used for list mode set listchars+=extends:❯,precedes:❮ " Only shown when not in insert mode -au InsertLeave * :set listchars+=trail:· +set listchars+=trail:· augroup trailing au! au InsertEnter * :set listchars-=trail:· @@ -534,6 +542,11 @@ nnoremap gc :Gcommit -v nnoremap ga :Gwrite nnoremap gb :Gblame +augroup fugitive_gstatus + au! + autocmd BufWinEnter */.git/index resize 16 +augroup end + " Gundo {{{2 nnoremap :GundoToggle @@ -554,6 +567,7 @@ nnoremap ck :CloseAboveWindow " python-mode {{{2 +let g:pymode = 0 let g:pymode_rope_completion = 0 let g:pymode_rope = 0 let g:pymode_run = 0 @@ -590,6 +604,8 @@ let g:syntastic_style_warning_symbol='S' let g:syntastic_always_populate_loc_list=1 nmap y :SyntasticCheck +let g:syntastic_cpp_clang_tidy_post_args = "-p build*" + if ! &diff let g:syntastic_check_on_open=1 endif