annotate src/testdir/test88.in @ 16049:75c99104f6b5

Added tag v8.1.1029 for changeset 728bef04b0d46e980c878024417f9c124d92909b
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Mar 2019 21:00:06 +0100
parents 43f444efe6a2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3986
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 vim: set ft=vim
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 Tests for correct display (cursor column position) with +conceal and
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 tabulators.
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 STARTTEST
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :so small.vim
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :if !has('conceal')
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 e! test.ok
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 wq! test.out
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :endif
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :" Conceal settings.
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :set conceallevel=2
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :set concealcursor=nc
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :syntax match test /|/ conceal
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 :" Save current cursor position. Only works in <expr> mode, can't be used
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 :" with :normal because it moves the cursor to the command line. Thanks to ZyX
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 :" <zyx.vim@gmail.com> for the idea to use an <expr> mapping.
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 :let positions = []
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 :nnoremap <expr> GG ":let positions += ['".screenrow().":".screencol()."']\n"
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :" Start test.
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 /^start:
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 :normal ztj
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 :" We should end up in the same column when running these commands on the two
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 :" lines.
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 :normal ft
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 :normal $
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 :normal 0j
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 :normal ft
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 :normal $
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 :normal 0j0j
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 :" Same for next test block.
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40 :normal ft
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 :normal $
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 :normal 0j
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46 :normal ft
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48 :normal $
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50 :normal 0j0j
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52 :" And check W with multiple tabs and conceals in a line.
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
53 :normal W
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
55 :normal W
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
56 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
57 :normal W
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
58 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
59 :normal $
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
60 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
61 :normal 0j
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
62 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
63 :normal W
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
64 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
65 :normal W
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
66 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
67 :normal W
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
68 GGk
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
69 :normal $
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
70 GGk
5174
42d592dbbec3 updated for version 7.4a.013
Bram Moolenaar <bram@vim.org>
parents: 3986
diff changeset
71 :set lbr
42d592dbbec3 updated for version 7.4a.013
Bram Moolenaar <bram@vim.org>
parents: 3986
diff changeset
72 :normal $
42d592dbbec3 updated for version 7.4a.013
Bram Moolenaar <bram@vim.org>
parents: 3986
diff changeset
73 GGk
6627
43f444efe6a2 updated for version 7.4.639
Bram Moolenaar <bram@vim.org>
parents: 5174
diff changeset
74 :set list listchars=tab:>-
43f444efe6a2 updated for version 7.4.639
Bram Moolenaar <bram@vim.org>
parents: 5174
diff changeset
75 :normal 0
43f444efe6a2 updated for version 7.4.639
Bram Moolenaar <bram@vim.org>
parents: 5174
diff changeset
76 GGk
43f444efe6a2 updated for version 7.4.639
Bram Moolenaar <bram@vim.org>
parents: 5174
diff changeset
77 :normal W
43f444efe6a2 updated for version 7.4.639
Bram Moolenaar <bram@vim.org>
parents: 5174
diff changeset
78 GGk
43f444efe6a2 updated for version 7.4.639
Bram Moolenaar <bram@vim.org>
parents: 5174
diff changeset
79 :normal W
43f444efe6a2 updated for version 7.4.639
Bram Moolenaar <bram@vim.org>
parents: 5174
diff changeset
80 GGk
43f444efe6a2 updated for version 7.4.639
Bram Moolenaar <bram@vim.org>
parents: 5174
diff changeset
81 :normal W
43f444efe6a2 updated for version 7.4.639
Bram Moolenaar <bram@vim.org>
parents: 5174
diff changeset
82 GGk
43f444efe6a2 updated for version 7.4.639
Bram Moolenaar <bram@vim.org>
parents: 5174
diff changeset
83 :normal $
43f444efe6a2 updated for version 7.4.639
Bram Moolenaar <bram@vim.org>
parents: 5174
diff changeset
84 GGk
3986
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
85 :" Display result.
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
86 :call append('$', 'end:')
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
87 :call append('$', positions)
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
88 :/^end/,$wq! test.out
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
89 ENDTEST
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
90
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
91 start:
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
92 .concealed. text
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
93 |concealed| text
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
94
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
95 .concealed. text
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
96 |concealed| text
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
97
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
98 .a. .b. .c. .d.
56bb88c68f98 updated for version 7.3.748
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
99 |a| |b| |c| |d|