Merge pull request #36 from mattn/switchbuf

don't set switchbuf option until python filetype is loaded.
This commit is contained in:
David Halter
2012-10-31 02:25:21 -07:00

View File

@@ -40,13 +40,11 @@ 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