0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ChromebookのLinux環境にNeovimをインストールする

0
Posted at

CPUアーキテクチャを確認する

ターミナルで以下のコマンドを実行し、環境のアーキテクチャを確認します。

uname -m

最新のバイナリをダウンロードして展開する

確認したアーキテクチャに合わせて、以下を実行します。(以下はx86_64の場合です。)
/opt ディレクトリの下にNeovimの本体を配置します。

curl -fLO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz
sudo rm -rf /opt/nvim-linux64
sudo tar -C /opt -xzf nvim-linux-x86_64.tar.gz

パス(PATH)を通す

どのディレクトリからでも nvim コマンドで起動できるように、システムの実行パスにリンクを張ります。

sudo ln -sf /opt/nvim-linux-x86_64/bin/nvim /usr/local/bin/nvim

インストール結果を確認する

NVIM v0.12.6のようにバージョンが表示されれば、本体のインストールは成功です。

nvim --version

設定ファイルを準備する

Neovimの設定ファイル init.lua を置くためのディレクトリを作成しておきます。

mkdir -p ~/.config/nvim
touch ~/.config/nvim/init.lua

 
以上です。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?