annotate src/testdir/test6.in @ 9037:d07035f84f0d v7.4.1804

commit https://github.com/vim/vim/commit/b20545f2a718d4f19c3f609fd11c0ca4eff450ce Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 30 14:15:54 2016 +0200 patch 7.4.1804 Problem: Can't use Vim as MANPAGER. Solution: Add manpager.vim. (Enno Nagel, closes https://github.com/vim/vim/issues/491)
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Apr 2016 14:30:05 +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