From d4dbfb092b370bced6728e07a38661a579ff5e4b Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 9 Nov 2023 19:36:58 +0800 Subject: vim-patch:8.2.4825: can only get a list of mappings Problem: Can only get a list of mappings. Solution: Add the optional {abbr} argument. (Ernie Rael, closes vim/vim#10277) Rename to maplist(). Rename test file. https://github.com/vim/vim/commit/09661203ecefbee6a6f09438afcff1843e9dbfb4 Co-authored-by: Ernie Rael --- test/old/testdir/test_map_functions.vim | 463 ++++++++++++++++++++++++++++++++ 1 file changed, 463 insertions(+) create mode 100644 test/old/testdir/test_map_functions.vim (limited to 'test/old/testdir/test_map_functions.vim') diff --git a/test/old/testdir/test_map_functions.vim b/test/old/testdir/test_map_functions.vim new file mode 100644 index 0000000000..4d94722597 --- /dev/null +++ b/test/old/testdir/test_map_functions.vim @@ -0,0 +1,463 @@ +" Tests for maparg(), mapcheck(), mapset(), maplist() +" Also test utf8 map with a 0x80 byte. + +source shared.vim + +func s:SID() + return str2nr(matchstr(expand(''), '\zs\d\+\ze_SID$')) +endfunc + +func Test_maparg() + new + set cpo-=< + set encoding=utf8 + " Test maparg() with a string result + let sid = s:SID() + let lnum = expand('') + map foo isfoo + vnoremap