From 3bbc8d4c57aabef8e9efd6c60e1e74165da565b0 Mon Sep 17 00:00:00 2001 From: Emily Strickland Date: Thu, 3 Jan 2013 21:32:23 -0800 Subject: [PATCH] Setting to let user silence +python error. If the user kicks off a version of vim with the jedi-vim plugin without having Python support compiled in, it gives an error which halts vim from starting up until it is dismissed. This commit adds a way to opt out of that warning for people who use the same configuration and plugins on different machines and different versions of vim. --- plugin/jedi.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/jedi.vim b/plugin/jedi.vim index ed70117..ff59bb4 100644 --- a/plugin/jedi.vim +++ b/plugin/jedi.vim @@ -6,7 +6,9 @@ " lies in the python files around it. if !has('python') - echomsg "Error: Required vim compiled with +python" + if !exists("g:jedi#squelch_py_warning") + echomsg "Error: Required vim compiled with +python" + endif finish endif