From 49287b6e874cf31bf3fc2e239be21b096ff4cc3e Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 5 Sep 2019 16:42:39 -0400 Subject: [PATCH] Remove redundant autocommands --- plugin/fugitive.vim | 6 ------ 1 file changed, 6 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 56a039d..31d2025 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -304,12 +304,6 @@ augroup fugitive autocmd BufNewFile,BufReadPost * call FugitiveDetect(expand(':p')) autocmd FileType netrw call FugitiveDetect(fnamemodify(get(b:, 'netrw_curdir', expand('')), ':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(''))|call FugitiveDetect(getcwd())|endif - autocmd CmdWinEnter * call FugitiveDetect(expand('#:p')) autocmd FileType git \ if len(FugitiveGitDir()) |