How to filter out files by extension in NERDTree?

后端 未结 2 766
既然无缘
既然无缘 2020-12-22 17:54

I would like to *.pyc files not to be shown in NERDTree vim plugin.

How to achieve that?

2条回答
  •  一个人的身影
    2020-12-22 18:37

    You want the NERDTreeIgnore option. For example, in your .vimrc:

    let NERDTreeIgnore = ['\.pyc$']
    

    Where NERDTreeIgnore is an array of regular expressions that match the files you want to exclude.

提交回复
热议问题