annotate src/testdir/test6.in @ 6927:58d9f967ae1a v7.4.782

patch 7.4.782 Problem: Still a few problems with CTRL-A and CTRL-X in Visual mode. Solution: Fix the reported problems. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Fri, 17 Jul 2015 13:03:48 +0200
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Test for autocommand that redefines the argument list, when doing ":all".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 :au BufReadPost Xxx2 next Xxx2 Xxx1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 /^start of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 A1:.,/end of/w! Xxx1 " write test file Xxx1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 $r2:.,/end of/w! Xxx2 " write test file Xxx2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 $r3:.,/end of/w! Xxx3 " write test file Xxx3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :next! Xxx1 Xxx2 Xxx3 " redefine arglist; go to Xxx1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 :all " open window for all args
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 :w! test.out " Write contents of Xxx1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 :w >>test.out " Append contents of last window (Xxx1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 :rew " should now be in Xxx2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :w >>test.out " Append contents of Xxx2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 start of test file Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 end of test file Xxx