# HG changeset patch # User Steve Losh # Date 1287615309 14400 # Node ID 0577b819d8db00fc95b55d533b4b2ea99d6af144 # Parent d7bc85ee64e47097b44d3875eaa944d1f04fa71e Check for Vim 7.3+. fixes issue 13 diff -r d7bc85ee64e4 -r 0577b819d8db plugin/gundo.vim --- a/plugin/gundo.vim Wed Oct 20 18:43:43 2010 -0400 +++ b/plugin/gundo.vim Wed Oct 20 18:55:09 2010 -0400 @@ -16,7 +16,14 @@ let loaded_gundo = 1 -let s:warning_string = "Gundo requires that Vim be compiled with Python 2.4+" +let s:vim_warning_string = "Gundo requires Vim 7.3+" +let s:python_warning_string = "Gundo requires that Vim be compiled with Python 2.4+" + +" Check for Vim required version +if v:version < '703' + echo s:vim_warning_string + finish +endif " Check for Python support and required version if has('python') @@ -31,8 +38,8 @@ " Python version is too old if !s:has_supported_python - echo s:warning_string - finish + echo s:python_warning_string + finish endif else " no Python support