So what I've come up with is the following, though it seems way too verbose:
vim --not-a-term --cmd 'redir! >/tmp/vimver.txt|echon v:versionlong|quit' verlong=`cat /tmp/vimver.text` On Thursday, March 25, 2021 at 7:53:07 AM UTC+2 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? > -- -- 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/0511d686-4b4f-4d5d-940f-ffbdee34a3b6n%40googlegroups.com.
