VIM - FuzzyFinder 在 Backspace 上关闭,为什么?

发布于 2024-11-30 02:48:27 字数 427 浏览 5 评论 0原文

我在 VIM 中使用 FuzzyFinder(无法切换到 Command-T,我的服务器上不支持 Ruby)。它工作得很好,除了一个问题:每当我按下退格键时(例如,在输入错误后),整个 FuzzyFinder 缓冲区就会关闭。

这种情况并不是每次都会发生,只有在进入目录后才会发生。例如:

  • FILE>filename -- 我可以按退格键,然后得到 FILE>filenam
  • FILE>folder/ -- 如果我按退格键现在退格,缓冲区刚刚关闭。就好像进入目录后我无法在层次结构中向后导航一样。

我不知道为什么会发生这种情况,这让我发疯。任何建议将不胜感激。

当我按下 Ctrl+w 时也会发生这种情况,正如 fuf 文档中所述。

I use FuzzyFinder in VIM (cannot switch to Command-T, no Ruby support on my server). It works well, except for one issue: Whenever I hit backspace (for example, after making a typo), the entire FuzzyFinder buffer just closes.

This doesn't happen every time, only right after entering a directory. For example:

  • FILE>filename -- I can hit backspace just fine, and get FILE>filenam
  • FILE>folder/ -- if I hit backspace now, the buffer just closes. It's as if I can't navigate backwards in the hierarchy after entering a directory.

I have no idea why this happens, and it's driving me crazy. Any advice would be appreciated.

This also happens when I press Ctrl+w as it says in the fuf documentation.

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

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

发布评论

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

评论(1

记忆で 2024-12-07 02:48:27

我使用 FuzzyFinder 一段时间了,从未遇到过这个问题。

可能您有一些映射可能会干扰 FuzzyFinder。您可以尝试 :map 来查找退格键上是否有任何映射,并尝试 :10verbose map 来查找此类映射的位置放。

您还可以尝试 :unmap:unmap! 从退格键中删除所有映射并检查问题是否仍然存在。

如果上述方法不能解决问题,您可以考虑联系插件作者,因为该问题也可能与其他一些映射有关,如 FuzzyFinder 更改日志 :h fuf-changelog 中所述:

  - Fixed the bug that it did not work correctly when a user have mapped <C-p>
    or <Down>.

I've been using FuzzyFinder for a while and never faced this problem.

Possible you have some mapping that may be interfering with FuzzyFinder. You could try :map <bs> to find out if there is any mapping on backspace key, and :10verbose map <bs> to find out where such mapping was set.

You also could try :unmap <bs> and :unmap! <bs> to remove any mappings from backspace and check if the issue still exists.

If the above doesn't solve the problem you might consider contacting the plugin author, as the issue could also be related to some other mapping, as stated on FuzzyFinder changelog, :h fuf-changelog:

  - Fixed the bug that it did not work correctly when a user have mapped <C-p>
    or <Down>.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文