From: Samir Benmendil Date: Thu, 17 Sep 2015 13:45:17 +0000 (+0100) Subject: vim: set global pwd with Cd/Cr and local LCd/LCr X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/d03f26aa4684f4809ef432379d6d4e051cb2ea77 vim: set global pwd with Cd/Cr and local LCd/LCr --- diff --git a/vim/vimrc b/vim/vimrc index 9f4588e..2eb44cd 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -485,8 +485,10 @@ inoremap gUiwgi 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 lcd %:h -command! Cr execute('lcd ' . FindGitDirOrHome()) +command! Cd cd %:h +command! Cr execute('cd ' . FindGitDirOrHome()) +command! LCd lcd %:h +command! LCr execute('lcd ' . FindGitDirOrHome()) " plugins options {{{1 " airline {{{2