Thursday, March 31, 2022

Re: How to suppress screen message when using indentation in command line?

I still get this message. How to suppress it but leave potential error messages still printed?

$ vim -n --cmd ':set t_ti= t_te=' --cmd ':set report=1000' -X -E -c 'normal gg=G' -c 'silent x' x.sh < /dev/tty
"x.sh" 4L, 61B

As Christian suggested, using :silent for the :x command is probably best:

$ vim -n --cmd ':set t_ti= t_te=' --cmd ':set report=1000' -X -E -c 'normal gg=G' -c 'silent x' x.sh < /dev/tty

You could also add the "-s" argument, but that might also hide error
messages.

--
--
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/0f38e3e3-6b54-460a-bd04-9d6fbeef1f4dn%40googlegroups.com.

No comments:

Post a Comment