neovimのインストール

neovim.io

yajs.vimを使っていると、パフォーマンスがあんまりよろしくないので、neovimを入れてみる。

yajs.vim is not good on performance. If you are using a slower computer. You might feel lag while moving cursor. You can try disable cursorline and colorcolumn, or reduce the number of synmaxcol. Another possible solution is change to neovim

github.com

$ brew install neovim

fishの場合インストール後に以下を実行する。

echo 'set -g fish_user_paths "/usr/local/opt/gettext/bin" $fish_user_paths' >> ~/.config/fish/config.fish

nvimで起動できるようになってる。

$ nvim

.vimrcをneovimの設定ファイルとする。neovimの設定ファイルとディレクトリの置き場 - neovim/vim入門 を参考にして.vimrcシンボリックリンクを貼って共有する。

$ echo 'set -x XDG_CONFIG_HOME ~/.config' >> ~/.config/fish/config.fish
$ ln -s ~/.vim ~/.config/nvim
$ ln -s ~/.vimrc ~/.config/nvim/init.vim