mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-16 07:13:52 -05:00
Remove redundant autocommands
This commit is contained in:
@@ -304,12 +304,6 @@ augroup fugitive
|
|||||||
|
|
||||||
autocmd BufNewFile,BufReadPost * call FugitiveDetect(expand('<amatch>:p'))
|
autocmd BufNewFile,BufReadPost * call FugitiveDetect(expand('<amatch>:p'))
|
||||||
autocmd FileType netrw call FugitiveDetect(fnamemodify(get(b:, 'netrw_curdir', 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
|
autocmd FileType git
|
||||||
\ if len(FugitiveGitDir()) |
|
\ if len(FugitiveGitDir()) |
|
||||||
|
|||||||
Reference in New Issue
Block a user