Bram Moolenaar | bd74325 | 2010-10-20 21:23:33 +0200 | [diff] [blame] | 1 | " Tests for functions. |
2 | |||||
3 | STARTTEST | ||||
4 | :so small.vim | ||||
5 | :" Test maparg() with a string result | ||||
6 | :map foo<C-V> is<F4>foo | ||||
7 | :vnoremap <script> <buffer> <expr> <silent> bar isbar | ||||
8 | :call append('$', maparg('foo<C-V>')) | ||||
9 | :call append('$', string(maparg('foo<C-V>', '', 0, 1))) | ||||
10 | :call append('$', string(maparg('bar', '', 0, 1))) | ||||
11 | :" | ||||
12 | :/^eof/+1,$w! test.out | ||||
13 | :qa! | ||||
14 | ENDTEST | ||||
15 | |||||
16 | eof |