annotate src/testdir/test4.in @ 5602:8507bf8874d8 v7.4.148

updated for version 7.4.148 Problem: Cannot build with Cygwin and X11. Solution: Include Xwindows.h instead of windows.h. (Lech Lorens)
author Bram Moolenaar <bram@vim.org>
date Tue, 14 Jan 2014 13:26:21 +0100
parents 3fc0f57ecb91
children 5e998fc610d5
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 :?startstart?,$w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 startstart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 start of test file Xxx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 vim: set noai :
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 this is a test
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 end of test file Xxx