annotate src/testdir/test4.in @ 8798:176647a751d7 v7.4.1687

commit https://github.com/vim/vim/commit/bdf0bda968a53a55149a4c83a10a60c28e431305 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 30 21:06:57 2016 +0200 patch 7.4.1687 Problem: The channel close_cb option does not work. Solution: Use jo_close_partial instead of jo_err_partial. (Damien)
author Christian Brabandt <cb@256bit.org>
date Wed, 30 Mar 2016 22:15:10 +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