LoginSignup
0
0

More than 3 years have passed since last update.

vimへVundleを導入してPluginSearchで出たエラーを解決

Last updated at Posted at 2020-07-05

経緯

Windowsでvimを使っているのですがvimのパッケージソフトを導入することにすることにしました。

こちらの記事などを参考にVundleというものを導入することにしました.

導入

githubのQuick Startを参考に導入しました. windowsなので追加でVundle on Windowsこちらの設定も必要のようです.

問題

これで使えると意気揚々と:PluginSearch hogeと叩いてみたところ以下のようなエラーがでました.

function vundle#scripts#all[3]..<SNR>46_load_scripts の処理中にエラーが検出されました:
行    7:
E15: 無効な式です: <html>^M
E15: 無効な式です: <html>^M
function vundle#scripts#all の処理中にエラーが検出されました:
行    5:
E712: filter() の引数はリスト型または辞書型でなければなりません
行   10:
E686: reverse() の引数はリスト型でなければなりません
function vundle#scripts#all[10]..vundle#scripts#bundle_names の処理中にエラーが検出されました:
行    1:
E712: map() の引数はリスト型または辞書型でなければなりません
function vundle#scripts#all[10]..vundle#scripts#view の処理中にエラーが検出されました:
行   15:
E745: リスト型を数値として扱っています
E116: 関数の無効な引数です: append
1 plugins found

解決

  • これを参考にして解決しました.

原因

:PluginSearch hogeはvimのプラグインの一覧をjsonファイルからダウンロードしてきて使っています. ところが、デフォルトのダウンロード先は既に役目を終えたようです.

This used to be a mirror of Vim's scripts site on Github.

It was created to allow early package managers (such as Vim Update Bundles and Vundle) to install scripts straight from GitHub *.

Now that most Vim scripts are developed on GitHub and installable straight from the source, >I'm happy to say that there's no need for vim-scripts anymore.

The code has been emptied out to compel users to switch to better sources. The repos remain so none of the work in pull requests is lost.

The scraper code is preserved on GitHub: vim-scraper.

Happy vimming!

このため、jsonファイルをダウンロードできずhtmlファイルがダウンロードされているため出ているエラーのようです.

解決法

現在も使えるjsonファイルのダウンロード先を指定してあげればうまくいきます.

  1. \bundle\.vundle\script-names.vim-scripts.org.jsonを削除
  2. \bundle\Vundle.vim\autoload\vundle\scripts.vimの237行目
  let l:vim_scripts_json = 'http://vim-scripts.org/api/scripts.json'

  let l:vim_scripts_json = 'https://raw.githubusercontent.com/i-cooltea/resource/master/vim-api_scripts.json'

に変更.

これで使えるようになりました.ここで見つけたリンクなのでもっと良いものがあるのかもしれません.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0