ゆずめも

メモ的なブログです。主に勉強した事について書いてます。

NeoVim入れてdein.vimに移行した-その2

dein.vimへ移行

github.com

NeoBundleから移行してねと書いてあるので移行ついでに移行する
ぶっちゃけメインがこっちなのでここから長い

前回の記事

yuzu441.hateblo.jp

ちなみに

Dein.vim is a dark powered Vim/Neovim plugin manager.

中二病感がかっこいい

インストールするもの

とりあえず最低限インストールしてプラグイン入れる所まで

今回は最低限インストールってことで

github.com

github.com

この2つをインストールする

インストール

# 保存ディレクトリ作成してgit clone
# 今回はホームディレクトリに保存
mkdir -p ~/.config/dein/repos/github.com/Shougo/dein.vim
git clone https://github.com/Shougo/dein.vim ~/.config/dein/repos/github.com/Shougo/dein.vim

インストールが終わったらinit.vimに設定を書く *1

runtimepathの部分は自分の環境に合わせて書き換えてください

if &compatible
  set nocompatible
endif
set runtimepath^=/Users/yuzu/.config/dein/repos/github.com/Shougo/dein.vim
let dein_plugin_dir = expand('~/.cache/dein')

if dein#load_state(dein_plugin_dir)
  call dein#begin(dein_plugin_dir)

  call dein#add('scrooloose/nerdtree')
  call dein#add('thinca/vim-quickrun')

  call dein#end()
  call dein#save_state()
endif

filetype plugin indent  on

書いたらnvimを起動
起動したら:call dein#install()を実行すると
nerdtreeとvim-quickrunがインストールされる

アップデートは:call dein#update()でやる

次回

あとは

あたりやりたい

*1:init.vimの場所は前回の記事に