質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Vim

VimとはUnix / Linux 系のOSに標準搭載されているターミナル上で動くテキストエディタです。

Q&A

解決済

1回答

5674閲覧

dein.vimのinstallがうまく行かない

gh_end_

総合スコア7

Vim

VimとはUnix / Linux 系のOSに標準搭載されているターミナル上で動くテキストエディタです。

0グッド

0クリップ

投稿2018/05/21 04:33

前提・実現したいこと

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-------------------------

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

https://twitter.com/ShougoMatsu/status/991671397431701504
製作者さんが言うように、最新のdeinはVim7.4では動かないようになったみたいです。

俺もVim8.1でそのやり方を試してみましたが、エラーメッセージは出ませんでした。

投稿2018/05/21 16:23

kinakomichi

総合スコア17

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問