mirror of
https://github.com/powerline/powerline.git
synced 2025-07-05 13:05:02 +02:00
Move vim plugin to the vim extension directory
This commit is contained in:
parent
37b43a77fc
commit
af1f3ec7bd
@ -36,7 +36,7 @@ Vim usage
|
|||||||
If Powerline is installed as a system-wide Python package, you can enable
|
If Powerline is installed as a system-wide Python package, you can enable
|
||||||
the plugin by adding the following line to your ``vimrc``::
|
the plugin by adding the following line to your ``vimrc``::
|
||||||
|
|
||||||
python import powerline.plugin.vim.load_vim_plugin
|
python from powerline.ext.vim import source_plugin; source_plugin()
|
||||||
|
|
||||||
If Powerline is installed outside Python's search path (e.g. by having the
|
If Powerline is installed outside Python's search path (e.g. by having the
|
||||||
git repo in your dotfiles folder) you'll have to source the vim plugin file
|
git repo in your dotfiles folder) you'll have to source the vim plugin file
|
||||||
@ -45,4 +45,4 @@ with an absolute path to the plugin location.
|
|||||||
Add the following line to your ``vimrc``, where ``{path}`` is the path to
|
Add the following line to your ``vimrc``, where ``{path}`` is the path to
|
||||||
the main Powerline project folder::
|
the main Powerline project folder::
|
||||||
|
|
||||||
source {path}/powerline/plugin/vim/powerline.vim
|
source {path}/powerline/ext/vim/powerline.vim
|
||||||
|
@ -1 +1,7 @@
|
|||||||
from renderer import VimRenderer # NOQA
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
def source_plugin():
|
||||||
|
import os
|
||||||
|
import vim
|
||||||
|
|
||||||
|
vim.command('source ' + os.path.join(os.path.abspath(os.path.dirname(__file__)), 'powerline.vim'))
|
||||||
|
@ -1,10 +1,3 @@
|
|||||||
" Powerline vim plugin
|
|
||||||
"
|
|
||||||
" If Powerline is installed in a Python search path, load the plugin by
|
|
||||||
" adding the following line to your .vimrc:
|
|
||||||
"
|
|
||||||
" python import powerline.plugin.vim.load_vim_plugin
|
|
||||||
|
|
||||||
python import sys, vim, os
|
python import sys, vim, os
|
||||||
python sys.path.append(vim.eval('expand("<sfile>:h:h:h:h")'))
|
python sys.path.append(vim.eval('expand("<sfile>:h:h:h:h")'))
|
||||||
python import uuid
|
python import uuid
|
@ -1,4 +0,0 @@
|
|||||||
import os
|
|
||||||
import vim
|
|
||||||
|
|
||||||
vim.command('source ' + os.path.join(os.path.abspath(os.path.dirname(__file__)), 'powerline.vim'))
|
|
Loading…
x
Reference in New Issue
Block a user