Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make vinegar silent #65

Open
mtglsk opened this issue Apr 7, 2016 · 0 comments
Open

Make vinegar silent #65

mtglsk opened this issue Apr 7, 2016 · 0 comments

Comments

@mtglsk
Copy link

mtglsk commented Apr 7, 2016

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant