annotate src/testdir/test75.in @ 9604:a16f2505a6b3

Added tag v7.4.2079 for changeset 20e7be5d99ac2299ab98660f8bf6d710da2087ac
author Christian Brabandt <cb@256bit.org>
date Wed, 20 Jul 2016 00:15:06 +0200
parents dd3dac42cb9b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5405
733193bf24c3 updated for version 7.4.053
Bram Moolenaar <bram@vim.org>
parents: 5035
diff changeset
1 Tests for maparg().
5718
f5120cbf16b9 updated for version 7.4.204
Bram Moolenaar <bram@vim.org>
parents: 5405
diff changeset
2 Also test utf8 map with a 0x80 byte.
2610
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 STARTTEST
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :so small.vim
5718
f5120cbf16b9 updated for version 7.4.204
Bram Moolenaar <bram@vim.org>
parents: 5405
diff changeset
6 :so mbyte.vim
3026
6018c815e120 updated for version 7.3.285
Bram Moolenaar <bram@vim.org>
parents: 2610
diff changeset
7 :set cpo-=<
5718
f5120cbf16b9 updated for version 7.4.204
Bram Moolenaar <bram@vim.org>
parents: 5405
diff changeset
8 :set encoding=utf8
2610
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :" Test maparg() with a string result
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :map foo<C-V> is<F4>foo
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :vnoremap <script> <buffer> <expr> <silent> bar isbar
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :call append('$', maparg('foo<C-V>'))
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :call append('$', string(maparg('foo<C-V>', '', 0, 1)))
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :call append('$', string(maparg('bar', '', 0, 1)))
5035
1cf89d38aa76 updated for version 7.3.1261
Bram Moolenaar <bram@vim.org>
parents: 3026
diff changeset
15 :map <buffer> <nowait> foo bar
1cf89d38aa76 updated for version 7.3.1261
Bram Moolenaar <bram@vim.org>
parents: 3026
diff changeset
16 :call append('$', string(maparg('foo', '', 0, 1)))
2610
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 :"
3026
6018c815e120 updated for version 7.3.285
Bram Moolenaar <bram@vim.org>
parents: 2610
diff changeset
18 :map abc x<char-114>x
6018c815e120 updated for version 7.3.285
Bram Moolenaar <bram@vim.org>
parents: 2610
diff changeset
19 :call append('$', maparg('abc'))
6018c815e120 updated for version 7.3.285
Bram Moolenaar <bram@vim.org>
parents: 2610
diff changeset
20 :map abc y<S-char-114>y
6018c815e120 updated for version 7.3.285
Bram Moolenaar <bram@vim.org>
parents: 2610
diff changeset
21 :call append('$', maparg('abc'))
6018c815e120 updated for version 7.3.285
Bram Moolenaar <bram@vim.org>
parents: 2610
diff changeset
22 :"
5718
f5120cbf16b9 updated for version 7.4.204
Bram Moolenaar <bram@vim.org>
parents: 5405
diff changeset
23 Go:"
f5120cbf16b9 updated for version 7.4.204
Bram Moolenaar <bram@vim.org>
parents: 5405
diff changeset
24 :" Outside of the range, minimum
f5120cbf16b9 updated for version 7.4.204
Bram Moolenaar <bram@vim.org>
parents: 5405
diff changeset
25 :inoremap <Char-0x1040> a
6195
dd3dac42cb9b updated for version 7.4.433
Bram Moolenaar <bram@vim.org>
parents: 5718
diff changeset
26 :execute "normal a\u1040\<Esc>"
5718
f5120cbf16b9 updated for version 7.4.204
Bram Moolenaar <bram@vim.org>
parents: 5405
diff changeset
27 :" Inside of the range, minimum
f5120cbf16b9 updated for version 7.4.204
Bram Moolenaar <bram@vim.org>
parents: 5405
diff changeset
28 :inoremap <Char-0x103f> b
6195
dd3dac42cb9b updated for version 7.4.433
Bram Moolenaar <bram@vim.org>
parents: 5718
diff changeset
29 :execute "normal a\u103f\<Esc>"
5718
f5120cbf16b9 updated for version 7.4.204
Bram Moolenaar <bram@vim.org>
parents: 5405
diff changeset
30 :" Inside of the range, maximum
f5120cbf16b9 updated for version 7.4.204
Bram Moolenaar <bram@vim.org>
parents: 5405
diff changeset
31 :inoremap <Char-0xf03f> c
6195
dd3dac42cb9b updated for version 7.4.433
Bram Moolenaar <bram@vim.org>
parents: 5718
diff changeset
32 :execute "normal a\uf03f\<Esc>"
5718
f5120cbf16b9 updated for version 7.4.204
Bram Moolenaar <bram@vim.org>
parents: 5405
diff changeset
33 :" Outside of the range, maximum
f5120cbf16b9 updated for version 7.4.204
Bram Moolenaar <bram@vim.org>
parents: 5405
diff changeset
34 :inoremap <Char-0xf040> d
6195
dd3dac42cb9b updated for version 7.4.433
Bram Moolenaar <bram@vim.org>
parents: 5718
diff changeset
35 :execute "normal a\uf040\<Esc>"
5718
f5120cbf16b9 updated for version 7.4.204
Bram Moolenaar <bram@vim.org>
parents: 5405
diff changeset
36 :"
2610
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 :/^eof/+1,$w! test.out
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 :qa!
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 ENDTEST
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 eof