0

I've just started using the NERDTree vim plugin and am generally pleased with it. I also sometimes use the DirDiff plugin. My most frequent use of the DirDiff plugin is for git diff via this stack overflow explanation.

I'd like to configure NERDTree to be automatically closed when the DirDiff plugin in effect. Is this possible via my .vimrc? I install these plugins via vim-plug.

firebush
  • 5,180
  • 4
  • 34
  • 45

1 Answers1

-1

You can create a custom function that triggers DirDiff and uses :NERDTreeClose as dependency and bind that custom function to keymap that you using for DirDiff.

You can also try to play around with autocmd BufEnter.

I remember this was my problem as well, if you find solution combining my suggestion please post it here.

Marko
  • 83
  • 1
  • 7