4

I have vim save my undo history in files named something like .filename.js.un~, but I don't want this cluttering up my list of file in vim (in Netrw).

Is there a way to exclude all files with a certain file extension in Netrw?

2 Answers 2

4

For your case,

let g:netrw_list_hide='.*\.un\~$'

will do the trick. See

:help /~

for why the extra backslash preceding the tilde is needed.

4

Use g:netrw_list_hide. e.g.

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

For more information see :h g:netrw_list_hide and :h netrw-edithide

1
  • This looks good, but I can't seem to figure out a command that works for excluding the undo files. I tried let g:netrw_list_hide= '.*\.un~$' and it doesn't work.
    – aharris88
    Commented Apr 22, 2015 at 19:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.