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

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

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

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

Q&A

解決済

2回答

6729閲覧

プラグインが見つからないと言われ、deinのプラグインがインストールされない

anonyrabbit

総合スコア78

Vim

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

0グッド

0クリップ

投稿2019/09/08 04:03

編集2019/09/08 04:04

ハマってしまったので質問させてください。以下に現在の状況を書いてあります。何卒、ご回答のほどよろしくお願いいたします。

実現したいこと

Neovimにプラグインをインストールしたいです。

起きている問題

全ての設定を適切に行ったのにも関わらずインストールができません。

エラー

:call dein#install()
このコマンドを実行すると、

[dein] Target plugins are not found.

[dein] You may have used the wrong plugin name, or all of the plugins are already installed.
Press ENTER or type command to continue

このように言われてしまいます。

やったこと

bash

1$ brew install neovim 2$ brew install python3 3$ pip3 install -U neovim 4$ cd ~/.cache/dein 5$ curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh 6$ sh ./installer.sh ~/.cache/dein

#設定ファイル

~/.config/nvim/init.vim

vim

1"if &compatible 2" set nocompatible 3"endif 4" 5"set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim 6" 7"if dein#load_state('~/.cache/dein') 8" call dein#begin('~/.cache/dein') 9" let s:toml_dir = $HOME . '/.config/nvim/' 10" let s:toml = s:toml_dir . '/dein.toml' 11" let s:lazy_toml = s:toml_dir . '/dein_lazy.toml' 12" call dein#load_toml(s:toml, {'lazy': 0}) 13" call dein#load_toml(s:lazy_toml, {'lazy': 1}) 14" call dein#end() 15" call dein#save_state() 16"endif 17"if dein#check_install() 18" call dein#install() 19"endif 20" 21"filetype plugin indent on 22"syntax enable 23 24"上と下の両方試しましたが、うまく行きませんでした。 25 26"dein Scripts----------------------------- 27if &compatible 28 set nocompatible " Be iMproved 29endif 30 31set runtimepath+=$HOME/.cache/dein/repos/github.com/Shougo/dein.vim 32 33if dein#load_state('$HOME/.cache/dein') 34 call dein#begin('$HOME/.cache/dein') 35 36 " Let dein manage dein 37 " Required: 38 call dein#add('$HOME/.cache/dein/repos/github.com/Shougo/dein.vim') 39 40 " Add or remove your plugins here: 41 call dein#add('Shougo/neosnippet.vim') 42 call dein#add('Shougo/neosnippet-snippets') 43 44 " You can specify revision/branch/tag. 45 call dein#add('Shougo/deol.nvim', { 'rev': '01203d4c9' }) 46 47 call dein#end() 48 call dein#save_state() 49endif 50 51filetype plugin indent on 52syntax enable 53 54

toml

1[[plugins]] 2repo = 'Shougo/dein.vim' 3 4[[plugins]] 5repo = 'ryanoasis/vim-devicons' 6 7[[plugins]] 8repo = 'vim-airline/vim-airline' 9 10[[plugins]] 11repo = 'vim-airline/vim-airline-themes' 12 13[[plugins]] 14repo = 'LeafCage/yankround.vim' 15 16[[plugins]] 17repo = 'scrooloose/nerdtree' 18 19[[plugins]] 20repo = 'miyakogi/seiya.vim' 21 22[[plugins]] 23repo = 'Shougo/vimfiler' 24 25[[plugins]] 26repo = 'othree/html5.vim' 27 28[[plugins]] 29repo = 'kana/vim-submode' 30 31[[plugins]] 32repo = 'tpope/vim-fugitive' 33 34[[plugins]] 35repo = 'Shougo/neomru.vim' 36 37[[plugins]] 38repo = 'vim-scripts/vim-auto-save' 39

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

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

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

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

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

guest

回答2

0

自己解決

あれ、なんかできました・・。本当にごめんなさい・・・。なんか余計な記述が入っていたのかもしれません・・。
"if &compatible
" set nocompatible
"endif
"
"set runtimepath+=/.cache/dein/repos/github.com/Shougo/dein.vim
"
"if dein#load_state('
/.cache/dein')
" call dein#begin('~/.cache/dein')
" let s:toml_dir = $HOME . '/.config/nvim/'
" let s:toml = s:toml_dir . '/dein.toml'
" let s:lazy_toml = s:toml_dir . '/dein_lazy.toml'
" call dein#load_toml(s:toml, {'lazy': 0})
" call dein#load_toml(s:lazy_toml, {'lazy': 1})
" call dein#end()
" call dein#save_state()
"endif
"if dein#check_install()
" call dein#install()
"endif
"
"filetype plugin indent on
"syntax enable

これだけにしたらできました・・・。お騒がせしました。

投稿2019/09/08 06:10

anonyrabbit

総合スコア78

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

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

0

dein.vimのインストール自体にハマってしまったメモ こちら試してみてはいかがでしょう

投稿2019/09/08 05:26

unhappychoice

総合スコア1531

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

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

anonyrabbit

2019/09/08 06:06

そちら試してみたのですが、ダメでした・・・。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問