Add information about Python support
This commit is contained in:
parent
d87b35d094
commit
f423ba11c8
|
@ -13,6 +13,12 @@ The vim plugin requires a vim version with Python 2.7 support compiled in.
|
|||
You can check if your vim supports Python 2 by running ``vim --version
|
||||
| grep +python``.
|
||||
|
||||
If your vim version doesn't have support for Python 2, you'll have to
|
||||
compile it with the ``--enable-pythoninterp`` flag (this also requires the
|
||||
Python headers to be installed on your system). Please consult your
|
||||
distribution's documentation for details on how to compile and install
|
||||
packages.
|
||||
|
||||
Vim version 7.3.661 or newer is recommended for performance reasons.
|
||||
|
||||
Installation
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
if ! has('python')
|
||||
echoe 'You need vim compiled with Python 2 support for Powerline to work. Please consult the documentation for more details.'
|
||||
finish
|
||||
endif
|
||||
|
||||
python import sys, vim, os
|
||||
python sys.path.append(vim.eval('expand("<sfile>:h:h:h:h")'))
|
||||
python import uuid
|
||||
|
|
Loading…
Reference in New Issue