shogoさんのgithubからdeinのシェルスクリプトをインストールする為にスクリプトをダウンロードから実行するまでの一連の手順。
今回はdein
っというディレクトリを作成した。
ファイル名はinit_dein.sh
とする。
mkdir ~/.vim/dein
cd ~/.vim/dein
curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
sh ./installer.sh ~/.vim/dein
シェルスクリプト実行
sh dein.sh
"dein setting
if &compatible
>---set nocompatible
endif
"dein.vim本体をランタイムパスに追加
set runtimepath+=/home/hogehoge/.vim/dein/repos/github.com/Shougo/dein.vim
"必須
if dein#load_state('/home/hogehoge/.vim/dein')
call dein#begin('/home/hogehoge/.vim/dein')
"Plugins
call dein#add('Shougo/dein.vim')
call dein#add('Shougo/neocomplete.vim')
"構文チェックを行う。
"call dein#add('scrooloose/syntasti')
"()を補間する。
call dein#add('Townk/vim-autoclose')
"() 色付け:
call dein#add('itchyny/lightline.vim')
call dein#end()
call dein#save_state()
endif
filetype plugin indent on
syntax enable
"pluginのインストール
if dein#check_install()
call dein#install()
endif
.vimrcの設定