How to get DiffGitCached to work with "autochdir" installed in vimrc?

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?

thanks

+1
source share
2 answers

I use this autocmd to disable autochdir when editing a git commit message:

 autocmd BufRead COMMIT_EDITMSG setlocal noautochdir 
0
source

Small hack:
autocmd BufRead COMMIT_EDITMSG cd .. | DiffGitCached

+1
source

All Articles