diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 2f0e772..47b7fc9 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -107,6 +107,7 @@ endfunction augroup fugitive autocmd! autocmd BufNewFile,BufReadPost * call s:Detect() + autocmd FileType netrw call s:Detect() autocmd BufWinLeave * execute getbufvar(+expand(''), 'fugitive_restore') augroup END