Mercurial > vim
annotate src/testdir/test_argument_count.in @ 6675:24e0b6dd52e1 v7.4.662
updated for version 7.4.662
Problem: When 'M' is in the 'cpo' option then selecting a text object in
parenthesis does not work correctly.
Solution: Keep 'M' in 'cpo' when finding a match. (Hirohito Higashi)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 13 Mar 2015 15:03:00 +0100 |
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 |