vim-vinegar icon indicating copy to clipboard operation
vim-vinegar copied to clipboard

Make vinegar silent

Open mtglsk opened this issue 9 years ago • 0 comments

I've been trying to make vinegar silent (ie. remove all those messages like "./" Illegal file name).

I came up with this:

diff --git a/plugin/vinegar.vim b/plugin/vinegar.vim
index f471141..af4d43c 100644
--- a/plugin/vinegar.vim
+++ b/plugin/vinegar.vim
@@ -26,7 +26,7 @@ if !exists("g:netrw_banner")
 endif
 let s:netrw_up = ''

-nnoremap <silent> <Plug>VinegarUp :call <SID>opendir('edit')<CR>
+nnoremap <silent> <Plug>VinegarUp :sil call <SID>opendir('edit')<CR>:echo ""<CR>
 if empty(maparg('-', 'n'))
   nmap - <Plug>VinegarUp
 endif

Does it work for anyone else?

mtglsk avatar Apr 07 '16 11:04 mtglsk