Monday, May 13, 2019

Vim version details

Hi all,

I've tried searching using various terms, but I can't find anything specific on this question.

Is there a way to get the Vim version number, short of redirecting the output of :version to a variable?

I want the major, minor and patch details to ultimately build a semver version.

I can obviously parse the output of :version (having first redirected it to a variable) but first wanted to check if there was a simpler (less brittle?) way.

Thanks in advance.

--
--
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/3d8f388c-c5a5-4fa1-986f-81a17aaee28b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: