From a37434ab5dfc2d515b311cccdbf7af881bbb5272 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 9b6bcec..4621ede 100644 --- a/plugin/gnupg.vim +++ b/plugin/gnupg.vim @@ -130,12 +130,8 @@ let g:loaded_gnupg = "$Revision$" 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