Lines Matching refs:buf
113 let buf = term_start([GetVimProg(), '--clean', '-S', testfile], {'term_rows': rows})
114 call TermWait(buf, 100)
115 call assert_equal('run', job_status(term_getjob(buf)))
117 call term_sendkeys(buf, "i")
118 call WaitForAssert({-> assert_match('^-- INSERT --\s*$', term_getline(buf, rows))})
119 call term_sendkeys(buf, "\<C-C>")
120 call WaitForAssert({-> assert_match('^\s*$', term_getline(buf, rows))})
122 call term_sendkeys(buf, ":qall!\<CR>")
123 call WaitForAssert({-> assert_equal('dead', job_status(term_getjob(buf)))})
124 exe buf . 'bwipe!'
141 let buf = term_start([GetVimProg(), '--clean', '-S', testfile], {'term_rows': rows})
142 call WaitForAssert({-> assert_match('0,0-1\s*All$', term_getline(buf, rows - 1))})
143 call assert_equal('run', job_status(term_getjob(buf)))
145 call term_sendkeys(buf, "i")
146 call WaitForAssert({-> assert_match('^-- INSERT --\s*$', term_getline(buf, rows))})
147 call term_sendkeys(buf, "\<Esc>")
148 call WaitForAssert({-> assert_match('^\s*$', term_getline(buf, rows))})
150 call term_sendkeys(buf, ":qall!\<CR>")
151 call WaitForAssert({-> assert_equal('dead', job_status(term_getjob(buf)))})
152 exe buf . 'bwipe!'
176 let buf = RunVimInTerminal('', {'rows': 6})
177 call term_sendkeys(buf, ":call setline(1, range(1, 100))\n")
179 call term_sendkeys(buf, ":%p#\n")
180 call WaitForAssert({-> assert_equal(' 5 5', term_getline(buf, 5))})
181 call WaitForAssert({-> assert_equal('-- More --', term_getline(buf, 6))})
183 call term_sendkeys(buf, '?')
184 call WaitForAssert({-> assert_equal(' 5 5', term_getline(buf, 5))})
185 …t_equal('-- More -- SPACE/d/j: screen/page/line down, b/u/k: up, q: quit ', term_getline(buf, 6))})
188 call term_sendkeys(buf, "j")
189 call WaitForAssert({-> assert_equal(' 6 6', term_getline(buf, 5))})
190 call WaitForAssert({-> assert_equal('-- More --', term_getline(buf, 6))})
191 call term_sendkeys(buf, "\<NL>")
192 call WaitForAssert({-> assert_equal(' 7 7', term_getline(buf, 5))})
193 call term_sendkeys(buf, "\<CR>")
194 call WaitForAssert({-> assert_equal(' 8 8', term_getline(buf, 5))})
195 call term_sendkeys(buf, "\<Down>")
196 call WaitForAssert({-> assert_equal(' 9 9', term_getline(buf, 5))})
199 call term_sendkeys(buf, 'f')
200 call WaitForAssert({-> assert_equal(' 14 14', term_getline(buf, 5))})
201 call WaitForAssert({-> assert_equal('-- More --', term_getline(buf, 6))})
202 call term_sendkeys(buf, ' ')
203 call WaitForAssert({-> assert_equal(' 19 19', term_getline(buf, 5))})
204 call term_sendkeys(buf, "\<PageDown>")
205 call WaitForAssert({-> assert_equal(' 24 24', term_getline(buf, 5))})
208 call term_sendkeys(buf, 'd')
209 call WaitForAssert({-> assert_equal(' 27 27', term_getline(buf, 5))})
212 call term_sendkeys(buf, 'G')
213 call WaitForAssert({-> assert_equal('100 100', term_getline(buf, 5))})
214 …call WaitForAssert({-> assert_equal('Press ENTER or type command to continue', term_getline(buf, 6…
217 call term_sendkeys(buf, 'k')
218 call WaitForAssert({-> assert_equal(' 99 99', term_getline(buf, 5))})
219 call term_sendkeys(buf, "\<BS>")
220 call WaitForAssert({-> assert_equal(' 98 98', term_getline(buf, 5))})
221 call term_sendkeys(buf, "\<Up>")
222 call WaitForAssert({-> assert_equal(' 97 97', term_getline(buf, 5))})
225 call term_sendkeys(buf, 'b')
226 call WaitForAssert({-> assert_equal(' 92 92', term_getline(buf, 5))})
227 call term_sendkeys(buf, "\<PageUp>")
228 call WaitForAssert({-> assert_equal(' 87 87', term_getline(buf, 5))})
231 call term_sendkeys(buf, 'u')
232 call WaitForAssert({-> assert_equal(' 84 84', term_getline(buf, 5))})
235 call term_sendkeys(buf, 'g')
236 call WaitForAssert({-> assert_equal(' 5 5', term_getline(buf, 5))})
237 call WaitForAssert({-> assert_equal('-- More --', term_getline(buf, 6))})
241 call term_sendkeys(buf, 'G')
242 call WaitForAssert({-> assert_equal('100 100', term_getline(buf, 5))})
243 …call WaitForAssert({-> assert_equal('Press ENTER or type command to continue', term_getline(buf, 6…
244 call term_sendkeys(buf, 'f')
245 call WaitForAssert({-> assert_equal('100 100', term_getline(buf, 5))})
246 call term_sendkeys(buf, ' ')
247 call WaitForAssert({-> assert_equal('100', term_getline(buf, 5))})
250 call term_sendkeys(buf, 'g<')
251 call WaitForAssert({-> assert_equal('100 100', term_getline(buf, 5))})
252 …call WaitForAssert({-> assert_equal('Press ENTER or type command to continue', term_getline(buf, 6…
254 call term_sendkeys(buf, ":%p#\n")
255 call WaitForAssert({-> assert_equal(' 5 5', term_getline(buf, 5))})
256 call WaitForAssert({-> assert_equal('-- More --', term_getline(buf, 6))})
259 call term_sendkeys(buf, 'q')
260 call WaitForAssert({-> assert_equal('100', term_getline(buf, 5))})
263 call term_sendkeys(buf, ":%p#\n")
264 call term_wait(buf)
265 call WaitForAssert({-> assert_equal('-- More --', term_getline(buf, 6))})
266 call term_sendkeys(buf, ":")
267 call term_wait(buf)
268 call WaitForAssert({-> assert_equal(':', term_getline(buf, 6))})
269 call term_sendkeys(buf, "echo 'Hello'\n")
270 call term_wait(buf)
271 call WaitForAssert({-> assert_equal('Hello ', term_getline(buf, 5))})
273 call StopVimInTerminal(buf)
278 let buf = RunVimInTerminal('', {'rows': 6})
279 call term_sendkeys(buf, ":call setline(1, range(1, 2))\n")
281 call term_sendkeys(buf, ":2,1s/^/n/\n")
282 …call WaitForAssert({-> assert_equal('Backwards range given, OK to swap (y/n)?', term_getline(buf, …
283 call term_sendkeys(buf, "n")
284 …t({-> assert_match('^Backwards range given, OK to swap (y/n)?n *1,1 *All$', term_getline(buf, 6))})
285 call WaitForAssert({-> assert_equal('1', term_getline(buf, 1))})
287 call term_sendkeys(buf, ":2,1s/^/Esc/\n")
288 …call WaitForAssert({-> assert_equal('Backwards range given, OK to swap (y/n)?', term_getline(buf, …
289 call term_sendkeys(buf, "\<Esc>")
290 …t({-> assert_match('^Backwards range given, OK to swap (y/n)?n *1,1 *All$', term_getline(buf, 6))})
291 call WaitForAssert({-> assert_equal('1', term_getline(buf, 1))})
293 call term_sendkeys(buf, ":2,1s/^/y/\n")
294 …call WaitForAssert({-> assert_equal('Backwards range given, OK to swap (y/n)?', term_getline(buf, …
295 call term_sendkeys(buf, "y")
296 …t({-> assert_match('^Backwards range given, OK to swap (y/n)?y *2,1 *All$', term_getline(buf, 6))})
297 call WaitForAssert({-> assert_equal('y1', term_getline(buf, 1))})
298 call WaitForAssert({-> assert_equal('y2', term_getline(buf, 2))})
300 call StopVimInTerminal(buf)
331 let buf = RunVimInTerminal('-S Xtest_quit_message', #{rows: 6})
332 call term_sendkeys(buf, "q")
333 call VerifyScreenDump(buf, 'Test_quit_long_message', {})
336 call StopVimInTerminal(buf)