summaryrefslogtreecommitdiffstats
path: root/runtime/syntax/testdir/input/vim_ex_map.vim
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:05:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:05:19 +0000
commita4e9136f68a40b1cb0eb6df5a5f06603224a87f4 (patch)
treeba32e0d0069ad6adfd6b32d05161a03eea5e4c7c /runtime/syntax/testdir/input/vim_ex_map.vim
parentReleasing progress-linux version 2:9.1.0496-1~progress7.99u1. (diff)
downloadvim-a4e9136f68a40b1cb0eb6df5a5f06603224a87f4.tar.xz
vim-a4e9136f68a40b1cb0eb6df5a5f06603224a87f4.zip
Merging upstream version 2:9.1.0698.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'runtime/syntax/testdir/input/vim_ex_map.vim')
-rw-r--r--runtime/syntax/testdir/input/vim_ex_map.vim24
1 files changed, 21 insertions, 3 deletions
diff --git a/runtime/syntax/testdir/input/vim_ex_map.vim b/runtime/syntax/testdir/input/vim_ex_map.vim
index 95f4292..3ddc9e9 100644
--- a/runtime/syntax/testdir/input/vim_ex_map.vim
+++ b/runtime/syntax/testdir/input/vim_ex_map.vim
@@ -5,9 +5,6 @@ map! lhs rhs
map
map lhs rhs
-call map(list, 'v:val')
-call map (list, 'v:val')
-
mapclear <buffer>
mapclear! <buffer>
nmapclear <buffer>
@@ -69,6 +66,27 @@ map lhs
echo "clear"
+" Differentiate map() from :map
+
+map ( :echo "open-paren"<CR>
+
+call map(list, 'v:val')
+call map (list, 'v:val')
+
+function Foo()
+ map ( :echo "open-paren"<CR>
+ call map(list, 'v:val')
+ call map (list, 'v:val')
+endfunction
+
+def Foo()
+ map ( :echo "open-paren"<CR>
+ map(list, 'v:val')
+ # :map LHS=(list, RHS='v:val')
+ map (list, 'v:val')
+enddef
+
+
" Issue #12672
nnoremap <leader>foo :echo call(