Add information about Python support

This commit is contained in:
Kim Silkebækken 2012-12-21 11:19:53 +01:00
parent d87b35d094
commit f423ba11c8
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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