前提・実現したいこと
dein.vimを使いたいです。以下のようにコマンドを打ちました。
~$ mkdir .vim/bundles ~$ cd .vim/bundles ~/.vim/bundles$ 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 2355 100 2355 0 0 9340 0 --:--:-- --:--:-- --:--:-- 9345 ~/.vim/bundles$ # For example, we just use `~/.cache/dein` as installation directory ~/.vim/bundles$ sh ./installer.sh ~/.vim/bundles
出てきたものを.vimrc
に貼り付けました。
発生している問題・エラーメッセージ
~$ vim function dein#begin..dein#util#_begin..dein#util#_error..<SNR>11_msg2list の処理中にエラーが検出されました: 行 1: E121: 未定義の変数です: v:t_list E15: 無効な式です: type(a:expr) ==# v:t_list ? a:expr : split(a:expr, '\n') function dein#begin..dein#util#_begin..dein#util#_error の処理中にエラーが検出されました: 行 1: E714: リスト型が必要です 続けるにはENTERを押すかコマンドを入力してください
該当のソースコード
vimscript
1 2"dein Scripts----------------------------- 3if &compatible 4 set nocompatible " Be iMproved 5endif 6 7" Required: 8set runtimepath+=/home/riel/.vim/bundles/repos/github.com/Shougo/dein.vim 9 10" Required: 11if dein#load_state('/home/riel/.vim/bundles') 12 call dein#begin('/home/riel/.vim/bundles') 13 14 " Let dein manage dein 15 " Required: 16 call dein#add('/home/riel/.vim/bundles/repos/github.com/Shougo/dein.vim') 17 18 " Add or remove your plugins here: 19 call dein#add('Shougo/neosnippet.vim') 20 call dein#add('Shougo/neosnippet-snippets') 21 22 " You can specify revision/branch/tag. 23 call dein#add('Shougo/deol.nvim', { 'rev': 'a1b5108fd' }) 24 25 " Required: 26 call dein#end() 27 call dein#save_state() 28endif 29 30" Required: 31filetype plugin indent on 32syntax enable 33 34" If you want to install not installed plugins on startup. 35"if dein#check_install() 36" call dein#install() 37"endif 38 39"End dein Scripts-------------------------
試したこと
.cache/deinなど複数回ディレクトリを変えてインストールしているのですが同じメッセージが出ます(その度にディレクトリは削除しています)。
補足情報(FW/ツールのバージョンなど)
vim version 7.4.52
考えられる原因としては、これは2台目のPCで、1台目のPCでdein.vimをすでに使えていて、同じ環境にしたいと思いgit pull
してvimrc
を持ってきたことです。
そのときのvimrc
は以下です。
" "dein Scripts----------------------------- if &compatible set nocompatible " Be iMproved endif " Required: set runtimepath+=/home/riel/.vim/bundles/repos/github.com/Shougo/dein.vim " Required: if dein#load_state('/home/riel/.vim/bundles') call dein#begin('/home/riel/.vim/bundles') " Let dein manage dein " Required: call dein#add('/home/riel/.vim/bundles/repos/github.com/Shougo/dein.vim') " Add or remove your plugins here: call dein#add('Shougo/neocomplete') call dein#add('Shougo/neosnippet') call dein#add('osyo-manga/vim-stargate') call dein#add('vim-jp/vim-cpp') call dein#add('thinca/vim-quickrun') " You can specify revision/branch/tag. call dein#add('itchyny/vim-haskell-indent') " 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-------------------------
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。