I follow the answer to this post . If you look at the comments, this will not work if you have set autochdir in your .vimrc . However, I still want both to work together, is there a way?
set autochdir
.vimrc
thanks
I use this autocmd to disable autochdir when editing a git commit message:
autochdir
autocmd BufRead COMMIT_EDITMSG setlocal noautochdir
Small hack:autocmd BufRead COMMIT_EDITMSG cd .. | DiffGitCached
autocmd BufRead COMMIT_EDITMSG cd .. | DiffGitCached