如何在NERDTree中按扩展名过滤文件? [英] How to filter out files by extension in NERDTree?
本文介绍了如何在NERDTree中按扩展名过滤文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望 *.pyc
文件不在 NERDTree vim 插件中显示.
I would like to *.pyc
files not to be shown in NERDTree vim plugin.
如何实现?
推荐答案
您需要 NERDTreeIgnore
选项.例如,在你的 .vimrc
:
You want the NERDTreeIgnore
option. For example, in your .vimrc
:
let NERDTreeIgnore = ['\.pyc$']
其中 NERDTreeIgnore
是与要排除的文件匹配的正则表达式数组.
Where NERDTreeIgnore
is an array of regular expressions that match the files you want to exclude.
这篇关于如何在NERDTree中按扩展名过滤文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文