From: Samir Benmendil Date: Tue, 17 May 2016 08:15:06 +0000 (+0100) Subject: vim: move {,L}C{r,d} commands X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/859fe419d343f5f964cce24c0e15607a307307a2?ds=sidebyside vim: move {,L}C{r,d} commands --- diff --git a/vim/vimrc b/vim/vimrc index 0e533cf..0123cc0 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -492,12 +492,6 @@ inoremap gUiwgi " http://git.io/v3ZeU 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 cd %:h -command! Cr execute('cd ' . FindGitDirOrHome()) -command! LCd lcd %:h -command! LCr execute('lcd ' . FindGitDirOrHome()) - " plugins options {{{1 " airline {{{2 let g:airline#extensions#whitespace#enabled = 1 @@ -811,5 +805,9 @@ function! FindGitDirOrHome() return '~' endif endfunction +command! Cd cd %:h +command! Cr execute('cd ' . FindGitDirOrHome()) +command! LCd lcd %:h +command! LCr execute('lcd ' . FindGitDirOrHome()) " vim:set et sw=2 ts=2 tw=78: