Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用NERDTree 插件,我只想查看 *.txt 文件。有一个NERDTreeIgnore变量,但我想要类似NERDTreeWhitelistFilter.
NERDTreeIgnore
NERDTreeWhitelistFilter
有没有办法将我看到的内容列入白名单?
我一直在玩这个——这是一个有趣的问题。也许你可以试试这个忽略文件的正则表达式?
编辑:与我的同事交谈。这是正确的正则表达式(我原来的正则表达式也匹配文件名开头的“txt”)。
^(?!.*\.txt$).*
这就是你想要的:
:let NERDTreeIgnore += ['\(\.txt\)\@<!$[[file]]']