Mercurial > vim
comparison runtime/doc/eval.txt @ 13967:acc62d455f90
Runtime file and translation updates.
commit https://github.com/vim/vim/commit/2f01889055f14842c1d4f9abd91139fc6bd95f15
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 18 18:12:06 2018 +0200
Runtime file and translation updates.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 18 May 2018 18:15:06 +0200 |
parents | 1174611ad715 |
children | e124262d435e |
comparison
equal
deleted
inserted
replaced
13966:13f90ef5546a | 13967:acc62d455f90 |
---|---|
9119 :if has("cindent") | 9119 :if has("cindent") |
9120 2. Features that are only supported when certain conditions have been met. | 9120 2. Features that are only supported when certain conditions have been met. |
9121 Example: > | 9121 Example: > |
9122 :if has("gui_running") | 9122 :if has("gui_running") |
9123 < *has-patch* | 9123 < *has-patch* |
9124 3. Included patches. The "patch123" feature means that patch 123 has been | 9124 3. Beyond a certain version or at a certain version and including a specific |
9125 included. Note that this form does not check the version of Vim, you need | 9125 patch. The "patch-7.4.248" feature means that the Vim version is 7.5 or |
9126 to inspect |v:version| for that. | 9126 later, or it is version 7.4 and patch 248 was included. Example: > |
9127 Example (checking version 6.2.148 or later): > | |
9128 :if v:version > 602 || v:version == 602 && has("patch148") | |
9129 < Note that it's possible for patch 147 to be omitted even though 148 is | |
9130 included. | |
9131 | |
9132 4. Beyond a certain version or at a certain version and including a specific | |
9133 patch. The "patch-7.4.237" feature means that the Vim version is 7.5 or | |
9134 later, or it is version 7.4 and patch 237 was included. | |
9135 Note that this only works for patch 7.4.237 and later, before that you | |
9136 need to use the example above that checks v:version. Example: > | |
9137 :if has("patch-7.4.248") | 9127 :if has("patch-7.4.248") |
9138 < Note that it's possible for patch 147 to be omitted even though 148 is | 9128 < Note that it's possible for patch 248 to be omitted even though 249 is |
9139 included. | 9129 included. Only happens when cherry-picking patches. |
9130 Note that this form only works for patch 7.4.237 and later, before that | |
9131 you need to check for the patch and the v:version. Example (checking | |
9132 version 6.2.148 or later): > | |
9133 :if v:version > 602 || (v:version == 602 && has("patch148")) | |
9140 | 9134 |
9141 Hint: To find out if Vim supports backslashes in a file name (MS-Windows), | 9135 Hint: To find out if Vim supports backslashes in a file name (MS-Windows), |
9142 use: `if exists('+shellslash')` | 9136 use: `if exists('+shellslash')` |
9143 | 9137 |
9144 | 9138 |