]> git.rmz.io Git - dotfiles.git/commitdiff
vim: set global pwd with Cd/Cr and local LCd/LCr
authorSamir Benmendil <me@rmz.io>
Thu, 17 Sep 2015 13:45:17 +0000 (14:45 +0100)
committerSamir Benmendil <me@rmz.io>
Thu, 17 Sep 2015 13:45:17 +0000 (14:45 +0100)
vim/vimrc

index 9f4588e4f31ee4755391644fc367602e62d23887..2eb44cde9b66dc30d30a8ff70c29aa33e6cf2407 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -485,8 +485,10 @@ inoremap <C-C> <Esc>gUiwgi
 nmap <silent> <leader>qq :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>
 
 " 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