" プラグインが実際にインストールされるディレクトリ let s:cache_home = empty($XDG_CACHE_HOME) ? expand('~/.cache') : $XDG_CACHE_HOME let s:dein_dir = s:cache_home . '/dein' let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim' " dein.vim がなければ github から落としてくる if &runtimepath !~# '/dein.vim' if !isdirectory(expand(s:dein_repo_dir)) execute '!git clone https://github.com/Shougo/dein.vim' s:dein_repo_dir endif execute 'set runtimepath^=' . fnamemodify(s:dein_repo_dir, ':p') endif if dein#load_state(s:dein_dir) call dein#begin(s:dein_dir) call dein#load_toml( '~/.vim/dein.toml') call dein#end() call dein#save_state() endif if dein#check_install(['vimproc']) call dein#install(['vimproc']) endif if dein#check_install() call dein#install() endif