move also the whole python initialization away from plugin.vim

This commit is contained in:
David Halter
2013-08-27 21:25:05 +04:30
parent c1ec986732
commit eae610a88d
2 changed files with 17 additions and 23 deletions

View File

@@ -1,28 +1,13 @@
"jedi.vim - Omni Completion for python in vim
" Maintainer: David Halter <davidhalter88@gmail.com>
"
" This part of the software is just the vim interface. The main source code
" lies in the python files around it.
if !has('python') && !has('python3')
if !exists("g:jedi#squelch_py_warning")
echomsg "Error: Required vim compiled with +python"
endif
finish
endif
" load plugin only once
if exists("g:loaded_jedi") || &cp
finish
endif
let g:loaded_jedi = 1
" This part of the software is just the vim interface. The really big deal is
" the Jedi Python library.
if g:jedi#auto_vim_configuration
filetype plugin on
endif
" ------------------------------------------------------------------------
" PyImport command
" ------------------------------------------------------------------------