Mercurial > vim
annotate src/testdir/test_argument_count.in @ 6969:417201526af3 v7.4.802
patch 7.4.802
Problem: Using "A" in Visual mode while 'linebreak' is set is not tested.
Solution: Add a test for this, verifies the problem is fixed. (Ingo Karkat)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 28 Jul 2015 17:16:33 +0200 |
parents | 22f95a018b13 |
children |
rev | line source |
---|---|
6408
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
1 Tests for :[count]argument! and :[count]argdelete vim: set ft=vim : |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
2 |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
3 STARTTEST |
6409 | 4 :so small.vim |
6408
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
5 :%argd |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
6 :argadd a b c d |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
7 :set hidden |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
8 :let buffers = [] |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
9 :augroup TEST |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
10 :au BufEnter * call add(buffers, expand('%:t')) |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
11 :augroup END |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
12 :$argu |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
13 :$-argu |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
14 :-argu |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
15 :1argu |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
16 :+2argu |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
17 :augroup TEST |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
18 :au! |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
19 :augroup END |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
20 :let arglists = [] |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
21 :.argd |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
22 :call add(arglists, argv()) |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
23 :-argd |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
24 :call add(arglists, argv()) |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
25 :$argd |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
26 :call add(arglists, argv()) |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
27 :1arga c |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
28 :1arga b |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
29 :$argu |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
30 :$arga x |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
31 :call add(arglists, argv()) |
6472 | 32 :0arga Y |
6408
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
33 :call add(arglists, argv()) |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
34 :%argd |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
35 :call add(arglists, argv()) |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
36 :arga a b c d e f |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
37 :2,$-argd |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
38 :call add(arglists, argv()) |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
39 :e! test.out |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
40 :call append(0, buffers) |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
41 :let lnr = line('$') |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
42 :call append(lnr, map(copy(arglists), 'join(v:val, " ")')) |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
43 :w |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
44 :qa! |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
45 ENDTEST |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
46 |
1e6d87a36dcd
Add files added by patch 7.4.530 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
47 |