Move vim plugin to the vim extension directory

This commit is contained in:
Kim Silkebækken 2012-12-17 15:45:21 +01:00
parent 37b43a77fc
commit af1f3ec7bd
6 changed files with 9 additions and 14 deletions

View File

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

View File

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

View File

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

View File

@ -1,4 +0,0 @@
import os
import vim
vim.command('source ' + os.path.join(os.path.abspath(os.path.dirname(__file__)), 'powerline.vim'))