annotate src/testdir/test5.in @ 8744:ff9973bbbfcb v7.4.1661

commit https://github.com/vim/vim/commit/fa8b2e173dd5f6c4a5cfd326abdcf68b8eebf90d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 26 22:19:27 2016 +0100 patch 7.4.1661 Problem: No test for special characters in channel eval command. Solution: Testing sending and receiving text with special characters.
author Christian Brabandt <cb@256bit.org>
date Sat, 26 Mar 2016 22: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 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