[memo] .vimrc Vundle.vim から Dein.vim へ移行
http://lingr.com/room/vim/archives/2016/02/23
を眺めて移行した。あっさりと移行完了。プラグインはぼちぼち整理しないと。
https://github.com/Shougo/dein.vim
[zunermuka ~]$ curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2187 100 2187 0 0 1982 0 0:00:01 0:00:01 --:--:-- 1982
[zunermuka ~]$ sh ./installer.sh ~/.vim/dein
Install to "/Users/zunermuka/.vim/dein/repos/github.com/Shougo/dein.vim"...
git is /usr/local/bin/git
Please add the following settings for dein to the top of your vimrc (Vim) or init.vim (NeoVim) file:
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath^=/Users/zunermuka/.vim/dein/repos/github.com/Shougo/dein.vim
" Required:
call dein#begin(expand('/Users/zunermuka/.vim/dein'))
" Let dein manage dein
" Required:
call dein#add('Shougo/dein.vim')
" Add or remove your plugins here:
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
" You can specify revision/branch/tag.
call dein#add('Shougo/vimshell', { 'rev': '3787e5' })
" Required:
call dein#end()
" Required:
filetype plugin indent on
" If you want to install not installed plugins on startup.
"if dein#check_install()
" call dein#install()
"endif
"End dein Scripts-------------------------
Done.
Complete setup dein!
[zunermuka ~]$ rm -f ~/installer.sh
.vimrc
[zunermuka ~]$ vim .vimrc
Not installed plugins: ['vim-css3-syntax', 'ag.vim', 'rails.vim', 'nerdcommenter', 'DirDiff.vim', 'textutil.vim', 'github-complete.vim', 'vim-surround', 'The-NERD-tree', 'taglist.vim', 'FuzzyFinder', 'L9', 'html5.vim', 'simple-javascript-indenter', 'vim-easymotion', 'memolist.vim', 'vim-indent-guides', 'previm', 'mustache.vim', 'vim-pathogen', 'vim-fugitive', 'trinity.vim', 'CSScomb-for-Vim', 'vim-trailing-whitespace', 'vim-golang', 'vim-quickrun', 'vim-multiple-cursors', 'qfixgrep', 'vimproc.vim', 'vim-smartinput-endwise', 'shaberu.vim', 'context_filetype.vim', 'unite.vim', 'vimfiler.vim', 'vim-speeddating', 'Source-Explorer-srcexpl.vim', 'autodate.vim', 'unite-outline', 'neosnippet.vim', 'neocomplete.vim', 'vim-markdown', 'open-browser.vim', 'calendar.vim', 'neosnippet-snippets', 'grep.vim', 'vim-hier', 'quickfixstatus', 'syntastic', 'tcomment_vim', 'vim-smartinput', 'neosnippet', 'vim-livedown', 'neomru.vim', 'lightline.vim', 'smartchr', 'vim-slim']
...snip...
[dein] Runtimepath updated: (2016/02/28 17:01:28)
Press ENTER or type command to continue
動作を確認して Vundle.vim関連を削除
[zunermuka ~]$ rm -rf /Users/zunermuka/.vim/bundle
.vimrc 内の dein.vim 設定は ~/.vimrc.dein に移動
[zunermuka ~]$ touch /Users/zunermuka/.vimrc.dein
.vimrc
source ~/.vimrc.dein
endif
.vimrc から dein.vim 設定を削除
plugin のアップデート
:call dein#update()
を眺めて移行した。あっさりと移行完了。プラグインはぼちぼち整理しないと。
https://github.com/Shougo/dein.vim
[zunermuka ~]$ curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2187 100 2187 0 0 1982 0 0:00:01 0:00:01 --:--:-- 1982
[zunermuka ~]$ sh ./installer.sh ~/.vim/dein
Install to "/Users/zunermuka/.vim/dein/repos/github.com/Shougo/dein.vim"...
git is /usr/local/bin/git
Please add the following settings for dein to the top of your vimrc (Vim) or init.vim (NeoVim) file:
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath^=/Users/zunermuka/.vim/dein/repos/github.com/Shougo/dein.vim
" Required:
call dein#begin(expand('/Users/zunermuka/.vim/dein'))
" Let dein manage dein
" Required:
call dein#add('Shougo/dein.vim')
" Add or remove your plugins here:
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
" You can specify revision/branch/tag.
call dein#add('Shougo/vimshell', { 'rev': '3787e5' })
" Required:
call dein#end()
" Required:
filetype plugin indent on
" If you want to install not installed plugins on startup.
"if dein#check_install()
" call dein#install()
"endif
"End dein Scripts-------------------------
Done.
Complete setup dein!
[zunermuka ~]$ rm -f ~/installer.sh
.vimrc
- 最終行以下に追記
- Vundle 設定部分はコメントアウト、動作確認後に削除
if &compatiblefiletype plugin indent on
set nocompatible " Be iMproved
endif
set runtimepath^=/Users/zunermuka/.vim/dein/repos/github.com/Shougo/dein.vim
call dein#begin(expand('/Users/zunermuka/.vim/dein'))
call dein#add('Shougo/dein.vim')
call dein#add('Shougo/vimproc.vim')
call dein#add('Shougo/neocomplete.vim')
call dein#add('Shougo/context_filetype.vim')
call dein#add('Shougo/neosnippet')
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
call dein#add('Shougo/unite.vim')
call dein#add('Shougo/neomru.vim')
call dein#add('Shougo/unite-outline')
call dein#add('Shougo/vimfiler.vim')"
" Vundle
call dein#add('tpope/vim-fugitive')
call dein#add('Lokaltog/vim-easymotion')
call dein#add('terryma/vim-multiple-cursors')
call dein#add('fuenor/qfixgrep')
call dein#add('glidenote/memolist.vim')
call dein#add('kana/vim-smartinput')
call dein#add('cohama/vim-smartinput-endwise')
call dein#add('hail2u/vim-css3-syntax')
call dein#add('othree/html5.vim')
call dein#add('nathanaelkane/vim-indent-guides')
call dein#add('bronson/vim-trailing-whitespace')
call dein#add('thinca/vim-quickrun')
call dein#add('dannyob/quickfixstatus')
call dein#add('jceb/vim-hier')
call dein#add('supermomonga/shaberu.vim')
call dein#add('shime/vim-livedown')
call dein#add('rhysd/github-complete.vim')
call dein#add('kannokanno/previm')
call dein#add('tomtom/tcomment_vim')
call dein#add('tyru/open-browser.vim')
call dein#add('juvenn/mustache.vim')
call dein#add('vim-scripts/Source-Explorer-srcexpl.vim')
call dein#add('tpope/vim-speeddating')
call dein#add('tpope/vim-markdown')
call dein#add('miripiruni/CSScomb-for-Vim')
call dein#add('tpope/vim-surround')
call dein#add('scrooloose/nerdcommenter')
call dein#add('slim-template/vim-slim')
call dein#add('jnwhiteh/vim-golang')
call dein#add('rking/ag.vim')
call dein#add('tpope/vim-pathogen')
call dein#add('scrooloose/syntastic')
call dein#add('jiangmiao/simple-javascript-indenter')
call dein#add('itchyny/lightline.vim')
" www.vim.org Managed Plugin
call dein#add('L9')
call dein#add('FuzzyFinder')
call dein#add('rails.vim')
call dein#add('DirDiff.vim')
call dein#add('autodate.vim')
call dein#add('smartchr')
call dein#add('textutil.vim')
call dein#add('grep.vim')
call dein#add('The-NERD-tree')
call dein#add('trinity.vim')
call dein#add('taglist.vim')"
call dein#end()
if dein#check_install()最初に plugin のインストールが始まる。
call dein#install()
endif
[zunermuka ~]$ vim .vimrc
Not installed plugins: ['vim-css3-syntax', 'ag.vim', 'rails.vim', 'nerdcommenter', 'DirDiff.vim', 'textutil.vim', 'github-complete.vim', 'vim-surround', 'The-NERD-tree', 'taglist.vim', 'FuzzyFinder', 'L9', 'html5.vim', 'simple-javascript-indenter', 'vim-easymotion', 'memolist.vim', 'vim-indent-guides', 'previm', 'mustache.vim', 'vim-pathogen', 'vim-fugitive', 'trinity.vim', 'CSScomb-for-Vim', 'vim-trailing-whitespace', 'vim-golang', 'vim-quickrun', 'vim-multiple-cursors', 'qfixgrep', 'vimproc.vim', 'vim-smartinput-endwise', 'shaberu.vim', 'context_filetype.vim', 'unite.vim', 'vimfiler.vim', 'vim-speeddating', 'Source-Explorer-srcexpl.vim', 'autodate.vim', 'unite-outline', 'neosnippet.vim', 'neocomplete.vim', 'vim-markdown', 'open-browser.vim', 'calendar.vim', 'neosnippet-snippets', 'grep.vim', 'vim-hier', 'quickfixstatus', 'syntastic', 'tcomment_vim', 'vim-smartinput', 'neosnippet', 'vim-livedown', 'neomru.vim', 'lightline.vim', 'smartchr', 'vim-slim']
...snip...
[dein] Runtimepath updated: (2016/02/28 17:01:28)
Press ENTER or type command to continue
動作を確認して Vundle.vim関連を削除
[zunermuka ~]$ rm -rf /Users/zunermuka/.vim/bundle
.vimrc 内の dein.vim 設定は ~/.vimrc.dein に移動
[zunermuka ~]$ touch /Users/zunermuka/.vimrc.dein
.vimrc
- 最終行以下に追記
source ~/.vimrc.dein
endif
.vimrc から dein.vim 設定を削除
plugin のアップデート
:call dein#update()
コメント