blob: c957569f4d8835bf3d71ab12ae4cb3b257c2bb01 [file] [log] [blame]
Bram Moolenaarbdef5182014-10-21 16:22:17 +02001Test for mappings and abbreviations
2
3STARTTEST
4:so small.vim
5:so mbyte.vim
Bram Moolenaar7a373dd2014-10-22 22:09:01 +02006:set encoding=utf-8
Bram Moolenaarbdef5182014-10-21 16:22:17 +02007: " abbreviations with р (0x80) should work
8:inoreab чкпр vim
9GAчкпр
10
Bram Moolenaar651863c2015-01-14 12:44:41 +010011:" mapping of ctrl-c in insert mode
12:set cpo-=< cpo-=k
13:inoremap <c-c> <ctrl-c>
14:cnoremap <c-c> dummy
15:cunmap <c-c>
16GA
17TEST2: CTRL-C |A|
18
19:nunmap <c-c>
Bram Moolenaarc68c72e2014-12-14 00:43:54 +010020
21: " langmap should not get remapped in insert mode
22:inoremap { FAIL_ilangmap
23:set langmap=+{ langnoremap
24o+
25: " expr mapping with langmap
26:inoremap <expr> { "FAIL_iexplangmap"
27o+
28
Bram Moolenaarbdef5182014-10-21 16:22:17 +020029:/^test/,$w! test.out
30:qa!
31ENDTEST
32
33test starts here:
34