失敗した場合のリスクを考えてcloud9でdein.vim導入してみた
1回目
失敗
"dein Scripts-----------------------------
↑コメントアウトが意図しない書き方で入ってしまい失敗
以下をコピペする
$ mkdir -p ~/.cache/dein
$ cd ~/.cache/dein
$ 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 2243 100 2243 0 0 6796 0 --:--:-- --:--:-- --:--:-- 6796
$ sh ./installer.sh ~/.cache/dein
〜〜省略〜〜
"End dein Scripts-------------------------
Done.
Complete setup dein!
$
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=/home/ec2-user/.cache/dein/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('/home/ec2-user/.cache/dein')
call dein#begin('/home/ec2-user/.cache/dein')
" Let dein manage dein
" Required:
call dein#add('/home/ec2-user/.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()
call dein#save_state()
endif
" 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-------------------------