隐藏NERDTree中的某些文件


23

我想在Vim NERDTree插件中隐藏目标文件(* .o)。插件是否支持此功能?

Answers:


29

您要使用NERDTreeIgnore选项,例如: let NERDTreeIgnore=['\.o$', '\~$']

执行:help NERDTreeIgnore以获取更多信息。


2

希望这对新NerdTree文档有帮助。

// put this in your .vimrc
set wildignore+=*.pyc,*.o,*.obj,*.svn,*.swp,*.class,*.hg,*.DS_Store,*.min.*

// Nerdtree config for wildignore
let NERDTreeRespectWildIgnore=1
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.