VIM - FuzzyFinder 在 Backspace 上关闭,为什么?
我在 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 getFILE>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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用 FuzzyFinder 一段时间了,从未遇到过这个问题。
可能您有一些映射可能会干扰 FuzzyFinder。您可以尝试
:map
来查找退格键上是否有任何映射,并尝试:10verbose map
来查找此类映射的位置放。您还可以尝试
:unmap
和:unmap!
从退格键中删除所有映射并检查问题是否仍然存在。如果上述方法不能解决问题,您可以考虑联系插件作者,因为该问题也可能与其他一些映射有关,如 FuzzyFinder 更改日志
:h fuf-changelog
中所述: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
: