Vim NERDTree:仅显示 .txt 文件?
使用 NERDTree 插件,我只想查看 *.txt 文件。有一个 NERDTreeIgnore 变量,但我想要类似 NERDTreeWhitelistFilter 的变量。
有没有办法将我看到的内容列入白名单?
Using NERDTree plugin, I want to view only *.txt files. There is a NERDTreeIgnore
variable, but I want something like NERDTreeWhitelistFilter
.
Is there a way to whitelist what I see?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我一直在研究这个问题——这是一个有趣的问题。也许你可以尝试这个正则表达式来忽略文件?
编辑:和我的同事交谈。这是正确的正则表达式(我原来的正则表达式也与文件名开头的“txt”匹配)。
I've been playing around with this — it's an interesting problem. Maybe you could try out this regular expression for ignoring files?
Edit: talked with my co-worker. Here's the correct regular expression (my original one matched "txt" at the beginning of a file name, too).
这就是你想要的:
This is what you want:
基于 @kev 很好的答案,您还可以制作切换功能。
based on @kev great answer you can also make a toggle function.