blob: f43970dc6291790e041001c78ead5cf7ab0a5251 [file] [log] [blame]
Bram Moolenaarbd743252010-10-20 21:23:33 +02001" Tests for functions.
2
3STARTTEST
4:so small.vim
Bram Moolenaar792826c2011-08-19 22:29:02 +02005:set cpo-=<
Bram Moolenaarbd743252010-10-20 21:23:33 +02006:" Test maparg() with a string result
7:map foo<C-V> is<F4>foo
8:vnoremap <script> <buffer> <expr> <silent> bar isbar
9:call append('$', maparg('foo<C-V>'))
10:call append('$', string(maparg('foo<C-V>', '', 0, 1)))
11:call append('$', string(maparg('bar', '', 0, 1)))
Bram Moolenaar72179e12013-06-29 13:58:31 +020012:map <buffer> <nowait> foo bar
13:call append('$', string(maparg('foo', '', 0, 1)))
Bram Moolenaarbd743252010-10-20 21:23:33 +020014:"
Bram Moolenaar792826c2011-08-19 22:29:02 +020015:map abc x<char-114>x
16:call append('$', maparg('abc'))
17:map abc y<S-char-114>y
18:call append('$', maparg('abc'))
19:"
Bram Moolenaarbd743252010-10-20 21:23:33 +020020:/^eof/+1,$w! test.out
21:qa!
22ENDTEST
23
24eof