X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/b51f3563d6cb0010825b2d2b9fe01e687f54345a..3418483496608f0eb40ecd49842aa5f020429ef0:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 8d4ba47..1a4f288 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -31,11 +31,12 @@ Plugin 'octol/vim-cpp-enhanced-highlight' Plugin 'raimondi/delimitmate' Plugin 'ram-z/vim-clang-format' Plugin 'ram-z/vimwiki' -Plugin 'rdnetto/ycm-generator' Plugin 'scrooloose/syntastic' +Plugin 'sgeb/vim-diff-fold' Plugin 'shougo/unite.vim' Plugin 'shougo/vimproc.vim' Plugin 'sjl/gundo.vim' +Plugin 'thinca/vim-qfreplace' Plugin 'tomtom/tcomment_vim' Plugin 'tpope/vim-abolish' Plugin 'tpope/vim-endwise' @@ -63,16 +64,10 @@ Plugin 'julian/vim-textobj-variable-segment' Plugin 'sgur/vim-textobj-parameter' Plugin 'kana/vim-operator-user' -" ros -Plugin 'ompugao/ros.vim' -Plugin 'ompugao/ctrlp-ros' - " staging " find an alternative (latex-box? Automatic Latex Plugin?) Plugin 'vim-latex/vim-latex' Plugin 'alx741/vinfo' -Plugin 'derekwyatt/vim-protodef' -Plugin 'sgeb/vim-diff-fold' " needs editing colorscheme " Plugin 'jeaye/color_coded' " Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp @@ -493,7 +488,7 @@ nnoremap za vnoremap zf " save with sudo -cabbrev w!! w !sudo tee % > /dev/null +cabbrev w!! SudoWrite " uppercase previous word inoremap gUiwgi @@ -606,7 +601,8 @@ let g:tagbar_width = 25 let g:tagbar_iconchars = ['+', '-'] " tcomments {{{2 -let g:tcommentTextObjectInlineComment = 'gic' +let g:tcomment_textobject_inlinecomment = 'gic' +let g:tcomment#filetype#guess = 0 " ultisnips {{{2 let g:UltiSnipsEditSplit = 'vertical' @@ -650,6 +646,8 @@ call unite#custom#profile('default', 'context', { nnoremap [unite] nmap u [unite] nnoremap [unite]u :UniteResume +nnoremap [u :UnitePrevious +nnoremap ]u :UniteNext " unite-grep {{{3 " seems not respected @@ -661,6 +659,7 @@ if executable('ag') let g:unite_source_grep_recursive_opt = '' end nnoremap [unite]a :Unite grep:.:: +nnoremap [unite]A :Unite grep:.:-w: command! -nargs=1 Ag Unite grep:.:: " unite-file_rec {{{3 @@ -718,6 +717,7 @@ nmap ga (EasyAlign) let g:gtest#highlight_failing_tests = 0 nnoremap tt :GTestRun +nnoremap ta :GTestCase *:GTestName *:GTestRun nnoremap tu :GTestRunUnderCursor " vim-json {{{2 @@ -843,8 +843,8 @@ function! FindGitDirOrHome() endif endfunction command! Cd cd %:h -command! Cr execute('cd ' . FindGitDirOrHome()) +command! Cdr execute('cd ' . FindGitDirOrHome()) command! LCd lcd %:h -command! LCr execute('lcd ' . FindGitDirOrHome()) +command! LCdr execute('lcd ' . FindGitDirOrHome()) " vim:set et sw=2 ts=2 tw=78: