Neovim for Beginners — Remote Plugins

Make Neovim a better editor using remote plugins.

alpha2phi
4 min readApr 3, 2022
Neovim for Beginners — Remote Plugins

In a previous article, we use Python and Vimscript to develop text-to-speech and AWS S3 upload plugins. The plugins work for both Vim and Neovim as both support using Python for plugin development.

For Neovim, using the remote plugin (:h remote-plugin) feature, any programming language may be used to extend Neovim without changes to Neovim itself. Remote plugins are coprocesses that have a direct communication channel (via RPC) with the Neovim process.

Even though these plugins run in separate processes they can call, be called, and receive events just as if the plugin’s code were executed in the main process.

In this article, we are going to use pynvim which is a Neovim Python client to develop plugins. There are many great Python libraries that make it a perfect language to develop Neovim plugins.

This article is part of the Neovim for Beginners series.

The Neovim configuration files can be found in this repository.

Getting Started

The remote plugin feature supports the usage of any programming language in Neovim. You can check out the list of supported API clients for other programming languages (C, C++, Go…

--

--

alpha2phi

Software engineer, Data Science and ML practitioner.