dein.vimへ移行するやつ
完全に気分でNeobundleからdein.vimへ変更してみる
インストールは公式githubの通りに,dotfilesで管理しようと思ったので以下
curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh sh ./installer.sh ~/dotfiles/dein
プラグインの情報は全てTOMLファイルに書くと早くて良いらしい .vimrcの設定としては以下のような感じ
"dein.vim dark power let s:dein_dir = expand('~/dotfiles/dein') let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim' set nocompatible " dein.vim をインストールしていない場合は自動インストール if !isdirectory(s:dein_repo_dir) echo "install dein.vim..." execute '!git clone git://github.com/Shougo/dein.vim' s:dein_repo_dir endif execute 'set runtimepath^=' . s:dein_repo_dir "--------------------------- " Start dein.vim Settings. "--------------------------- if dein#load_state(s:dein_dir) call dein#begin(s:dein_dir) let g:rc_dir = expand('~/dotfiles/dein') let s:toml = g:rc_dir . '/dein.toml' let s:lazy_toml = g:rc_dir . '/dein_lazy.toml' " TOMLファイルにpluginを記述 call dein#load_toml(s:toml, {'lazy': 0}) call dein#load_toml(s:lazy_toml, {'lazy': 1}) call dein#end() call dein#save_state() endif " 未インストールを確認 if dein#check_install() call dein#install() endif "--------------------------- " End dein.vim Settings. "--------------------------- " 以下細かな設定
みたいな感じで非常にシンプルになって良さがある
dein.tomlは
[[plugins]] repo = 'Shougo/dein.vim' [[plugins]] repo = 'scrooloose/syntastic.git' [[plugins]] repo = 'itchyny/lightline.vim' [[plugins]] repo = 'Townk/vim-autoclose'
くらいしかまだ書いてない.hook系の設定は眠いので触っていない
とりあえずgithubのdotfiles
も更新したので,neobundleから移行できていないプラグインも順次移行していきたい感じがある
流石に眠いので,明日の授業中に移行作業はしてきたいかなあ
参考サイト
GitHub - Shougo/dein.vim: Dark powered Vim/Neovim plugin manager
dein.vimによるプラグイン管理のマイベストプラクティス - Qiita
Vimメモ : dein.vimをNeovimで使ってみる - もた日記
NeoBundleのプラグイン管理をTOMLに任せてvimrcをスッキリさせる | blog: takahiro okumura
追記
5/29
call dein#save_state()
をca;; dein#save_state()
とタイポしていた
タイポしてても何もエラー出ないがそれでいいのだろうか……