annotate src/testdir/test4.in @ 6852:f538da3ee271

Added tag v7-4-746 for changeset b782813c73a6
author Bram Moolenaar <bram@vim.org>
date Fri, 19 Jun 2015 16:45:44 +0200
parents 5e998fc610d5
children bc269cf15ccd
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 changes current buffer on BufEnter event.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 Check if modelines are interpreted for the correct 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 :set nocompatible viminfo+=nviminfo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 :au BufEnter Xxx brew
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 /start of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 :.,/end of/w! Xxx " write test file Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :set ai modeline modelines=3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 :sp Xxx " split to Xxx, autocmd will do :brew
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 G?this is a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 othis should be auto-indented
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 : " Append text with autoindent to this file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :au! BufEnter Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 :buf Xxx " go to Xxx, no autocmd anymore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 G?this is a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 othis should be in column 1:wq " append text without autoindent to Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 G:r Xxx " include Xxx in the current file
6318
5e998fc610d5 updated for version 7.4.492
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
20 :set fo+=r " issue #57 do not move cursor on <c-o> when autoindent is set
5e998fc610d5 updated for version 7.4.492
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
21 Go# abcdef2hi
5e998fc610d5 updated for version 7.4.492
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
22 d0o# abcdef2hid0
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 :?startstart?,$w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 startstart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 start of test file Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 vim: set noai :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 this is a test
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 end of test file Xxx