Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
6490:5747093513ec | 6491:8cfbc34ae4aa |
---|---|
6 :set encoding=utf-8 | 6 :set encoding=utf-8 |
7 : " abbreviations with р (0x80) should work | 7 : " abbreviations with р (0x80) should work |
8 :inoreab чкпр vim | 8 :inoreab чкпр vim |
9 GAчкпр | 9 GAчкпр |
10 | 10 |
11 :" mapping of ctrl-c in insert mode | 11 :" mapping of ctrl-c in Insert mode |
12 :set cpo-=< cpo-=k | 12 :set cpo-=< cpo-=k |
13 :inoremap <c-c> <ctrl-c> | 13 :inoremap <c-c> <ctrl-c> |
14 :cnoremap <c-c> dummy | 14 :cnoremap <c-c> dummy |
15 :cunmap <c-c> | 15 :cunmap <c-c> |
16 GA | 16 GA |
17 TEST2: CTRL-C |A| | 17 TEST2: CTRL-C |A| |
18 | 18 |
19 :nunmap <c-c> | 19 :unmap <c-c> |
20 | 20 :unmap! <c-c> |
21 : " langmap should not get remapped in insert mode | 21 :" |
22 :" mapping of ctrl-c in Visual mode | |
23 :vnoremap <c-c> :<C-u>$put ='vmap works' | |
24 GV | |
25 :vunmap <c-c> | |
26 :" | |
27 :" langmap should not get remapped in insert mode | |
22 :inoremap { FAIL_ilangmap | 28 :inoremap { FAIL_ilangmap |
23 :set langmap=+{ langnoremap | 29 :set langmap=+{ langnoremap |
24 o+ | 30 o+ |
25 : " expr mapping with langmap | 31 : " expr mapping with langmap |
26 :inoremap <expr> { "FAIL_iexplangmap" | 32 :inoremap <expr> { "FAIL_iexplangmap" |