Revert to previous way of sourcing vim plugin

Refs #95.
This commit is contained in:
Kim Silkebækken 2013-01-22 17:14:45 +01:00
parent 0d39dd5507
commit 51c302a6ca
1 changed files with 4 additions and 7 deletions

View File

@ -5,10 +5,7 @@ if ! has('python') && ! has('python3')
finish
endif
python <<EOF
from __future__ import absolute_import
import sys, vim
sys.path.append(vim.eval('expand("<sfile>:h:h:h:h:h")'))
from powerline.bindings.vim import source_plugin
source_plugin()
EOF
python import sys, vim
python sys.path.append(vim.eval('expand("<sfile>:h:h:h:h:h")'))
source <sfile>:h:h/powerline.vim