简体   繁体   English

如何在没有包管理器的情况下安装 vim syntastic?

[英]How to install vim syntastic without package manager?

On syntastic repo https://github.com/vim-syntastic/syntastic#installation , the only example they provide for installing syntastic is using pathogen.在 Syntastic 存储库https://github.com/vim-syntastic/syntastic#installation 上,他们提供的安装 Syntastic 的唯一示例是使用病原体。

How should install it without pathogen or any package manager?如何在没有病原体或任何包管理器的情况下安装它?

Pathogen is only needed for Vim 7 or earlier.只有 Vim 7 或更早版本才需要病原体。 In Vim 8 all "Pathogen's" functionality is already built-in, and you should never use it at all.在 Vim 8 中,所有“病原体”功能都已内置,您根本不应该使用它。

To install a plugin in Vim 8 you only have to put it under the following path: ~/.vim/pack/<bundle>/start/<plugin-name> Here <bundle> can be any name of your choice.要在 Vim 8 中安装插件,您只需将它放在以下路径下: ~/.vim/pack/<bundle>/start/<plugin-name>这里<bundle>可以是您选择的任何名称。 Then restart Vim and issue :helptags ALL to rebuild help tags, and you're done.然后重新启动 Vim 并发出:helptags ALL来重建帮助标签,你就完成了。

There still remains a question how you'll be updating your plugins, but you can do it manually with git etc.仍然存在一个问题,你将如何更新你的插件,但你可以使用git等手动完成。

After reading the accepted answer I realised my problem was down to an error in the installation documentation for syntastic.在阅读了接受的答案后,我意识到我的问题归结为 Syntastic 的安装文档中的错误。

Where it says to restart vim and then type :Helptags it should actually say :helptags (with a lower-case H)它说要重新启动 vim 然后键入:Helptags它实际上应该说:helptags (带有小写的 H)

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

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