annotate src/testdir/test94.in @ 7825:7898da204b98 v7.4.1209

commit https://github.com/vim/vim/commit/02fdaeaa697fb5af4ba7fee6e209b3c2c825bb4f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 30 18:13:55 2016 +0100 patch 7.4.1209 Problem: Can't build with Athena. Solution: Fix function declarations.
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Jan 2016 18:15:04 +0100
parents a69b5e4beefd
children ae45d497868f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4274
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Test for Visual mode and operators
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 Tests for the two kinds of operations: Those executed with Visual mode
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 followed by an operator and those executed via Operator-pending mode. Also
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 part of the test are mappings, counts, and repetition with the . command.
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 Test cases:
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 - Visual modes (v V CTRL-V) followed by an operator; count; repeating
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 - Visual mode maps; count; repeating
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 - Simple
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 - With an Ex command (custom text object)
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 - Operator-pending mode maps
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 - Simple
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 - With Ex command moving the cursor
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 - With Ex command and Visual selection (custom text object)
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 - Patch 7.3.879: Properly abort Ex command in Operator-pending mode
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 STARTTEST
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 :so small.vim
7246
a69b5e4beefd commit https://github.com/vim/vim/commit/cfcd1ddd103129b309671cba5cff55e19a9908e4
Christian Brabandt <cb@256bit.org>
parents: 7241
diff changeset
20 :set enc=utf-8 nocp viminfo+=nviminfo
4274
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 :" User functions
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 :function MoveToCap()
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 : call search('\u', 'W')
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 :endfunction
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 :function SelectInCaps()
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 : let [line1, col1] = searchpos('\u', 'bcnW')
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 : let [line2, col2] = searchpos('.\u', 'nW')
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 : call setpos("'<", [0, line1, col1, 0])
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 : call setpos("'>", [0, line2, col2, 0])
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 : normal! gv
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 :endfunction
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 :
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 :" Visual modes followed by operator
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 /^apple
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 lvld.l3vd.:
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 /^line 1
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 Vcnewlinej.j2Vd.:
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 /^xxxx
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40 jlc l.l2c----l.:
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 :
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 :" Visual mode maps (movement and text object)
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 :vnoremap W /\u/s-1<CR>
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 :vnoremap iW :<C-U>call SelectInCaps()<CR>
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 /^Kiwi
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46 vWcNol.fD2vd.:
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 /^Jambu
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48 llviWc-l.l2vdl.:
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49 :
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50 :" Operator-pending mode maps (movement and text object)
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51 :onoremap W /\u/<CR>
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52 :onoremap <Leader>W :<C-U>call MoveToCap()<CR>
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
53 :onoremap iW :<C-U>call SelectInCaps()<CR>
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54 /^Pineapple
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
55 cW-l.l2.l.:
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
56 /^Juniper
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
57 g?\WfD.:
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
58 /^Lemon
4346
1d56e5dfa08e updated for version 7.3.922
Bram Moolenaar <bram@vim.org>
parents: 4329
diff changeset
59 yiWPlciWNewfr.:
4274
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
60 :
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
61 :" Patch 7.3.879: Properly abort Operator-pending mode for "dv:<Esc>" etc.
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
62 /^zzzz
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
63 dV: dv: :set noma | let v:errmsg = ''
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
64 d: :set ma | put = v:errmsg =~# '^E21' ? 'ok' : 'failed'
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
65 dv:dV::set noma | let v:errmsg = ''
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
66 d::set ma | put = v:errmsg =~# '^E21' ? 'failed' : 'ok'
6826
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
67 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
68 :$put =''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
69 :$put ='characterwise visual mode: replace last line'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
70 :$put ='a'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
71 :let @" = 'x'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
72 :let v:errmsg = ''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
73 v$p
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
74 :$put ='---'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
75 :$put ='v:errmsg='.v:errmsg
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
76 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
77 :$put =''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
78 :$put ='characterwise visual mode: delete middle line'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
79 :$put ='a'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
80 :$put ='b'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
81 :$put ='c'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
82 kkv$d
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
83 :$put ='---'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
84 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
85 :$put =''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
86 :$put ='characterwise visual mode: delete middle two line'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
87 :$put ='a'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
88 :$put ='b'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
89 :$put ='c'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
90 kkvj$d
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
91 :$put ='---'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
92 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
93 :$put =''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
94 :$put ='characterwise visual mode: delete last line'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
95 :$put ='a'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
96 :$put ='b'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
97 :$put ='c'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
98 v$d
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
99 :$put ='---'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
100 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
101 :$put =''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
102 :$put ='characterwise visual mode: delete last two line'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
103 :$put ='a'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
104 :$put ='b'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
105 :$put ='c'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
106 kvj$d
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
107 :$put ='---'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
108 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
109 :" Select mode maps
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
110 :snoremap <lt>End> <End>
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
111 :snoremap <lt>Down> <Down>
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
112 :snoremap <lt>Del> <Del>
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
113 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
114 :$put =''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
115 :$put ='characterwise select mode: delete middle line'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
116 :$put ='a'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
117 :$put ='b'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
118 :$put ='c'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
119 kkgh<End><Del>
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
120 :$put ='---'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
121 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
122 :$put =''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
123 :$put ='characterwise select mode: delete middle two line'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
124 :$put ='a'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
125 :$put ='b'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
126 :$put ='c'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
127 kkgh<Down><End><Del>
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
128 :$put ='---'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
129 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
130 :$put =''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
131 :$put ='characterwise select mode: delete last line'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
132 :$put ='a'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
133 :$put ='b'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
134 :$put ='c'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
135 gh<End><Del>
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
136 :$put ='---'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
137 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
138 :$put =''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
139 :$put ='characterwise select mode: delete last two line'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
140 :$put ='a'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
141 :$put ='b'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
142 :$put ='c'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
143 kgh<Down><End><Del>
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
144 :$put ='---'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
145 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
146 :$put =''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
147 :$put ='linewise select mode: delete middle line'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
148 :$put ='a'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
149 :$put ='b'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
150 :$put ='c'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
151 kkgH<Del>
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
152 :$put ='---'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
153 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
154 :$put =''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
155 :$put ='linewise select mode: delete middle two line'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
156 :$put ='a'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
157 :$put ='b'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
158 :$put ='c'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
159 kkgH<Down><Del>
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
160 :$put ='---'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
161 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
162 :$put =''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
163 :$put ='linewise select mode: delete last line'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
164 :$put ='a'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
165 :$put ='b'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
166 :$put ='c'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
167 gH<Del>
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
168 :$put ='---'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
169 :
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
170 :$put =''
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
171 :$put ='linewise select mode: delete last two line'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
172 :$put ='a'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
173 :$put ='b'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
174 :$put ='c'
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
175 kgH<Down><Del>
bf3e6012dfbd patch 7.4.734
Bram Moolenaar <bram@vim.org>
parents: 4346
diff changeset
176 :$put ='---'
6845
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
177 :
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
178 :$put =''
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
179 :$put ='v_p: replace last character with line register at middle line'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
180 :$put ='aaa'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
181 :$put ='bbb'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
182 :$put ='ccc'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
183 :-2yank
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
184 k$vp
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
185 :$put ='---'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
186 :
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
187 :$put =''
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
188 :$put ='v_p: replace last character with line register at middle line selecting newline'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
189 :$put ='aaa'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
190 :$put ='bbb'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
191 :$put ='ccc'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
192 :-2yank
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
193 k$v$p
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
194 :$put ='---'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
195 :
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
196 :$put =''
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
197 :$put ='v_p: replace last character with line register at last line'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
198 :$put ='aaa'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
199 :$put ='bbb'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
200 :$put ='ccc'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
201 :-2yank
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
202 $vp
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
203 :$put ='---'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
204 :
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
205 :$put =''
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
206 :$put ='v_p: replace last character with line register at last line selecting newline'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
207 :$put ='aaa'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
208 :$put ='bbb'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
209 :$put ='ccc'
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
210 :-2yank
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
211 $v$p
ac13f3533571 patch 7.4.743
Bram Moolenaar <bram@vim.org>
parents: 6826
diff changeset
212 :$put ='---'
7241
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
213 :
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
214 :$put =''
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
215 :$put ='gv in exclusive select mode after operation'
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
216 :$put ='zzz '
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
217 :$put ='äà '
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
218 :set selection=exclusive
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
219 kv3lyjv3lpgvcxxx
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
220 :$put ='---'
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
221 :
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
222 :$put =''
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
223 :$put ='gv in exclusive select mode without operation'
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
224 :$put ='zzz '
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
225 :set selection=exclusive
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
226 0v3lgvcxxx
0c1278704b5c commit https://github.com/vim/vim/commit/d29c6fea94947b3f4b54fbd5a6f832a7d744bf27
Christian Brabandt <cb@256bit.org>
parents: 6845
diff changeset
227 :$put ='---'
4274
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
228 :/^start:/+2,$w! test.out
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
229 :q!
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
230 ENDTEST
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
231
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
232 start:
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
233
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
234 apple banana cherry
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
235
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
236 line 1 line 1
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
237 line 2 line 2
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
238 line 3 line 3
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
239 line 4 line 4
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
240 line 5 line 5
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
241 line 6 line 6
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
242
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
243 xxxxxxxxxxxxx
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
244 xxxxxxxxxxxxx
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
245 xxxxxxxxxxxxx
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
246 xxxxxxxxxxxxx
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
247
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
248 KiwiRaspberryDateWatermelonPeach
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
249 JambuRambutanBananaTangerineMango
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
250
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
251 PineappleQuinceLoganberryOrangeGrapefruitKiwiZ
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
252 JuniperDurianZ
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
253 LemonNectarineZ
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
254
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
255 zzzz
015e53d99787 updated for version 7.3.887
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
256 zzzz