MacVim 和 Rails 插件 - 缺少菜单

发布于 2024-10-05 10:26:52 字数 90 浏览 0 评论 0原文

我已经在MacVim上安装了rails.vim并且一切正常,也就是说我可以使用Vim中的额外功能。问题是插件菜单没有rails插件。有没有简单的方法将其添加到主菜单?

I have installed rails.vim on MacVim and everything is working correctly, that is I can use the extra functions in Vim. The problem is that the Plugin menu doesn't have the rails plugin. Is there an easy way to add it to the main menu?

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

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

发布评论

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

评论(1

清浅ˋ旧时光 2024-10-12 10:26:52

由于某些原因,Mac 版本的 vim 禁用了该菜单。要打开它,请编辑 ~/.vim/plugin/rails.vim 第 63 行以读取:

call s:SetOptDefault("rails_menu",has('menu'))

我已经通过此更改制作了一个 github 分支,可在 https://github.com/existentialmutt/vim-rails

For some reason, the menu is disabled for mac versions of vim. To turn it on, edit ~/.vim/plugin/rails.vim line 63 to read:

call s:SetOptDefault("rails_menu",has('menu'))

I've made a github fork with this change, available at https://github.com/existentialmutt/vim-rails

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