vim-rplugin


Ⅰ. 插件描述

Allow to support Vim 8 in a python/python3 of a remote plugin in Neovim

Ⅱ. 基本信息

创建日期:  2016-09-28
使用用户:  2
Github星:  9
插件作者:  Alisue

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'lambdalisue/vim-rplugin'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'lambdalisue/vim-rplugin'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'lambdalisue/vim-rplugin'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/lambdalisue/vim-rplugin

Ⅳ. 文档说明

vim-rplugin

Travis CI
AppVeyor
Version 0.1.0
Support Vim 8.0 or above
MIT License
Doc

A library to support Vim 8 for plugin which is written with Python 3 remote plugin of Neovim.
Inspired by Shougo/denite.nvim.

Note: This is an alpha version.

Install

Plug 'lambdalisue/vim-rplugin'

Usage

  1. Use rplugin.Neovim class to wrap vim module.
  2. Call rplugin#init({runtimepath}) to add {runtimepath}/rplugin/python3 to sys.path

Wrapping vim module with rplugin.Neovim will

  • Add vim.call(name, *args) interface
  • Add vim.funcs.{fname}(*args) interface
  • Returns str instead of bytes in Python 3

You can see a demo project at http://github.com/lambdalisue/vim-rplugin-test

Plugins which use vim-rplugin to support Vim 8

添加新评论