vim-rplugin

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

MIT License

Stars
9

vim-rplugin

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