From 0f08e2e553d3c8f573fa91347ae4c92a52a7de2b Mon Sep 17 00:00:00 2001 From: Aaron Schrab Date: Tue, 31 Jul 2012 15:42:35 -0400 Subject: [PATCH] Allow suppressing warning about python support Don't warn about missing python support if the UltiSnipsNoPythonWarning variable is defined. This allows users to use a common set of vim configuration files across a range of systems, even if some of them do not have python support compiled into vim. --- plugin/UltiSnips.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/UltiSnips.vim b/plugin/UltiSnips.vim index 31749fc..344d959 100644 --- a/plugin/UltiSnips.vim +++ b/plugin/UltiSnips.vim @@ -22,7 +22,9 @@ if !exists("g:UltiSnipsUsePythonVersion") let g:_uspy=":py3 " if !has("python3") if !has("python") - echo "UltiSnips requires py >= 2.6 or any py3" + if !exists("g:UltiSnipsNoPythonWarning") + echo "UltiSnips requires py >= 2.6 or any py3" + endif finish endif let g:_uspy=":py "