annotate src/testdir/test4.in @ 10062:103d874ebb96 v7.4.2302

commit https://github.com/vim/vim/commit/f1b512a0b62d0fa47ee9b2612556f375e1f22fc2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 1 20:50:54 2016 +0200 patch 7.4.2302 Problem: Default interface versions for MS-Windows are outdated. Solution: Use Active Perl 5.24, Python 3.5.2. Could only make it work with Ruby 1.9.2.
author Christian Brabandt <cb@256bit.org>
date Thu, 01 Sep 2016 21:00:08 +0200
parents bc269cf15ccd
children
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
7003
bc269cf15ccd patch 7.4.819
Bram Moolenaar <bram@vim.org>
parents: 6318
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