annotate src/testdir/test5.in @ 10015:5ac2dd61ca8f v7.4.2280

commit https://github.com/vim/vim/commit/e999782e369999539a1783a7ebe4eadcc6da28a8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 28 16:03:38 2016 +0200 patch 7.4.2280 Problem: printf() doesn't handle infinity float values correctly. Solution: Add a table with possible infinity values. (Dominique Pelle)
author Christian Brabandt <cb@256bit.org>
date Sun, 28 Aug 2016 16:15:04 +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 deletes the current buffer on BufLeave event.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 Also test deleting the last buffer, should give a new, empty buffer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :au BufLeave Xxx bwipe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 /start of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 :.,/end of/w! Xxx " write test file Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 :sp Xxx " split to Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :bwipe " delete buffer Xxx, now we're back here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 G?this is a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 othis is some more text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 : " Append some text to this file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 :?start?,$w! test.out " Write current file contents
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :bwipe test.out " delete alternate buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 :au bufleave test5.in bwipe
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 :bwipe! " delete current buffer, get an empty one
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 ithis is another test line:w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 : " append an extra line to the output 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 vim: set noai :
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 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 end of test file Xxx