简体   繁体   English

Vim74:E149对不起,help.txt没有帮助

[英]Vim74: E149 Sorry no help for help.txt

I just downloaded and installed vim74 on to my linux box. 我刚刚将vim74下载并安装到了Linux机器上。 I'm only installing locally, for the user. 我只是为用户安装在本地。 When I go into vim, and do :help, I get the error. 当我进入vim并执行:help时,我得到了错误。

I tried adding: 我尝试添加:

let $VIM='home/myuser/vim74'
let $VIMRUNTIME='home/myuser/vim74/runtime'

to my .vimrc but it didn't help. 到我的.vimrc,但这没有帮助。 How can I fix this? 我怎样才能解决这个问题?

When building vim yourself and installing locally it seems that you need to generate the helptags manually from within vim since the build process doesn't seem to do it. 当您自己构建vim并在本地安装时,似乎需要从vim中手动生成帮助标签,因为构建过程似乎并没有这样做。 I ran into this very same issue when building the latest vim version 8.0.311. 在构建最新的vim版本8.0.311时遇到了同样的问题。 I followed the link in Ben Klein's comment above, but both my &helpfile and &runtimepath were correct, yet I still received the E149 error when doing :help which I assume is your situation as well postelrich. 我按照上面Ben Klein注释中的链接进行操作,但是我的&helpfile和&runtimepath都是正确的,但是在执行:help时,我仍然收到E149错误,我认为这也是您的情况以及postelrich。

I found the helptags solution here: 我在这里找到了帮助标签解决方案:

https://github.com/Homebrew/homebrew-core/issues/1087 https://github.com/Homebrew/homebrew-core/issues/1087

Even though I was installing vim locally on a centos system and not a mac, the issue seems to be universal. 即使我是在centos系统而非Mac上本地安装vim的,这个问题似乎仍然很普遍。 I just replaced $VIMRUNTIME with the path to the local vim runtime installed from make install, which in your case may be something like /home/myuser/vim74/runtime 我只是将$ VIMRUNTIME替换为从make install安装的本地vim运行时的路径,在您的情况下,它可能类似于/ home / myuser / vim74 / runtime。

Specifically I ran this from within vim: 我具体是从vim内部运行的:

:helptags ~/share/vim/vim80/doc

In your case you will probably run something like: 在您的情况下,您可能会运行以下内容:

:helptags ~/vim74/runtime/doc

Once done, :help should immediately start working again without having to restart vim. 完成后,:help应该立即重新开始工作,而不必重新启动vim。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM