Mercurial > vim
view src/testdir/test_langmap.vim @ 17066:fe6a30921a45
Added tag v8.1.1532 for changeset 58bf4faa5c0592110a9b1f6377338c3eb34b92e4
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 14 Jun 2019 23:15:06 +0200 |
parents | f38fcbf343ce |
children | 8e9e9124c7a2 |
line wrap: on
line source
" tests for 'langmap' if !has('langmap') throw 'Skipped, langmap feature missing' endif func Test_langmap() new set langmap=}l,^x,%v call setline(1, ['abc']) call feedkeys('gg0}^', 'tx') call assert_equal('ac', getline(1)) " in Replace mode " need silent! to avoid a delay when entering Insert mode call setline(1, ['abcde']) silent! call feedkeys("gg0lR%{z\<Esc>00", 'tx') call assert_equal('a%{ze', getline(1)) " in Select mode " need silent! to avoid a delay when entering Insert mode call setline(1, ['abcde']) silent! call feedkeys("gg0}%}\<C-G>}^\<Esc>00", 'tx') call assert_equal('a}^de', getline(1)) quit! endfunc