有没有一种简单的方法来排除 FuzzyFinder 搜索的文件?
我正在使用 FuzzyFinder,并且想知道如何指示 FuzzyFinder 排除它搜索的文件。现在我已经修改了插件代码,但必须有一个更简单的方法。
我想排除 .class 文件在结果中弹出。有关如何指示 FuzzyFinder 跳过这些文件的任何提示/技巧?
I am using FuzzyFinder and was wondering how I could instruct FuzzyFinder to exclude files it searches for. For now I have modified the plugin code but there must be a more easy way.
I want to exclude .class files from popping up in the result. Any hints/tips on how can I instruct FuzzyFinder to skip these files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用
:help fuf-options
了解更多详细信息。Use
:help fuf-options
for more details.在伯努瓦的帮助下:
With the help of Benoit:
这是最自动的解决方案,可在具有自己的 lcd(本地当前目录)的不同窗口和选项卡中工作。
由于 Vimrc 没有每个窗口或每个选项卡设置排除变量的概念,因此您必须在每次运行
FufFile
或相关函数时重置排除变量。将其放入您的
.vimrc
中:This is the most automatic solution that will work in different windows and tabs that have their own
lcd
(local current directory).Since Vimrc doensn't have the concept of setting exclude variables per-window or per-tab, you have to reset the exclude variables each time your run
FufFile
or related functions.Put this in your
.vimrc
: