公式のチュートリアルにそってdeinのインストールを進めているつもりなのですが、source .vimrc
として読み込むと一部エラーとなってしまいます。
おそらく初歩的なエラーだと思うのですが、エラーに疎く、どこをどう直したらいいのか分かりません。
例えば10行目``if dein#load_state('/Users//.cache/dein/')'`ところでエラーとなっているようですが、どこに問題があるのか分かりません。
その他のnot foundも同様です。
どなたかわかる方いましたら教えていただけると助かります。
よろしくお願いします。
※MyUserNameのところは置き換えています。
bash
1"installer.shを打つ 2~/.cache/dein:master$sh ./installer.sh ~/.cache/dein/ 3 4 5"下記が表示される 6"dein Scripts----------------------------- 7if &compatible 8 set nocompatible " Be iMproved 9endif 10 11" Required: 12set runtimepath+=/Users/MyUserName/.cache/dein//repos/github.com/Shougo/dein.vim 13 14" Required: 15if dein#load_state('/Users/MyUserName/.cache/dein/') 16 call dein#begin('/Users/MyUserName/.cache/dein/') 17 18 " Let dein manage dein 19 " Required: 20 call dein#add('/Users/MyUserName/.cache/dein//repos/github.com/Shougo/dein.vim') 21 22 " Add or remove your plugins here: 23 call dein#add('Shougo/neosnippet.vim') 24 call dein#add('Shougo/neosnippet-snippets') 25 26 " You can specify revision/branch/tag. 27 call dein#add('Shougo/vimshell', { 'rev': '3787e5' }) 28 29 " Required: 30 call dein#end() 31 call dein#save_state() 32endif 33 34" Required: 35filetype plugin indent on 36syntax enable 37 38" If you want to install not installed plugins on startup. 39"if dein#check_install() 40" call dein#install() 41"endif 42 43"End dein Scripts------------------------- 44 45 46 47"上記を.vimrcに記述し保存しsource ~/.vimrcで読み込む 48~/.cache/dein:master$source ~/.vimrc 49-bash: dein Scripts----------------------------- 50if &compatible 51 set nocompatible : command not found 52-bash: endif: command not found 53-bash: Required: 54set runtimepath+=/Users/MyUserName/.cache/dein//repos/github.com/Shougo/dein.vim 55 56: No such file or directory 57-bash: /Users/MyUserName/.vimrc: line 10: syntax error near unexpected token `'/Users/MyUserName/.cache/dein/'' 58-bash: /Users/MyUserName/.vimrc: line 10: `if dein#load_state('/Users//.cache/dein/')' 59~/.cache/dein:master$ 60 61 62 63".vimrcを:wqで保存した後に出てくる文言 64[dein] recache_runtimepath() is disabled in sudo session. 65Press ENTER or type command to continue
10/07追記
~/.vim/dein/repos/github.com/Shougo/dein.vim
にリポジトリのデータをcloneするのをわすていました。
今度はgitのエラー内容になってしまうのですが、下記のようにcloneしようとしても、エラーとなってしまいます。
sshキー絡みのエラーらしいのですが、gitのsshキーは以前作成し、githubの方でも登録したのですが、なぜエラーとなってしまうのでしょうか?
話が右往左往して申し訳ないのですが、よろしくお願いします。
bash
1~/.vim/dein/repos/github.com/Shougo/dein.vim:master$git clone https://github.com/Shougo/dein.vim.git 2fatal: could not create work tree dir 'dein.vim': Permission denied 3

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。