Premise
- neovim が既にインストールされ、利用可能であること。
.vim
.vimrc
ではなく.config
init.vim
を利用していること。
Setting Example
init.vim
"dein Scripts----------------------------- if &compatible set nocompatible endif let s:dein_dir = expand('~/.cache/dein') let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim' if &runtimepath !~# '/dein.vim' if !isdirectory(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) let s:toml_dir = expand('~/.config/nvim') call dein#load_toml(s:toml_dir . '/dein.toml', {'lazy': 0}) call dein#load_toml(s:toml_dir . '/dein_lazy.toml', {'lazy': 1}) call dein#end() call dein#save_state() endif " Required: filetype plugin indent on syntax enable if dein#check_install() call dein#install() endif if has('vim_starting') && dein#check_install() call dein#install() endif "End dein Scripts-------------------------
cd ~/.config tree -L 2 . ├── NuGet │ └── nuget.config ├── configstore │ └── update-notifier-npm.json └── nvim ├── colors ├── dein.toml ├── dein_lazy.toml ├── init.vim └── repos
nvim/dein.toml
[[plugins]] repo = 'Shougo/neosnippet.vim' [[plugins]] repo = 'Shougo/neosnippet-snippets' [[plugins]] repo = 'elzr/vim-json' if = '''! has('kaoriya')''' [[plugins]] repo = 'osyo-manga/vim-precious' depends = ['context_filetype.vim'] [[plugins]] repo = 'Shougo/context_filetype.vim' [[plugins]] repo = 'evidens/vim-twig' [[plugins]] repo = 'w0ng/vim-hybrid' [[plugins]] repo = 'hashivim/vim-terraform' [[plugins]] repo = 'vim-syntastic/syntastic' [[plugins]] repo = 'juliosueiras/vim-terraform-completion' [[plugins]] repo = 'vim-airline/vim-airline' depends = ['/vim-airline-themes'] [[plugins]] repo = 'vim-airline/vim-airline-themes' [[plugins]] repo = 'itchyny/lightline.vim' [[plugins]] repo = 'fatih/vim-go' nvim/dein_lazy.toml [[plugins]] repo = 'Shougo/dein.vim' [[plugins]] repo = 'Shougo/vimproc.vim' [[plugins]] repo = 'Shougo/vimshell.vim' [[plugins]] repo = 'cespare/vim-toml' on_ft = 'toml' [[plugins]] repo = 'hail2u/vim-css3-syntax' [[plugins]] repo = 'thinca/vim-ref' [[plugins]] repo = 'cespare/vim-toml' on_ft = ['toml'] [[plugins]] repo = 'elzr/vim-json' on_ft = 'json' [[plugins]] repo = 'rcmdnk/vim-markdown' on_ft = ['markdown', 'mkd'] [[plugins]] repo = 'vim-ruby/vim-ruby' on_map = '<Plug>' on_ft = 'ruby' [[plugins]] repo = 'hashivim/vim-terraform' [[plugins]] repo = 'jelera/vim-javascript-syntax' on_ft = 'javascript' [[plugins]] repo = 'Quramy/tsuquyomi' on_ft = ['typescript'] [[plugins]] repo = 'Shougo/neocomplete.vim' on_i = 1 [[plugins]] repo = 'Shougo/unite.vim' [[plugins]] repo = 'Shougo/neomru.vim' on_source = ['unite.vim'] [[plugins]] repo = 'thinca/vim-prettyprint' on_cmd = ['PP', 'PrettyPrint'] [[plugins]] repo = 'thinca/vim-fontzoom' on_cmd = ['Fontzoom'] on_map = ['<Plug>(fontzoom-'] gui = 1
uninstall
github.com/Shougo/dein.vim/issues/313によると以下を行えば良いようだ。
rm -rf ~/.cache/dein
# 併せて以下も削除した。
rm -rf ~/.config/nvim/.cache/init.vim/.dein