Add information about g:powerline_pycmd to error message

This commit is contained in:
ZyX 2014-07-29 16:24:38 +04:00
parent 074e118d70
commit 8cb478f859
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ finally
echomsg 'Python 2.6, 2.7 or 3.2 and later to work). Please consult' echomsg 'Python 2.6, 2.7 or 3.2 and later to work). Please consult'
echomsg 'the troubleshooting section in the documentation for' echomsg 'the troubleshooting section in the documentation for'
echomsg 'possible solutions.' echomsg 'possible solutions.'
if s:pycmd is# 'py' && has('python3')
echomsg 'If powerline on your system is installed for python 3 only you'
echomsg 'should set g:powerline_pycmd to "py3" to make it load correctly.'
endif
echohl None echohl None
let s:pystr = "def powerline_troubleshoot():\n" let s:pystr = "def powerline_troubleshoot():\n"
let s:pystr .= " import sys\n" let s:pystr .= " import sys\n"