annotate src/testdir/test7.in @ 7480:a49163681559 v7.4.1042

commit https://github.com/vim/vim/commit/ed767a2073ef150971b0439a58e7ee582af6984e Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 3 22:49:16 2016 +0100 patch 7.4.1042 Problem: g-CTRL-G shows the word count, but there is no way to get the word count in a script. Solution: Add the wordcount() function. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Sun, 03 Jan 2016 23:00: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 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