]> git.rmz.io Git - dotfiles.git/commitdiff
vim: use :Cdr and :LCdr to go to GitDir
authorSamir Benmendil <samir.benmendil@ultrahaptics.com>
Fri, 2 Mar 2018 09:24:40 +0000 (09:24 +0000)
committerSamir Benmendil <samir.benmendil@ultrahaptics.com>
Fri, 2 Mar 2018 09:24:40 +0000 (09:24 +0000)
This is consistent with the shell alias

vim/vimrc

index b4d3a3e5642679a7e4b95fbf6f3e0618b4befee1..111e2ff1e12deb45335af897464e4bef4642bbfb 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -839,8 +839,8 @@ function! FindGitDirOrHome()
   endif
 endfunction
 command! Cd cd %:h
   endif
 endfunction
 command! Cd cd %:h
-command! Cr execute('cd ' . FindGitDirOrHome())
+command! Cdr execute('cd ' . FindGitDirOrHome())
 command! LCd lcd %:h
 command! LCd lcd %:h
-command! LCr execute('lcd ' . FindGitDirOrHome())
+command! LCdr execute('lcd ' . FindGitDirOrHome())
 
 " vim:set et sw=2 ts=2 tw=78:
 
 " vim:set et sw=2 ts=2 tw=78: