]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
Makefile: add target for git
[dotfiles.git] / vim / vimrc
index 9767cb1f553e69a8b0de93611d69f17ee12f652b..2fe6f593f4a2110ed402a35c0fca7e411b2af526 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'
@@ -68,7 +69,6 @@ Plugin 'kana/vim-operator-user'
 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
@@ -489,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
@@ -657,6 +657,7 @@ if executable('ag')
     let g:unite_source_grep_recursive_opt = ''
 end
 nnoremap <silent> [unite]a :<C-u>Unite grep:.::\12\17<CR>
+nnoremap <silent> [unite]A :<C-u>Unite grep:.:-w:\12\17<CR>
 command! -nargs=1 Ag Unite grep:.::<args>
 
 " unite-file_rec {{{3
@@ -839,8 +840,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: