diff --git a/plugin/vinegar.vim b/plugin/vinegar.vim index 9473d70..ce1df15 100644 --- a/plugin/vinegar.vim +++ b/plugin/vinegar.vim @@ -21,7 +21,7 @@ let s:dotfiles = '\(^\|\s\s\)\zs\.\S\+' let s:escape = 'substitute(escape(v:val, ".$~"), "*", ".*", "g")' let g:netrw_list_hide = \ join(map(split(&wildignore, ','), '"^".' . s:escape . '. "/\\=$"'), ',') . ',^\.\.\=/\=$' . - \ (get(g:, 'netrw_list_hide', '')[-strlen(s:dotfiles)-1:-1] ==# s:dotfiles ? ','.s:dotfiles : '') + \ ',' . get(g:, 'netrw_list_hide', '') if !exists("g:netrw_banner") let g:netrw_banner = 0 endif