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.
This commit is contained in:
parent
c9bb2921dc
commit
0f08e2e553
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user