aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_mapping.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-16 21:56:47 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-16 22:46:54 +0800
commit0cfd4fa8f3dc2241de5f69d5c52510542dfc927c (patch)
tree0a7a764842acb866073ad177f5afc5bcaed3bd9c /src/nvim/testdir/test_mapping.vim
parent780edfc0eb1293f5813d904ad61fc65bbbb41784 (diff)
downloadrneovim-0cfd4fa8f3dc2241de5f69d5c52510542dfc927c.tar.gz
rneovim-0cfd4fa8f3dc2241de5f69d5c52510542dfc927c.tar.bz2
rneovim-0cfd4fa8f3dc2241de5f69d5c52510542dfc927c.zip
vim-patch:8.2.2643: various code not covered by tests
Problem: Various code not covered by tests. Solution: Add a few more test. (Yegappan Lakshmanan, closes vim/vim#7995) https://github.com/vim/vim/commit/1f448d906b3c516e5864dc5bae3ddbf3664ee649 Cherry-pick some test_edit.vim changes from patches 8.2.{1022,1432}. Reorder test_undo.vim to match upstream.
Diffstat (limited to 'src/nvim/testdir/test_mapping.vim')
-rw-r--r--src/nvim/testdir/test_mapping.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_mapping.vim b/src/nvim/testdir/test_mapping.vim
index a34a950526..e1d0b9a9ba 100644
--- a/src/nvim/testdir/test_mapping.vim
+++ b/src/nvim/testdir/test_mapping.vim
@@ -956,6 +956,16 @@ func Test_map_cmdkey_redo()
ounmap i-
endfunc
+" Test for using <script> with a map to remap characters in rhs
+func Test_script_local_remap()
+ new
+ inoremap <buffer> <SID>xyz mno
+ inoremap <buffer> <script> abc st<SID>xyzre
+ normal iabc
+ call assert_equal('stmnore', getline(1))
+ bwipe!
+endfunc
+
func Test_abbreviate_multi_byte()
new
iabbrev foo bar