annotate src/testdir/test107.in @ 7096:00b9f0c048db v7.4.860

commit https://github.com/vim/vim/commit/a122b5e98afe18c9cfdab31b77d2a9fbb8e36416 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 8 19:13:51 2015 +0200 patch 7.4.860 Problem: Filetype detection is outdated. Solution: Include all recent and not-so-recent changes.
author Christian Brabandt <cb@256bit.org>
date Tue, 08 Sep 2015 19:15:04 +0200
parents 646616b6ff4d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5948
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Tests for adjusting window and contents vim: set ft=vim :
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :new
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :call setline(1, range(1,256))
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :let r=[]
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :func! GetScreenStr(row)
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 : let str = ""
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 : for c in range(1,3)
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 : let str .= nr2char(screenchar(a:row, c))
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 : endfor
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 : return str
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :endfunc
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 :exe ":norm! \<C-W>t\<C-W>=1Gzt\<C-W>w\<C-W>+"
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 :let s3=GetScreenStr(1)
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 :wincmd p
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 :call add(r, [line("w0"), s3])
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 :
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :exe ":norm! \<C-W>t\<C-W>=50Gzt\<C-W>w\<C-W>+"
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 :let s3=GetScreenStr(1)
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 :wincmd p
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 :call add(r, [line("w0"), s3])
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 :
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 :exe ":norm! \<C-W>t\<C-W>=59Gzt\<C-W>w\<C-W>+"
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 :let s3=GetScreenStr(1)
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 ::wincmd p
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 :call add(r, [line("w0"), s3])
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 :
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 :bwipeout!
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 :$put=r
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 :call garbagecollect(1)
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 :"
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 :/^start:/,$wq! test.out
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 ENDTEST
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37
646616b6ff4d updated for version 7.4.315
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 start: