comparison src/testdir/test4.in @ 7:3fc0f57ecb91 v7.0001

updated for version 7.0001
author vimboss
date Sun, 13 Jun 2004 20:20:40 +0000
parents
children 5e998fc610d5
comparison
equal deleted inserted replaced
6:c2daee826b8f 7:3fc0f57ecb91
1 Test for autocommand that changes current buffer on BufEnter event.
2 Check if modelines are interpreted for the correct buffer.
3
4 STARTTEST
5 :so small.vim
6 :set nocompatible viminfo+=nviminfo
7 :au BufEnter Xxx brew
8 /start of
9 :.,/end of/w! Xxx " write test file Xxx
10 :set ai modeline modelines=3
11 :sp Xxx " split to Xxx, autocmd will do :brew
12 G?this is a
13 othis should be auto-indented
14 : " Append text with autoindent to this file
15 :au! BufEnter Xxx
16 :buf Xxx " go to Xxx, no autocmd anymore
17 G?this is a
18 othis should be in column 1:wq " append text without autoindent to Xxx
19 G:r Xxx " include Xxx in the current file
20 :?startstart?,$w! test.out
21 :qa!
22 ENDTEST
23
24 startstart
25 start of test file Xxx
26 vim: set noai :
27 this is a test
28 this is a test
29 this is a test
30 this is a test
31 end of test file Xxx