Tuesday, August 18, 2020

Re: How to quiet the message when filtering...

Actually, I figured out from the help file a workaround, which is to put all the commands into a function and then do: silent call Function()

It is funny how often functions are the workaround for a lot of the quirks in the Vim ecosystem.

Anyway, I think I will go with that - at least for now - but I will look into the '-s-ex' option at some later time (I did read about it; just haven't tested it yet). Thanks.

P.S. It still seems to me like there should be an option, like "set silent/set nosilent' to just turn it on/off globally. That sounds like something that should be included in a future version.
On Tuesday, August 18, 2020, 04:19:36 AM EDT, Christian Brabandt <cblists@256bit.org> wrote:



On Di, 18 Aug 2020, 'J S' via vim_use wrote:

>  Yes! "sil" works well - in the simple case. Thanks for that.
>
> Now, on to the next. Suppose we have another command like:
>
> vim -c '...' -c '...' -c '...' and so on and so forth - a long series of commands that modify the text, then finally dump me into the editor. I want all of them silenced - and it to go directly into the editor with no pausing. Assume it is either impractical or impossible to put "sil" in front of every command.
>
> Is there a some setting or other to turn on silent mode globally?

You can try to use the -s and -e option (see :h -s-ex)

This may or may not help, I don't know for sure.

Best,
Christian
--
F: Warum haben Giraffen so einen langen Hals?
A: Weil der Kopf so weit oben ist.


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200818081917.GA17606%40256bit.org.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1569074652.2740034.1597752106396%40mail.yahoo.com.

No comments:

Post a Comment