diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index c76ffa4..9a6a9d3 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -162,6 +162,7 @@ augroup fugitive autocmd! autocmd BufNewFile,BufReadPost * call s:Detect(expand(':p')) autocmd FileType netrw call s:Detect(expand(':p')) + autocmd User NERDTreeInit,NERDTreeNewRoot call s:Detect(b:NERDTreeRoot.path.str()) autocmd VimEnter * if expand('')==''|call s:Detect(getcwd())|endif autocmd BufWinLeave * execute getwinvar(+bufwinnr(+expand('')), 'fugitive_leave') augroup END