diff options
Diffstat (limited to 'test/functional/legacy/mapping_spec.lua')
-rw-r--r-- | test/functional/legacy/mapping_spec.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/functional/legacy/mapping_spec.lua b/test/functional/legacy/mapping_spec.lua index 46d29d1692..1451b268c5 100644 --- a/test/functional/legacy/mapping_spec.lua +++ b/test/functional/legacy/mapping_spec.lua @@ -18,9 +18,20 @@ describe('mapping', function() execute('inoreab чкпр vim') feed('GAчкпр <cr><esc>') + -- langmap should not get remapped in insert mode. + execute('inoremap { FAIL_ilangmap') + execute('set langmap=+{ langnoremap') + feed('o+<esc>') + + -- expr mapping with langmap. + execute('inoremap <expr> { "FAIL_iexplangmap"') + feed('o+<esc>') + -- Assert buffer contents. expect([[ test starts here: - vim]]) + vim + + + +]]) end) end) |