vimock
Vimock is an open-source library designed to help developers test code that runs inside Vim and Neovim by providing a framework for mocking the editor’s scripting environment. It enables unit tests to exercise plugins, configurations, and scripts without launching an actual editor instance, making tests faster and more deterministic.
The project focuses on the Vim ecosystem, including Vimscript and Neovim’s Lua API, and offers utilities to
Core features include function stubbing, call spying and verification, and return-value or error simulation. It also
Usage generally involves replacing real Vim API calls with mocks during tests, recording interactions for assertions,
Development and licensing: Vimock is maintained by contributors in the Vim community and released under an