annotate src/testdir/test5.in @ 6911:e09a7ff88046 v7.4.775

patch 7.4.775 Problem: It is not possible to avoid using the first item of completion. Solution: Add the "noinsert" and "noselect" values to 'completeopt'. (Shougo Matsu)
author Bram Moolenaar <bram@vim.org>
date Fri, 10 Jul 2015 18:18:40 +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