diff --git a/after/plugin/UltiSnips_after.vim b/after/plugin/UltiSnips_after.vim index ca885a6..fe4a7d1 100644 --- a/after/plugin/UltiSnips_after.vim +++ b/after/plugin/UltiSnips_after.vim @@ -4,7 +4,7 @@ " Supertab) " Last Modified: July 27, 2009 -if exists('did_UltiSnips_after') || &cp || version < 700 +if exists('did_UltiSnips_after') || &cp || version < 704 finish endif diff --git a/autoload/UltiSnips.vim b/autoload/UltiSnips.vim index 369da5d..51e17ae 100644 --- a/autoload/UltiSnips.vim +++ b/autoload/UltiSnips.vim @@ -2,7 +2,7 @@ " Author: Holger Rapp " Description: The Ultimate Snippets solution for Vim -if exists('did_UltiSnips_autoload') || &cp || version < 700 +if exists('did_UltiSnips_autoload') || &cp || version < 704 finish endif let did_UltiSnips_autoload=1 diff --git a/plugin/UltiSnips.vim b/plugin/UltiSnips.vim index dcf62ce..4e9aab7 100644 --- a/plugin/UltiSnips.vim +++ b/plugin/UltiSnips.vim @@ -6,9 +6,17 @@ " See directions at the top of the test.py script located one " directory above this file. -if exists('did_UltiSnips_plugin') || &cp || version < 700 +if exists('did_UltiSnips_plugin') || &cp finish endif +let did_UltiSnips_plugin=1 + +if version < 704 + echohl WarningMsg + echom "UltiSnips requires Vim >= 7.4" + echohl None + finish +endif " The Commands we define. command! -bang -nargs=? -complete=customlist,UltiSnips#FileTypeComplete UltiSnipsEdit @@ -71,6 +79,4 @@ augroup END call UltiSnips#map_keys#MapKeys() -let did_UltiSnips_plugin=1 - " vim: ts=8 sts=4 sw=4