annotate src/testdir/test75.in @ 2610:6c05b5e5c1be v7.3.032

updated for version 7.3.032 Problem: maparg() doesn't return the flags, such as <buffer>, <script>, <silent>. These are needed to save and restore a mapping. Solution: Improve maparg(). (also by Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Wed, 20 Oct 2010 21:23:33 +0200
parents
children 6018c815e120
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2610
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Tests for functions.
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :" Test maparg() with a string result
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :map foo<C-V> is<F4>foo
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :vnoremap <script> <buffer> <expr> <silent> bar isbar
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :call append('$', maparg('foo<C-V>'))
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :call append('$', string(maparg('foo<C-V>', '', 0, 1)))
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :call append('$', string(maparg('bar', '', 0, 1)))
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :"
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :/^eof/+1,$w! test.out
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :qa!
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 ENDTEST
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15
6c05b5e5c1be updated for version 7.3.032
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 eof