forked from aniani/vim
Problem: Langmap applies to Insert mode expression mappings. Solution: Check for Insert mode. (Daniel Hahler)
26 lines
416 B
Plaintext
26 lines
416 B
Plaintext
Test for mappings and abbreviations
|
||
|
||
STARTTEST
|
||
:so small.vim
|
||
:so mbyte.vim
|
||
:set encoding=utf-8
|
||
: " abbreviations with р (0x80) should work
|
||
:inoreab чкпр vim
|
||
GAчкпр
|
||
|
||
|
||
: " langmap should not get remapped in insert mode
|
||
:inoremap { FAIL_ilangmap
|
||
:set langmap=+{ langnoremap
|
||
o+
|
||
: " expr mapping with langmap
|
||
:inoremap <expr> { "FAIL_iexplangmap"
|
||
o+
|
||
|
||
:/^test/,$w! test.out
|
||
:qa!
|
||
ENDTEST
|
||
|
||
test starts here:
|
||
|