annotate src/testdir/test54.in @ 5934:e3d2b8d83bb3 v7.4.308

updated for version 7.4.308 Problem: When using ":diffsplit" on an empty file the cursor is displayed on the command line. Solution: Limit the value of w_topfill.
author Bram Moolenaar <bram@vim.org>
date Wed, 28 May 2014 11:35:37 +0200
parents 71eaeb69efe4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
40
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
1 Some tests for buffer-local autocommands
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
2
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
3 STARTTEST
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
4 :so small.vim
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
5 :e xx
1709
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
6 :if has("vms")
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
7 : !del test.out.*
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
8 : au BufLeave <buffer> :!write sys$output "buffer-local autommand in %" > test.out
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
9 :else
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
10 : !rm -f test.out
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
11 : au BufLeave <buffer> :!echo buffer-local autommand in %>> test.out
71eaeb69efe4 updated for version 7.2-007
vimboss
parents: 51
diff changeset
12 :endif
40
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
13 :e somefile " here, autocommand for xx shall write test.out
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
14 : " but autocommand shall not apply to buffer named <buffer>
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
15 :bwipe xx " here, autocommand shall be auto-deleted
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
16 :e xx " nothing shall be written
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
17 :e somefile " nothing shall be written
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
18 :qa!
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
19 ENDTEST
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
20
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
21 start of test file xx
f1d2a58883b9 updated for version 7.0024
vimboss
parents:
diff changeset
22 end of test file xx