GitHub Copilot is an AI pair programmer which suggests line completions and entire function bodies as you type. GitHub Copilot is powered by the OpenAI Codex AI system, trained on public Internet text and billions of lines of code.
Copilot.vim is a Vim plugin for GitHub Copilot. For now, it requires a Neovim 0.6 prerelease and a Node.js installation.
To learn more about GitHub Copilot, visit https://copilot.github.com.
-
Install Node.js v12 or newer.
-
Install a Neovim prerelease build. (Note: On macOS, extra steps are required to due to lack of notarization. Alternatively, Homebrew users can run
brew install neovim --HEAD). -
Install
github/copilot.vimusing vim-plug, packer.nvim, or any other plugin manager. Or to install directly:git clone https://github.com/github/copilot.vim.git \ ~/.config/nvim/pack/github/start/copilot.vim -
Start Neovim and invoke
:Copilot setup.
Suggestions are displayed inline and can be accepted by pressing the tab key.
See :help copilot for more information.