@@ -1688,7 +1688,8 @@ v:count The count given for the last Normal mode command. Can be used
16881688 When there are two counts, as in "3d2w", they are multiplied,
16891689 just like what happens in the command, "d6w" for the example.
16901690 Also used for evaluating the 'formatexpr' option.
1691- "count" also works, for backwards compatibility.
1691+ "count" also works, for backwards compatibility, unless
1692+ | scriptversion | is 3 or higher.
16921693
16931694 *v:count1* *count1-variable*
16941695v:count1 Just like "v:count", but defaults to one when no count is
@@ -1720,7 +1721,8 @@ v:errmsg Last given error message. It's allowed to set this variable.
17201721 :silent! next
17211722 :if v:errmsg != ""
17221723 : ... handle error
1723- < "errmsg" also works, for backwards compatibility.
1724+ < "errmsg" also works, for backwards compatibility, unless
1725+ | scriptversion | is 3 or higher.
17241726
17251727 *v:errors* *errors-variable* *assert-return*
17261728v:errors Errors found by assert functions, such as | assert_true() | .
@@ -2023,7 +2025,8 @@ v:shell_error Result of the last shell command. When non-zero, the last
20232025 :if v:shell_error
20242026 : echo 'could not rename "foo" to "bar"!'
20252027 :endif
2026- < "shell_error" also works, for backwards compatibility.
2028+ < "shell_error" also works, for backwards compatibility, unless
2029+ | scriptversion | is 3 or higher.
20272030
20282031 *v:statusmsg* *statusmsg-variable*
20292032v:statusmsg Last given status message. It's allowed to set this variable.
@@ -2123,7 +2126,8 @@ v:testing Must be set before using `test_garbagecollect_now()`.
21232126v:this_session Full filename of the last loaded or saved session file. See
21242127 | :mksession | . It is allowed to set this variable. When no
21252128 session file has been saved, this variable is empty.
2126- "this_session" also works, for backwards compatibility.
2129+ "this_session" also works, for backwards compatibility, unless
2130+ | scriptversion | is 3 or higher
21272131
21282132 *v:throwpoint* *throwpoint-variable*
21292133v:throwpoint The point where the exception most recently caught and not
@@ -2154,7 +2158,7 @@ v:val Value of the current item of a |List| or |Dictionary|. Only
21542158v:version Version number of Vim: Major version number times 100 plus
21552159 minor version number. Version 5.0 is 500. Version 5.1 (5.01)
21562160 is 501. Read-only. "version" also works, for backwards
2157- compatibility.
2161+ compatibility, unless | scriptversion | is 3 or higher .
21582162 Use | has() | to check if a certain patch was included, e.g.: >
21592163 if has("patch-7.4.123")
21602164< Note that patch numbers are specific to the version, thus both
0 commit comments