Paul Jolly wrote:

> >> I'd like to propose a version() function (or variable I guess?) that
> >> returns a string that is the semver version of Vim, i.e. v8.1.1518
> >
> > Sounds like you're looking for the v:version variable.
> 
> Thanks. I'd see that, but it does not include the patch information,
> i.e. 801, unless I'm missing something obvious?
> 
> Ideally, I think we should have a direct means to get at the semver
> version of Vim.

What do you want to use the patchlevel for?  If it's about checking for
a certain feature, use this:
        if has("patch-7.4.248")

":help has-patch" for details.


-- 
hundred-and-one symptoms of being an internet addict:
166. You have been on your computer soo long that you didn't realize
     you had grandchildren.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/201906131636.x5DGarlk030636%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui