为 vim 设置过滤条件使其不显示特定后缀的文件

来源:互联网 发布:2016北京旅游数据 编辑:程序博客网 时间:2024/04/27 01:24
在.vimrc 里写入

                                                            *'NERDTreeIgnore'*Values: a list of regular expressions.Default: ['\~$'].This option is used to specify which files the NERD tree should ignore.  Itmust be a list of regular expressions. When the NERD tree is rendered, anyfiles/dirs that match any of the regex's in 'NERDTreeIgnore' wont bedisplayed.For example if you put the following line in your vimrc: >    let NERDTreeIgnore=['\.vim$', '\~$']<then all files ending in .vim or ~ will be ignored.Note: to tell the NERD tree not to ignore any files you must use the followingline: >    let NERDTreeIgnore=[]<The file filters can be turned on and off dynamically with the |NERDTree-f|mapping.
原创粉丝点击