commit 49287b6e874cf31bf3fc2e239be21b096ff4cc3e (tree)
parent ec918b9a79512e82e00901d93bfb6d5f57bf56f0
Author: Tim Pope <code@tpope.net>
Date: Thu, 5 Sep 2019 16:42:39 -0400
Remove redundant autocommands
Diffstat:
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -304,12 +304,6 @@ augroup fugitive
autocmd BufNewFile,BufReadPost * call FugitiveDetect(expand('<amatch>:p'))
autocmd FileType netrw call FugitiveDetect(fnamemodify(get(b:, 'netrw_curdir', expand('<amatch>')), ':p'))
- autocmd User NERDTreeInit,NERDTreeNewRoot
- \ if exists('b:NERDTree.root.path.str') |
- \ call FugitiveDetect(b:NERDTree.root.path.str()) |
- \ endif
- autocmd VimEnter * if empty(expand('<amatch>'))|call FugitiveDetect(getcwd())|endif
- autocmd CmdWinEnter * call FugitiveDetect(expand('#:p'))
autocmd FileType git
\ if len(FugitiveGitDir()) |