Mercurial > vim
diff src/testdir/test_mapping.vim @ 20627:8bce783af0cb v8.2.0867
patch 8.2.0867: using {xxx} for encoding a modifier is not nice
Commit: https://github.com/vim/vim/commit/fccd93f0917234b962ce07d1df3adf9d7105936f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 31 22:06:51 2020 +0200
patch 8.2.0867: using \{xxx} for encoding a modifier is not nice
Problem: Using \{xxx} for encoding a modifier is not nice.
Solution: Use \<*xxx> instead, since it's the same as \<xxx> but producing a
different code.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 31 May 2020 22:15:03 +0200 |
parents | c2570baa2e4c |
children | 08940efa6b4e |
line wrap: on
line diff
--- a/src/testdir/test_mapping.vim +++ b/src/testdir/test_mapping.vim @@ -76,7 +76,7 @@ func Test_map_ctrl_c_insert() inoremap <c-c> <ctrl-c> cnoremap <c-c> dummy cunmap <c-c> - call feedkeys("GoTEST2: CTRL-C |\{C-C}A|\<Esc>", "xt") + call feedkeys("GoTEST2: CTRL-C |\<*C-C>A|\<Esc>", "xt") call assert_equal('TEST2: CTRL-C |<ctrl-c>A|', getline('$')) unmap! <c-c> set nomodified @@ -85,7 +85,7 @@ endfunc func Test_map_ctrl_c_visual() " mapping of ctrl-c in Visual mode vnoremap <c-c> :<C-u>$put ='vmap works' - call feedkeys("GV\{C-C}\<CR>", "xt") + call feedkeys("GV\<*C-C>\<CR>", "xt") call assert_equal('vmap works', getline('$')) vunmap <c-c> set nomodified @@ -235,7 +235,7 @@ endfunc func Test_map_meta_quotes() imap <M-"> foo - call feedkeys("Go-\{M-\"}-\<Esc>", "xt") + call feedkeys("Go-\<*M-\">-\<Esc>", "xt") call assert_equal("-foo-", getline('$')) set nomodified iunmap <M-">