comparison runtime/doc/eval.txt @ 17053:d5fa04016df0 v8.1.1526

patch 8.1.1526: no numerical value for the patchlevel commit https://github.com/vim/vim/commit/37df9a4401f6737d6216306ea77a7e080c942aea Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 14 14:39:51 2019 +0200 patch 8.1.1526: no numerical value for the patchlevel Problem: No numerical value for the patchlevel. Solution: Add v:versionlong.
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Jun 2019 14:45:06 +0200
parents 235cbf491430
children 00ffed9bbb65
comparison
equal deleted inserted replaced
17052:4f290fef4173 17053:d5fa04016df0
2170 Use |has()| to check if a certain patch was included, e.g.: > 2170 Use |has()| to check if a certain patch was included, e.g.: >
2171 if has("patch-7.4.123") 2171 if has("patch-7.4.123")
2172 < Note that patch numbers are specific to the version, thus both 2172 < Note that patch numbers are specific to the version, thus both
2173 version 5.0 and 5.1 may have a patch 123, but these are 2173 version 5.0 and 5.1 may have a patch 123, but these are
2174 completely different. 2174 completely different.
2175
2176 *v:versionlong* *versionlong-variable*
2177 v:versionlong Like v:version, but also including the patchlevel. Version
2178 8.1 with patch 1234 has value 8011234. This can be used like
2179 this: >
2180 if v:versionlong >= 8011234
2181 < However, if there are gaps in the list of patches included
2182 this will not work well. This can happen if a recent patch
2183 was included into an older version, e.g. for a security fix.
2184 Use the has() function to make sure the patch is actually
2185 included.
2175 2186
2176 *v:vim_did_enter* *vim_did_enter-variable* 2187 *v:vim_did_enter* *vim_did_enter-variable*
2177 v:vim_did_enter Zero until most of startup is done. It is set to one just 2188 v:vim_did_enter Zero until most of startup is done. It is set to one just
2178 before |VimEnter| autocommands are triggered. 2189 before |VimEnter| autocommands are triggered.
2179 2190