annotate src/testdir/test54.in @ 6140:cb3218a69c2f v7.4.408

updated for version 7.4.408 Problem: Visual block insert breaks a multi-byte character. Solution: Calculate the position properly. (Yasuhiro Matsumoto)
author Bram Moolenaar <bram@vim.org>
date Sat, 16 Aug 2014 18:36:43 +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