gitmyhub

copilot.vim

Vim Script ★ 12k updated 5mo ago

Neovim plugin for GitHub Copilot

Copilot.vim is an official plugin that brings GitHub Copilot into the Vim and Neovim text editors. GitHub Copilot is an AI coding assistant that watches what you type and suggests completions, ranging from single lines to entire functions. It was trained on a large amount of publicly available code and can produce suggestions in many programming languages.

To use it, you need a GitHub Copilot subscription (a free tier is available), a recent version of Vim or Neovim, and Node.js installed on your machine. Installation is done through any standard Vim plugin manager, or manually by cloning the repository into your editor's plugin folder. After that, running the setup command from inside the editor connects it to your GitHub account.

Once active, suggestions appear inline as you type and can be accepted by pressing the tab key. The plugin works on Linux, macOS, and Windows. Further help and configuration options are available through the editor's built-in help system by running the help command for copilot.