Vim bundle/vundle 适用于 OS X,但不适用于 Debian Linux

发布于 2024-12-20 18:27:22 字数 368 浏览 6 评论 0原文

我在两台运行 10.6.8 的 Mac 上成功使用 https://github.com/gmarik/vundle雪豹。

然而,当在两台机器上安装 Debian Squeeze 时,我遇到了可怕的情况:

E492:不是编辑器命令:BundleInstall

尝试首次运行 vundle 时 BundleInstall。我用谷歌搜索过&到处找遍了,但什么也没找到。我怀疑它在某个地方缺少依赖项(我已经安装了 moreutils),但无法完全弄清楚。

任何帮助表示赞赏。

I'm using https://github.com/gmarik/vundle successfully on two Macs running 10.6.8 Snow Leopard.

However, when installing on Debian Squeeze on two machines, I get the dreaded:

E492: Not an editor command: BundleInstall

when trying to first run vundle. I've Googled & searched all over but couldn't find anything. I suspect it's a missing dependency somewhere (I've installed moreutils) but can't quite figure it out.

Any help appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

謸气贵蔟 2024-12-27 18:27:22

我在 Debian Squeeze 上使用 Vim 7.2.330(这是存储库中默认的版本),并且我也在使用 Vundle。一切正常。

确保您的 vimrc 文件中有这些行,就像 Vundle 自述文件中所说的那样:

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

当然您可以更改 Vundle 路径。起初我也遇到了类似的问题,只是因为我忘记了 vundle#rc() 中的括号,所以请确保它看起来没问题。

此外,还需要进行以下设置:

set nocompatible
filetype off
filetype plugin indent on

同样,这些都在自述文件中。

如果这没有帮助,也许最好粘贴您的 vimrc 和/或提供有关您的设置的更多信息。

I'm using Vim 7.2.330 (which is the version that comes default in the repositories) on Debian Squeeze, and I'm using Vundle as well. Everything's working fine.

Make sure you have these lines in your vimrc file, like the Vundle readme says so:

set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

Of course you can change the Vundle path. At first I've also ran into a similar problem just because I had forgotten the parentheses in vundle#rc(), so make sure it looks alright.

Also, the following settings are required:

set nocompatible
filetype off
filetype plugin indent on

Again, these are all in the readme.

If this doesn't help, maybe it's better to paste your vimrc and/or give more info about your setup.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文