mirror of
https://github.com/powerline/powerline.git
synced 2025-07-09 06:54:54 +02:00
When Powerline is installed as a package in the system-wide site-packages folder it can easily be enabled by adding a simple python statement to the user's vimrc file. Otherwise it can be added by doing a :source path/to/plugin/vim/powerline.vim in vimrc, but the other way of doing it works without specifying the full path as long as Powerline is installed somewhere in sys.path.
5 lines
121 B
Python
5 lines
121 B
Python
import os
|
|
import vim
|
|
|
|
vim.command('source ' + os.path.join(os.path.abspath(os.path.dirname(__file__)), 'powerline.vim'))
|