annotate src/testdir/test5.in @ 9998:3063d1acd0c9 v7.4.2272

commit https://github.com/vim/vim/commit/9f8187c335b4fb07be9095dfdd0fc52670ba3c3f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 27 20:34:01 2016 +0200 patch 7.4.2272 Problem: getbufinfo(), getwininfo() and gettabinfo() are inefficient. Solution: Instead of making a copy of the variables dictionary, use a reference.
author Christian Brabandt <cb@256bit.org>
date Sat, 27 Aug 2016 20:45: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 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