annotate src/testdir/test6.in @ 8445:dd2e2bd69d0e v7.4.1513

commit https://github.com/vim/vim/commit/41e0f2f48f541eb2c8eb5620d3f1d270eb979154 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 8 14:44:42 2016 +0100 patch 7.4.1513 Problem: "J" fails if there are not enough lines. (Christian Neukirchen) Solution: Reduce the count, only fail on the last line.
author Christian Brabandt <cb@256bit.org>
date Tue, 08 Mar 2016 14:45:05 +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 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