diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-10 07:48:13 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-10 07:48:13 +0100 |
commit | 1671f4488105ee12a6a8558ae351436c26ab55fc (patch) | |
tree | 2e6bd3ba9c7cb5a443d97c03bc82046ff3ce087c /src/testdir/test_iminsert.vim | |
parent | 5269bd2a724fdb8c16c9635ef744a670f1bc8bd5 (diff) | |
download | vim-git-1671f4488105ee12a6a8558ae351436c26ab55fc.tar.gz |
patch 8.2.0369: various Normal mode commands not fully testedv8.2.0369
Problem: Various Normal mode commands not fully tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes #5751)
Diffstat (limited to 'src/testdir/test_iminsert.vim')
-rw-r--r-- | src/testdir/test_iminsert.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/testdir/test_iminsert.vim b/src/testdir/test_iminsert.vim index 1880662af..d49cd07cc 100644 --- a/src/testdir/test_iminsert.vim +++ b/src/testdir/test_iminsert.vim @@ -63,4 +63,24 @@ func Test_getimstatus() set imstatusfunc= endfunc +" Test for using an lmap in insert mode +func Test_lmap_in_insert_mode() + new + call setline(1, 'abc') + lmap { w + set iminsert=1 + call feedkeys('r{', 'xt') + call assert_equal('wbc', getline(1)) + set iminsert=2 + call feedkeys('$r{', 'xt') + call assert_equal('wb{', getline(1)) + call setline(1, 'vim web') + set iminsert=1 + call feedkeys('0f{', 'xt') + call assert_equal(5, col('.')) + set iminsert& + lunmap { + close! +endfunc + " vim: shiftwidth=2 sts=2 expandtab |