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.
.vimrc 中用于使 netrw 目录列表忽略/隐藏某些文件类型的设置是什么?
set wildignore=*.obj,*.exe似乎只适用于制表符完成。 在 netrw 中,您可以ctrl-g编辑隐藏列表,但这仅持续该会话。
set wildignore=*.obj,*.exe
ctrl-g
根据http://vimdoc.sourceforge.net/htmldoc/pi_netrw.html#g:netrw_list_hide,这应该工作:
let g:netrw_list_hide= '.*\.swp$'