if ! has('python') && ! has('python3')
	echohl ErrorMsg
	echomsg 'You need vim compiled with Python 3.3 or Python 2.7 support for Powerline to work. Please consult the documentation for more details.'
	echohl None
	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

if ! has('python') && ! has('python3')
	echohl ErrorMsg
	echomsg 'You need vim compiled with Python 3.3 or Python 2.7 support for Powerline to work. Please consult the documentation for more details.'
	echohl None
	finish
endif

python import sys, vim
python sys.path.append(vim.eval('expand("<sfile>:h:h:h:h:h")'))

source <sfile>:h:h/powerline.vim

Revert to previous way of sourcing vim plugin
Revert to previous way of sourcing vim plugin

Refs #95.

kenrachynski/powerline,keelerm84/powerline,kenrachynski/powerline,russellb/powerline,Liangjianghao/powerline,Luffin/powerline,lukw00/powerline,bartvm/powerline,firebitsbr/powerline,wfscheper/powerline,wfscheper/powerline,IvanAli/powerline,EricSB/powerline,lukw00/powerline,blindFS/powerline,xfumihiro/powerline,firebitsbr/powerline,blindFS/powerline,seanfisk/powerline,xxxhycl2010/powerline,Luffin/powerline,DoctorJellyface/powerline,EricSB/powerline,bezhermoso/powerline,QuLogic/powerline,S0lll0s/powerline,xxxhycl2010/powerline,Liangjianghao/powerline,junix/powerline,xfumihiro/powerline,darac/powerline,kenrachynski/powerline,s0undt3ch/powerline,dragon788/powerline,junix/powerline,S0lll0s/powerline,bezhermoso/powerline,IvanAli/powerline,dragon788/powerline,s0undt3ch/powerline,DoctorJellyface/powerline,darac/powerline,russellb/powerline,xxxhycl2010/powerline,bartvm/powerline,areteix/powerline,areteix/powerline,darac/powerline,wfscheper/powerline,firebitsbr/powerline,blindFS/powerline,QuLogic/powerline,prvnkumar/powerline,s0undt3ch/powerline,cyrixhero/powerline,dragon788/powerline,bartvm/powerline,magus424/powerline,Luffin/powerline,Liangjianghao/powerline,magus424/powerline,seanfisk/powerline,cyrixhero/powerline,junix/powerline,QuLogic/powerline,DoctorJellyface/powerline,S0lll0s/powerline,russellb/powerline,areteix/powerline,xfumihiro/powerline,cyrixhero/powerline,lukw00/powerline,EricSB/powerline,keelerm84/powerline,bezhermoso/powerline,prvnkumar/powerline,seanfisk/powerline,IvanAli/powerline,magus424/powerline,prvnkumar/powerline