X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/178f31b1b58c73379ac90eee82012ca4417ebc96..1b8b1df5087accaba1f62a1f9c307860cfe765ba:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index f1dc3f8..7c9166d 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -69,11 +69,14 @@ Plugin 'ompugao/ctrlp-ros' Plugin 'vim-latex/vim-latex' Plugin 'alx741/vinfo' Plugin 'derekwyatt/vim-protodef' +Plugin 'ram-z/vim-clang-format' +Plugin 'sgeb/vim-diff-fold' " needs editing colorscheme " Plugin 'jeaye/color_coded' " Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp Plugin 'wincent/loupe' -Plugin 'Ram-Z/vimwiki' +Plugin 'ram-z/vimwiki' +Plugin 'alepez/vim-gtest' call vundle#end() @@ -216,8 +219,8 @@ set foldlevelstart=0 " value for 'foldlevel' when starting to edit a " open folds when jumping to line set foldopen+=jump -" save and restore folds -set viewoptions=cursor " only save cursor position +set viewoptions=cursor " save cursor position +set viewoptions+=folds " save folds " diff mode {{{2 set diffopt+=filler " show filler lines @@ -476,7 +479,7 @@ nnoremap [oe :set expandtab nnoremap ]oe :set noexpandtab for idt in range(1,8) - exe 'nnoremap co'.idt.' :set tabstop='.idt.' shiftwidth='.idt.' softtabstop='.idt.'' + exe 'nnoremap co'.idt.' :setlocal tabstop='.idt.' shiftwidth='.idt.' softtabstop='.idt.'' endfor " toggle auto format of text @@ -489,9 +492,6 @@ nnoremap za " create folds around visual selection vnoremap zf -autocmd BufWinLeave *.* mkview -autocmd BufWinEnter *.* silent loadview - " save with sudo cabbrev w!! w !sudo tee % > /dev/null @@ -715,6 +715,12 @@ let g:ycm_autoclose_preview_window_after_insertion = 0 vmap (EasyAlign) nmap ga (EasyAlign) +" vim-gtest {{{2 +let g:gtest#highlight_failing_tests = 0 + +nnoremap tt :GTestRun +nnoremap tu :GTestRunUnderCursor + " vim-json {{{2 let g:vim_json_syntax_conceal = 0