The Vim pathogen installation plug-in does not work under .vim/bundle. It only works when manually copied to .vim/autoload. How to debug and troubleshoot?
PHP中文网
PHP中文网 2017-05-16 16:40:03
0
1
763

Some plug-ins that have been installed before are fine if placed under the bundle and run without problems.
Today I installed a webapi-vim plug-in. According to the README, it supports bundles. Looking at the GitHub issue, some people have successfully installed it. But after cloning to the bundle, an error is reported.

Error detected while processing /Users/mc-zone/.vimrc:
line   47:
E117: Unknown function: webapi#json#decode
E15: Invalid expression: webapi#json#decode(join(readfile(expand('~/.snippets.json')), "\n"))

is because I have a statement in .vimrc that uses its function. It is used to configure the extension abbreviation snippets.json for emmet-vim. (These two plug-ins are by the same author, emmet is under bundle).

But when I copy the files under the webapi plug-in such as autoload to the corresponding .vim/autoload, it can be used.

There have been cases before where the plug-in installation did not support pathogen. bufexplorer.vim, grep.vim These two must be installed under .vim/plugin/.

Is there any good debugging method to know what the problem is? Or check the pathogen running/loading status?

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
我想大声告诉你

My installation steps:

cd ~/.vim/bundle
git submodule add some-plugin some-dir-name
:call pathogen#helptags()

Reference

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!