From 70cfdc99bd4f98ce262fac86086fc85dae0fa0b6 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Thu, 31 May 2012 21:17:07 -0400 Subject: [PATCH] Use "silent doautocmd" to suppress annoying "No matching autocmds" message Signed-off-by: James McCoy --- plugin/gnupg.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/gnupg.vim b/plugin/gnupg.vim index 4e5d3f5..c2b172a 100644 --- a/plugin/gnupg.vim +++ b/plugin/gnupg.vim @@ -489,7 +489,7 @@ function s:GPGBufReadPost() silent 1delete let &undolevels = levels " call the autocommand for the file minus .gpg$ - execute ':doautocmd BufReadPost ' . fnameescape(expand(':r')) + silent execute ':doautocmd BufReadPost ' . fnameescape(expand(':r')) call s:GPGDebug(2, 'called autocommand for ' . fnameescape(expand(':r'))) call s:GPGDebug(3, "<<<<<<<< Leaving s:GPGBufReadPost()") endfunction @@ -502,7 +502,7 @@ endfunction function s:GPGBufWritePre() call s:GPGDebug(3, ">>>>>>>> Entering s:GPGBufWritePre()") " call the autocommand for the file minus .gpg$ - execute ':doautocmd BufWritePre ' . fnameescape(expand(':r')) + silent execute ':doautocmd BufWritePre ' . fnameescape(expand(':r')) call s:GPGDebug(2, 'called autocommand for ' . fnameescape(expand(':r'))) call s:GPGDebug(3, "<<<<<<<< Leaving s:GPGBufWritePre()") endfunction