From ebc532c65569ea3f9c1c1049f83267f8a8678e08 Mon Sep 17 00:00:00 2001 From: "Leonid V. Fedorenchik" Date: Wed, 18 Jul 2018 11:25:39 +0800 Subject: [PATCH] Keep custom g:netrw_list_hide intact --- plugin/vinegar.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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