On Mi, 24 Mär 2021, Ron Aaron wrote:
> I want to get the vim version for a bash script. The way I'm trying to use is:
>
> vim --not-a-term --cmd 'echo v:versionlong|quit'
>
> However, that spews a bunch of ANSI terminal control stuff as well, which I
> don't want. Is there an option to suppress that output?
Have you tried TERM=dumb vim --cmd 'echo v:versionlong|quit'?
Best
Christian
--
Sich selbst etwas versprechen und es nicht halten ist der nächste Weg
zur Nullität und Charakterlosigkeit.
-- Christian Friedrich Hebbel
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20210325080028.GB2834374%40256bit.org.