Hi Bram,

2019/4/20 Sat 21:42:25 UTC+9 Bram Moolenaar wrote:
> Patch 8.1.1188
> Problem:    Not all Vim variables require the v: prefix.
> Solution:   When scriptversion is 3 all Vim variables can only be used with
>             the v: prefix.  (Ken Takata, closes #4274)
> Files:            src/eval.c, src/ex_cmds2.c, src/testdir/test_eval_stuff.vim,
>             runtime/doc/eval.txt

Sorry, I forgot to update some part of the source and document for
scriptversion 3.

Please check the attached patch.

Regards,
Ken Takata

-- 
-- 
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].
For more options, visit https://groups.google.com/d/optout.
>From ca7671d6b2ced44eb7999d6b1ea7e13f54f21e84 Mon Sep 17 00:00:00 2001
From: "K.Takata" <[email protected]>
Date: Sat, 20 Apr 2019 22:13:57 +0900
Subject: [PATCH] vimscript-3

---
 runtime/doc/eval.txt | 6 ++++++
 src/evalfunc.c       | 1 +
 2 files changed, 7 insertions(+)

diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index c454f96dc..68c89f9aa 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -10555,6 +10555,7 @@ vim_starting		True while initial source'ing takes place. |startup|
 viminfo			Compiled with viminfo support.
 vimscript-1		Compiled Vim script version 1 support
 vimscript-2		Compiled Vim script version 2 support
+vimscript-3		Compiled Vim script version 3 support
 virtualedit		Compiled with 'virtualedit' option. (always true)
 visual			Compiled with Visual mode. (always true)
 visualextra		Compiled with extra Visual mode commands. (always
@@ -12716,6 +12717,11 @@ instead of failing in mysterious ways. >
 	Test for support with: >
 		has('vimscript-2')
 
+ :scriptversion 3
+<	All |vim-variable|s must be prefixed by "v:".  E.g. "version" doesn't
+	work as |v:version| anymore.  It can be used as a normal variable.
+	Test for support with: >
+		has('vimscript-3')
 
 ==============================================================================
 11. No +eval feature				*no-eval-feature*
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 16ebd95b4..4b01989df 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -6626,6 +6626,7 @@ f_has(typval_T *argvars, typval_T *rettv)
 #endif
 	"vimscript-1",
 	"vimscript-2",
+	"vimscript-3",
 	"virtualedit",
 	"visual",
 	"visualextra",
-- 
2.17.0

Raspunde prin e-mail lui