Mercurial > vim
comparison src/testdir/test75.in @ 3026:6018c815e120 v7.3.285
updated for version 7.3.285
Problem: Mapping <Char-123> no longer works.
Solution: Properly check for "char-". Add a test for it.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 19 Aug 2011 22:29:02 +0200 |
parents | 6c05b5e5c1be |
children | 1cf89d38aa76 |
comparison
equal
deleted
inserted
replaced
3025:f33296ed67ea | 3026:6018c815e120 |
---|---|
1 " Tests for functions. | 1 " Tests for functions. |
2 | 2 |
3 STARTTEST | 3 STARTTEST |
4 :so small.vim | 4 :so small.vim |
5 :set cpo-=< | |
5 :" Test maparg() with a string result | 6 :" Test maparg() with a string result |
6 :map foo<C-V> is<F4>foo | 7 :map foo<C-V> is<F4>foo |
7 :vnoremap <script> <buffer> <expr> <silent> bar isbar | 8 :vnoremap <script> <buffer> <expr> <silent> bar isbar |
8 :call append('$', maparg('foo<C-V>')) | 9 :call append('$', maparg('foo<C-V>')) |
9 :call append('$', string(maparg('foo<C-V>', '', 0, 1))) | 10 :call append('$', string(maparg('foo<C-V>', '', 0, 1))) |
10 :call append('$', string(maparg('bar', '', 0, 1))) | 11 :call append('$', string(maparg('bar', '', 0, 1))) |
11 :" | 12 :" |
13 :map abc x<char-114>x | |
14 :call append('$', maparg('abc')) | |
15 :map abc y<S-char-114>y | |
16 :call append('$', maparg('abc')) | |
17 :" | |
12 :/^eof/+1,$w! test.out | 18 :/^eof/+1,$w! test.out |
13 :qa! | 19 :qa! |
14 ENDTEST | 20 ENDTEST |
15 | 21 |
16 eof | 22 eof |