Posted at

vimにてpowerlineのエラーの対処(備忘録)

More than 1 year has passed since last update.


error内容

Traceback (most recent call last):

File "<string>", line 9, in <module>
ImportError: No module named powerline.vim
An error occurred while importing powerline module.
This could be caused by invalid sys.path setting,
or by an incompatible Python version (powerline requires
Python 2.6, 2.7 or 3.2 and later to work). Please consult
the troubleshooting section in the documentation for
possible solutions.
Unable to import powerline, is it installed?
Press ENTER or type command to continue


解決策(~/.vimrc内に書き足す)

let g:powerline_pycmd="python3"