如何使用 Tim Pope 的 cucumber.vim vim 插件?

发布于 2024-08-04 00:38:23 字数 360 浏览 2 评论 0原文

我已按照说明将 cucumber.vim 文件加载到 ftplugin 和其他目录中,但我对 ftplugin 语法的理解还不足以弄清楚如何获得全部好处。

据我所知,该插件应该能够在步骤定义和功能文件之间跳转,但我无法弄清楚我的映射出了什么问题。看起来映射应该是通常的 ctag 映射 Ctrl+],但这不起作用。

有什么想法可以让这些映射发挥作用吗?

这是该插件的链接:

http://github.com/tpope/vim-cucumber/树/主人

干杯!

I've loaded the cucumber.vim files into ftplugin and the other directories per instructions, but I don't understand the ftplugin syntax enough to figure out how to get the full benefits.

From what I can tell, the plugin is supposed to be able to jump between step definitions and feature files, but I can't figure out what's wrong with my mapping. It looks as if the mapping is supposed to be the usual ctag map Ctrl+], but that's not working.

Any ideas how to make those mappings work?

Here's a link to the plugin:

http://github.com/tpope/vim-cucumber/tree/master

Cheerio!

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

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

发布评论

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

评论(1

空气里的味道 2024-08-11 00:38:23

事实证明我没有打开文件类型插件和文件类型缩进功能。

只需将以下内容添加到您的 .vimrc 文件中:

filetype plugin indent on

Turns out I didn't have filetype plugin and filetype indent features turned on.

Just add the following to your .vimrc file:

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