annotate src/testdir/test7.in @ 5697:c2098c3095e7

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Sat, 08 Mar 2014 18:38:28 +0100
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 changes the buffer list, when doing ":ball".
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 /^start of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 A1:.,/end of/w! Xxx1 " write test file Xxx1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 :sp Xxx1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 :close
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 $r2:.,/end of/w! Xxx2 " write test file Xxx2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :sp Xxx2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 :close
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 $r3:.,/end of/w! Xxx3 " write test file Xxx3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 :sp Xxx3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 :close
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :au BufReadPost Xxx2 bwipe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 $r4:ball " open window for all args, close Xxx2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 :.,$w! test.out " Write contents of this file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 :w >>test.out " Append contents of second window (Xxx1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 :/^start of/,$w >>test.out " Append contents of last window (this file)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 start of test file Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 end of test file Xxx