That doesn't work for me. Redirected to a file (and it complains there's no terminal), and the output of the file via xxd is:
00000000: 1b5b 3338 3b31 4838 3032 3236 3530 0d0d .[38;1H8022650.. 00000010: 0a On Thursday, March 25, 2021 at 10:00:32 AM UTC+2 [email protected] 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'? > > > 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/856cb97e-f05a-4e30-89a4-71c34e8456e7n%40googlegroups.com.
