Copilot.vim is a plugin that integrates GitHub Copilot — the AI code completion tool from GitHub — with Vim and Neovim. It effectively brings inline AI-powered code suggestions into the editor: you type a comment or a function name (or simply start coding) and Copilot proposes completions which you can accept (often via Tab) or reject. The plugin supports a variety of languages and code contexts, just as Copilot itself does, and aims to make the interaction feel native in Vim. Installation is relatively straightforward using any plugin manager or manual git clone, and setup involves running :Copilot setup. You must have a valid Copilot subscription or access via enterprise for the service to work. In short, this plugin bridges Vim’s editing environment with the power of AI-driven code suggestion, reducing repetitive boilerplate and helping you code faster and smarter.
Features
- Inline AI-based code suggestions and completions in Vim/Neovim
- Accept completions via a key (e.g., Tab) or manually select suggestions
- Support for multiple programming languages and file types
- Easy installation using common Vim plugin managers
- Minimal setup: install and run :Copilot setup
- Compatible with both Vim (version 9.0.0185 or newer) and Neovim