From a2b9117ca8f8abe8d4c9e2d1bacb73b1902a4e1f Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 7 May 2023 08:12:42 +0800 Subject: vim-patch:8.2.1978: making a mapping work in all modes is complicated Problem: Making a mapping work in all modes is complicated. Solution: Add the special key. (Yegappan Lakshmanan, closes vim/vim#7282, closes 4784, based on patch by Bjorn Linse) https://github.com/vim/vim/commit/957cf67d50516ba98716f59c9e1cb6412ec1535d Change docs to match Vim if it's wording is better. Change error numbers to match Vim. Co-authored-by: Bram Moolenaar --- test/functional/ex_cmds/cmd_map_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/functional/ex_cmds/cmd_map_spec.lua') diff --git a/test/functional/ex_cmds/cmd_map_spec.lua b/test/functional/ex_cmds/cmd_map_spec.lua index 919d167712..a0aec7fdd0 100644 --- a/test/functional/ex_cmds/cmd_map_spec.lua +++ b/test/functional/ex_cmds/cmd_map_spec.lua @@ -90,7 +90,7 @@ describe('mappings with ', function() {1:~ }| {1:~ }| {1:~ }| - {2:E5521: mapping must end with before second } | + {2:E1136: mapping must end with before second } | ]]) command('noremap let x = 3') @@ -103,7 +103,7 @@ describe('mappings with ', function() {1:~ }| {1:~ }| {1:~ }| - {2:E5520: mapping must end with } | + {2:E1135: mapping must end with } | ]]) eq(0, eval('x')) end) -- cgit