summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-14 12:57:36 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-14 12:57:36 +0100
commit39f3b1411068ff187b4f9f482b2d6b2c1e7a7268 (patch)
tree7e5d52bcaee7087ff50014d564e33e2d3f873a64 /src/ex_cmds.h
parent10ccfb2a17e736ace054b19dc712544b4e961671 (diff)
patch 8.2.2511: Vim9: cannot use Vim9 script syntax in some placesv8.2.2511
Problem: Vim9: cannot use Vim9 script syntax in some places. Solution: Add the :vim9cmd command modifier. Incompatible: Makes ":vim9" mean ":vim9cmd" instead of ":vim9script".
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r--src/ex_cmds.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index 01c6156147..e82e91bb37 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -1679,6 +1679,9 @@ EXCMD(CMD_vimgrep, "vimgrep", ex_vimgrep,
EXCMD(CMD_vimgrepadd, "vimgrepadd", ex_vimgrep,
EX_RANGE|EX_BANG|EX_NEEDARG|EX_EXTRA|EX_NOTRLCOM|EX_TRLBAR|EX_XFILE|EX_LOCK_OK,
ADDR_OTHER),
+EXCMD(CMD_vim9cmd, "vim9cmd", ex_wrongmodifier,
+ EX_NEEDARG|EX_EXTRA|EX_NOTRLCOM|EX_CMDWIN|EX_LOCK_OK,
+ ADDR_NONE),
EXCMD(CMD_vim9script, "vim9script", ex_vim9script,
EX_WORD1|EX_CMDWIN|EX_LOCK_OK,
ADDR_NONE),