From 07c078c1be77983cdda49be65abb548e57e9ccd3 Mon Sep 17 00:00:00 2001 From: Quinn Strahl Date: Tue, 3 Dec 2013 09:33:42 -0500 Subject: [PATCH] Add & modify autocmd events `FugitiveBoot` & `Fugitive` - Change old `Fugitive` to `FugitiveBoot` - Put `Fugitive` at the end of fugitive#detect --- plugin/fugitive.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index edbf54b..d81705e 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -169,7 +169,7 @@ function! fugitive#detect(path) endif endif if exists('b:git_dir') - silent doautocmd User Fugitive + silent doautocmd User FugitiveBoot cnoremap fnameescape(recall()) nnoremap y :call setreg(v:register, recall()) let buffer = fugitive#buffer() @@ -182,6 +182,7 @@ function! fugitive#detect(path) call buffer.setvar('&tags', escape(b:git_dir.'/'.&filetype.'.tags', ', ').','.buffer.getvar('&tags')) endif endif + silent doautocmd User Fugitive endif endfunction