motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 07c078c1be77983cdda49be65abb548e57e9ccd3 (tree)
parent 6b338bdbcfc379af06ae1be7efdf533a82600477
Author: Quinn Strahl <me@qstrahl.com>
Date:   Tue,  3 Dec 2013 09:33:42 -0500

Add & modify autocmd events `FugitiveBoot` & `Fugitive`

- Change old `Fugitive` to `FugitiveBoot`

- Put `Fugitive` at the end of fugitive#detect

Diffstat:
Mplugin/fugitive.vim | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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 <buffer> <expr> <C-R><C-G> fnameescape(<SID>recall()) nnoremap <buffer> <silent> y<C-G> :call setreg(v:register, <SID>recall())<CR> 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