]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: use :Cdr and :LCdr to go to GitDir
[dotfiles.git] / vim / vimrc
index 8d4ba4769273377d2d6f9a7b36a7f882db41c01f..111e2ff1e12deb45335af897464e4bef4642bbfb 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -33,6 +33,7 @@ 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'
@@ -63,16 +64,11 @@ 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 +489,7 @@ nnoremap <leader><Space> za
 vnoremap <leader><Space> zf
 
 " save with sudo
-cabbrev w!! w !sudo tee % > /dev/null
+cabbrev w!! SudoWrite
 
 " uppercase previous word
 inoremap <C-C> <Esc>gUiwgi
@@ -843,8 +839,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: