SSブログ

vimに暗黒の力を

暗黒vim王ことShougoさんのお創りになられたdein.vimをインストールします。
vimのプラグインの管理用ソフトですね。
まずはDeinをインストールするディレクトリを作成し、移動します。
mkdir -p ~/.cache/dein 
cd ~/.cache/dein


curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
sh ./installer.sh ~/.cache/dein


これが終わると以下のような表示がされるはず。
///////////////////////////////////////////////////////////////////////////////////////////////////
git は /usr/bin/git です

Begin fetching dein...
Cloning into '/home/tender/.cache/dein/repos/github.com/Shougo/dein.vim'...
remote: Enumerating objects: 60, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (51/51), done.
remote: Total 60 (delta 1), reused 23 (delta 0), pack-reused 0
Unpacking objects: 100% (60/60), done.
Done.

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+=/home/tender/.cache/dein/repos/github.com/Shougo/dein.vim

" Required:
call dein#begin('/home/tender/.cache/dein')

" Let dein manage dein
" Required:
call dein#add('/home/tender/.cache/dein/repos/github.com/Shougo/dein.vim')

" Add or remove your plugins here like this:
"call dein#add('Shougo/neosnippet.vim')
"call dein#add('Shougo/neosnippet-snippets')

" Required:
call dein#end()

" Required:
filetype plugin indent on
syntax enable

" 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!
///////////////////////////////////////////////////////////////////////////////////////////////////

この "dein Scripts----------------------------- から "End dein Scripts-------------------------までをコピーして
ホームディレクトリの「.vimrc」に追記します。

完成!
nice!(0)  コメント(0) 

nice! 0

コメント 0

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。