annotate src/testdir/test94.in @ 11824:b276c1e73c27 v8.0.0792

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