annotate src/testdir/test6.in @ 8510:9f5bd031530d v7.4.1545

commit https://github.com/vim/vim/commit/b4ebf9ae3b93d082ab3b9f4aab2f6729f77fa46a Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 12 16:28:18 2016 +0100 patch 7.4.1545 Problem: GTK3: horizontal cursor movement in Visual selection not good. Solution: Make it work better. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Sat, 12 Mar 2016 16:30:04 +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