Mercurial > vim
view src/testdir/test_mapping.in @ 6491:8cfbc34ae4aa v7.4.573
updated for version 7.4.573
Problem: Mapping CTRL-C in Visual mode doesn't work. (Ingo Karkat)
Solution: Call get_real_state() instead of using State directly.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 14 Jan 2015 16:08:32 +0100 |
parents | ccb6962585f1 |
children | a7e485b683d8 |
line wrap: on
line source
Test for mappings and abbreviations STARTTEST :so small.vim :so mbyte.vim :set encoding=utf-8 : " abbreviations with р (0x80) should work :inoreab чкпр vim GAчкпр :" mapping of ctrl-c in Insert mode :set cpo-=< cpo-=k :inoremap <c-c> <ctrl-c> :cnoremap <c-c> dummy :cunmap <c-c> GA TEST2: CTRL-C |A| :unmap <c-c> :unmap! <c-c> :" :" mapping of ctrl-c in Visual mode :vnoremap <c-c> :<C-u>$put ='vmap works' GV :vunmap <c-c> :" :" 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: