LoginSignup
2
1

More than 1 year has passed since last update.

Vim -> Neovim + Copilotに移行した

Last updated at Posted at 2022-02-06

背景

かなり前に申し込んでいたGitHub Copilotですが、そういえば最近ようやくinvitationが来てました
image.png

しかし!
スタートガイドがあるのは下記3つのエディタ

Vimがない。。。
ということでNeovimをインストールするところからはじめました。

Neovimのインストール

Neovim は0.6以上とのことで
AppImage ("universal" Linux package)からインストールします

curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
sudo mv nvim.appimage /usr/local/bin/nvim #こちらはお好みで

そのままvimの.vimrcが動くのと思いきやPlug周りが動かないので
Neovim用にPlugだけ追加でインストールします

curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

因みに私のvimrc周りは こちら に掲載してます

Copilotのセットアップ

インストラクションに従って

git clone https://github.com/github/copilot.vim.git  ~/.config/nvim/pack/github/start/copilot.vim
$ nvim

して

:Copilot setup

でセットアップします

ゴール

こんな感じでNeovim+Copilotの移行は完了しました
ezgif-5-17ddecc9e5.gif

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1