Hollister
Hollister

Reputation: 3918

vimrc setting to ignore file types in netrw

What is the setting used in .vimrc to make the netrw directory listing ignore/hide certain file types?

set wildignore=*.obj,*.exe only seems to work for tab completion.
Within netrw, you can ctrl-g to edit the hiding list, but that only lasts for that session.

Upvotes: 20

Views: 6254

Answers (1)

icyrock.com
icyrock.com

Reputation: 28598

As per http://vimdoc.sourceforge.net/htmldoc/pi_netrw.html#g:netrw_list_hide, this should work:

let g:netrw_list_hide= '.*\.swp$'

Upvotes: 36

Related Questions