From 33b7c1a5b71f5603055b7a56b7b1c478daae52a5 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 22 May 2018 22:01:19 -0400 Subject: [PATCH] Don't run autocommands loading temp file This should bring about a small performance improvement as prevent some confusion in other plugins. --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 2556a67..253224f 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2563,7 +2563,7 @@ function! s:ReplaceCmd(cmd,...) abort endtry silent exe 'keepalt file '.tmp try - silent edit! + silent noautocmd edit! finally try silent exe 'keepalt file '.s:fnameescape(fn)