From e6b22f8450c6fbea256fdc1385302b7e18a5b20a Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 31 Oct 2012 09:21:27 +0900 Subject: [PATCH] don't set switchbuf option until python filetype is loaded. --- plugin/jedi.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin/jedi.vim b/plugin/jedi.vim index 99a5d96..56af749 100644 --- a/plugin/jedi.vim +++ b/plugin/jedi.vim @@ -40,13 +40,12 @@ for [key, val] in items(s:settings) endfor -set switchbuf=useopen " needed for pydoc - if g:jedi#auto_initialization " this is only here because in some cases the VIM library adds their " autocompletion as a default, which may cause problems, depending on the " order of invocation. - autocmd FileType python setlocal omnifunc=jedi#complete + autocmd FileType python setlocal omnifunc=jedi#complete switchbuf=useopen " needed for pydoc + endif