Neovim
operator.nvim
Updated August 17, 2026
A small library for authoring Vim operators without the boilerplate.
A helper library for plugin authors defining their own Vim operators. operator.define(name, opts) hides operatorfunc, g@, and the <Plug> mapping dance behind a single call; character-wise, line-wise, block-wise, and visual selections all work; dot-repeat comes free when vim-repeat is installed. Claims no keys of its own โ the calling plugin decides how users trigger the operator.