From 7ec46a5c12a5e0b31e41ed33b3fc53a7cf334834 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 24 May 2011 01:14:45 -0400 Subject: [PATCH] Check for our BufReadCmd to see if the plugin has been loaded. Signed-off-by: James Vega --- plugin/gnupg.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/gnupg.vim b/plugin/gnupg.vim index 6d6207f..dcbca8e 100644 --- a/plugin/gnupg.vim +++ b/plugin/gnupg.vim @@ -123,7 +123,7 @@ " Section: Plugin header {{{1 " guard against multiple loads {{{2 -if (exists("g:loaded_gnupg") || &cp || exists("#BufReadPre#*.\(gpg\|asc\|pgp\)")) +if (exists("g:loaded_gnupg") || &cp || exists("#BufReadCmd*.\(gpg\|asc\|pgp\)")) finish endif let g:loaded_gnupg = "$Revision: 3051 $"