From: Samir Benmendil Date: Fri, 2 Mar 2018 09:24:40 +0000 (+0000) Subject: vim: use :Cdr and :LCdr to go to GitDir X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/1d61f08ff82df4565004b06f4d4b959ba841edc0 vim: use :Cdr and :LCdr to go to GitDir This is consistent with the shell alias --- diff --git a/vim/vimrc b/vim/vimrc index b4d3a3e..111e2ff 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -839,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: