don't set switchbuf option until python filetype is loaded.

This commit is contained in:
mattn
2012-10-31 09:21:27 +09:00
parent 2143e2f0a3
commit e6b22f8450

View File

@@ -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