On 2021-03-25, Christian Brabandt wrote: > 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'?
I did. It eliminated all but t_cm and added a ^M. That would have simplified my solution, but I tried it early on in my experiments and saw the output only as escape sequence stuff. I didn't understand the individual sequences at the time and didn't think about it later when I was eliminating escape sequences one by one. Regards, Gary -- -- 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/20210325082520.GB22800%40phoenix.
