madox2/vim-ai
AI-powered code assistant for Vim. OpenAI and ChatGPT plugin for Vim and Neovim.
What it solves
This plugin integrates AI capabilities directly into the Vim and Neovim text editors, allowing users to generate code, edit text, and converse with AI models without leaving their development environment.
How it works
The plugin acts as a client for OpenAI-compatible APIs. Users provide an API key, and the plugin sends selected text or prompts to the configured model. It supports interactive chat sessions, in-place text editing, and image generation. It can be extended to use various models (like Gemini or Claude) via OpenAI-compatible proxies such as OpenRouter or LiteLLM.
Who it’s for
It is designed for Vim and Neovim users who want to leverage LLMs for coding assistance, text refactoring, or documentation generation directly within their preferred editor.
Highlights
- Native Integration: Perform AI tasks like text completion and editing using simple editor commands.
- Customizable Roles: Define reusable AI instructions and configurations in
.inifiles to streamline repetitive tasks. - Flexible Provider Support: Compatible with any OpenAI-compliant API, enabling the use of local or third-party model services.
- Interactive Chat: Maintain persistent chat sessions that can be saved to files, including support for file inclusions and command execution.
Related
- Project
- Project
- Project
- Project