From 11760e451a6fe465d2bba325b3c7a60279c0c9c0 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 24 May 2011 01:16:05 -0400 Subject: [PATCH] Bump minimum Vim version to 7.2 The two argument form of shellescape() is now being used, and that was introduced in the pre-releases of 7.2. Signed-off-by: James Vega --- plugin/gnupg.vim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugin/gnupg.vim b/plugin/gnupg.vim index dcbca8e..f3d59b7 100644 --- a/plugin/gnupg.vim +++ b/plugin/gnupg.vim @@ -130,12 +130,8 @@ let g:loaded_gnupg = "$Revision: 3051 $" let s:GPGInitRun = 0 " check for correct vim version {{{2 -if (v:version < 700) - echohl ErrorMsg | echo 'plugin gnupg.vim requires Vim version >= 7.0' | echohl None - finish -endif -if !(exists("*shellescape") && exists("*fnameescape")) - echohl ErrorMsg | echo 'plugin gnupg.vim requires Vim with the shellescape() and fnameescape() functions' | echohl None +if (v:version < 702) + echohl ErrorMsg | echo 'plugin gnupg.vim requires Vim version >= 7.2' | echohl None finish endif