X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/82b9ea0aee24ef8542719076bb166b169f58a46f..537fb0b111ebad9bed80fbff29c15dc27c0e573e:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 0e533cf..2ef5689 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -16,6 +16,7 @@ Plugin 'gmarik/vundle' Plugin 'airblade/vim-gitgutter' Plugin 'bling/vim-airline' +Plugin 'chrisbra/checkattach' Plugin 'derekwyatt/vim-fswitch' Plugin 'elzr/vim-json' Plugin 'firef0x/pkgbuild.vim' @@ -26,6 +27,7 @@ Plugin 'kshenoy/vim-signature' Plugin 'majutsushi/tagbar' Plugin 'octol/vim-cpp-enhanced-highlight' Plugin 'raimondi/delimitmate' +Plugin 'rdnetto/ycm-generator' Plugin 'scrooloose/syntastic' Plugin 'shougo/unite.vim' Plugin 'shougo/vimproc.vim' @@ -57,22 +59,16 @@ Plugin 'sgur/vim-textobj-parameter' Plugin 'ompugao/ros.vim' Plugin 'ompugao/ctrlp-ros' -" seems to have problems right now... may be add later? -" Plugin 'jalcine/cmake.vim' -" Plugin 'powerman/vim-plugin-viewdoc' - " staging " find an alternative (latex-box? Automatic Latex Plugin?) -Plugin 'http://git.code.sf.net/p/vim-latex/vim-latex' -" Plugin 'lokaltog/vim-easymotion' -Plugin 'chrisbra/checkattach' +Plugin 'vim-latex/vim-latex' Plugin 'nathanaelkane/vim-indent-guides' Plugin 'alx741/vinfo' Plugin 'vim-scripts/mediawiki.vim' Plugin 'derekwyatt/vim-protodef' -Plugin 'rdnetto/ycm-generator' " needs editing colorscheme " Plugin 'jeaye/color_coded' +" Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp call vundle#end() @@ -492,12 +488,6 @@ inoremap gUiwgi " http://git.io/v3ZeU nmap qq :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" -" commands {{{1 -command! Cd cd %:h -command! Cr execute('cd ' . FindGitDirOrHome()) -command! LCd lcd %:h -command! LCr execute('lcd ' . FindGitDirOrHome()) - " plugins options {{{1 " airline {{{2 let g:airline#extensions#whitespace#enabled = 1 @@ -741,6 +731,7 @@ function! SortLinesOpFunc(...) '[,']sort endfunction nnoremap gs :set operatorfunc=SortLinesOpFuncg@ +vnoremap gs :sort " edit configs {{{2 function! EditConfig(what) @@ -811,5 +802,9 @@ function! FindGitDirOrHome() return '~' endif endfunction +command! Cd cd %:h +command! Cr execute('cd ' . FindGitDirOrHome()) +command! LCd lcd %:h +command! LCr execute('lcd ' . FindGitDirOrHome()) " vim:set et sw=2 ts=2 tw=78: