Home
last modified time | relevance | path

Searched refs:getline (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/vim-8.2.3635/src/testdir/
H A Dtest_digraph.vim18 call assert_equal("∞", getline('.'))
21 call assert_equal("l", getline('.'))
23 call assert_equal("þ", getline('.'))
227 call assert_equal("∞", getline('.'))
230 call assert_equal("l", getline('.'))
232 call assert_equal("þ", getline('.'))
461 call assert_equal("|'é+ěščřžýáíé'", getline('.'))
522 call assert_equal('あ', getline('$'))
525 call assert_equal('い', getline('$'))
528 call assert_equal('う', getline('$'))
[all …]
H A Dtest_increment.vim377 call assert_equal("029", getline(1))
385 call assert_equal("1309", getline(1))
735 call assert_equal("001", getline(1))
739 call assert_equal("001", getline(1))
743 call assert_equal("002", getline(1))
747 call assert_equal("002", getline(1))
805 call assert_equal('0', getline(1))
809 call assert_equal('0', getline(1))
813 call assert_equal("-0", getline(1))
817 call assert_equal('-3', getline(1))
[all …]
H A Dtest_virtualedit.vim39 call assert_equal('123456', getline(2))
82 call assert_equal('x', getline(1))
111 call assert_equal("axyz\tb", getline(1))
117 call assert_equal("a\txyzb", getline(1))
138 call assert_equal("axyz\tb", getline(1))
144 call assert_equal("a\txyzb", getline(1))
165 call assert_equal("axyz\tb", getline(1))
270 call assert_equal("'A'x", getline(4))
358 call assert_equal(', foo', getline(1))
398 call assert_equal('ab', getline(1))
[all …]
H A Dtest_normal.vim15 let line = getline(ln)
16 if getline(ln) =~# '\d\s\+$'
2714 let a=getline(1)
2948 call assert_equal('', getline(1))
3313 call assert_equal('', getline(1))
3317 call assert_equal('', getline(1))
3446 \ getline(1, '$'))
3455 \ getline(1, '$'))
3471 \ getline(1, '$'))
3474 \ getline(1, '$'))
[all …]
H A Dtest_paste.vim18 call assert_equal('foo', getline(2))
19 call assert_equal('barb', getline(3))
20 call assert_equal('c', getline(4))
25 call assert_equal('barb', getline(4))
26 call assert_equal('c', getline(5))
35 call assert_equal('c', getline(4))
42 call assert_equal('bar', getline(3))
43 call assert_equal('c', getline(4))
53 call assert_equal('c', getline(4))
58 call assert_equal('c', getline(5))
[all …]
H A Dtest_help_tagjump.vim6 call assert_true(getline('.') =~ '\*help.txt\*')
11 call assert_true(getline('.') =~ '\*bar\*')
16 call assert_true(getline('.') =~ '\*quote\*')
21 call assert_true(getline('.') =~ '\*star\*')
31 call assert_true(getline('.') =~ '\*:smile\*')
36 call assert_true(getline('.') =~ '\*??\*')
41 call assert_true(getline('.') =~ '\*:?\*')
46 call assert_true(getline('.') =~ '\*q?\*')
52 call assert_true(getline('.') =~ '\*-?\*')
57 call assert_true(getline('.') =~ '\*v_g?\*')
[all …]
H A Dtest_undo.vim101 call assert_equal('7', getline('$'))
224 call assert_equal('', getline(1))
359 call assert_equal('', getline(1))
411 call assert_equal('x', getline(1))
455 call assert_equal('', getline(1))
460 call assert_equal('3', getline(1))
466 call assert_equal('', getline(1))
471 call assert_equal('2', getline(1))
477 call assert_equal('', getline(1))
482 call assert_equal('1', getline(1))
[all …]
H A Dtest_visual.vim12 call assert_equal('x ヹxxx', getline(1))
13 call assert_equal(' ヹxxx', getline(2))
212 \ ], getline(1, 6))
221 \ 'uvwxyz'], getline(7, 11))
261 \ ], getline(1, 6))
270 \ 'ijkl'], getline(1, '$'))
279 \ 'ijkl'], getline(1, '$'))
291 \ ''], getline(1, '$'))
470 \ "\t}"], getline(1, '$'))
935 \ getline(1, 4))
[all …]
H A Dtest_gn.vim16 call assert_equal('searchmatch', getline('.'))
23 call assert_equal(['','eins','zwei'], getline(1,'$'))
37 call assert_equal(['join lines'], getline(1,'$'))
81 call assert_equal(['',''], getline(1,'$'))
110 call assert_equal(['foo baz'], getline(1,'$'))
135 call assert_equal(['ABCDEFGHi'], getline(1,'$'))
140 call assert_equal(['aBCDEFGHi'], getline(1,'$'))
145 call assert_equal(['ABCDEFghi'], getline(1,'$'))
150 call assert_equal(['12348'], getline(1,'$'))
155 call assert_equal(['1678'], getline(1,'$'))
[all …]
H A Dtest_edit.vim31 call assert_equal([''], getline(1,'$'))
34 call assert_equal([''], getline(1,'$'))
39 call assert_equal([''], getline(1,'$'))
44 call assert_equal([''], getline(1,'$'))
309 if empty(getline(v:lnum))
310 if getline(pline) =~ 'if\|then'
400 call assert_equal("", getline(2))
902 let line = getline('.')
1536 call assert_equal('foo', getline(1))
1603 call assert_equal('', getline(1))
[all …]
H A Dtest_find_complete.vim48 call assert_equal('Holy Grail', getline(1))
50 call assert_equal('Jimmy Hoffa', getline(1))
52 call assert_equal('E.T.', getline(1))
58 call assert_equal('Holy Grail', getline(1))
62 call assert_equal('E.T.', getline(1))
69 call assert_equal('Holy Grail', getline(1))
73 call assert_equal('E.T.', getline(1))
91 call assert_equal('E.T.', getline(1))
112 call assert_equal('Voyager 1', getline(1))
114 call assert_equal('Voyager 2', getline(1))
[all …]
H A Dtest_selectmode.vim16 call assert_equal('y51', getline('.'))
20 call assert_equal('y60', getline('.'))
24 call assert_equal('c51', getline('.'))
40 call assert_equal('abctdef', getline(1))
43 call assert_equal('roabctdef', getline(1))
84 call assert_equal('ef', getline(1))
89 call assert_equal('mef', getline(1))
142 call assert_equal('map line', getline(1))
146 call assert_equal('abc line', getline(1))
150 call assert_equal('foo line', getline(1))
[all …]
H A Dtest_tab.vim30 call assert_equal(" a cde", getline('.'))
33 call assert_equal(" \t\thi", getline('.'))
39 call assert_equal(' x', getline('.'))
52 call assert_equal("x\tx", getline(1))
57 call assert_equal("x x", getline(1))
62 call assert_equal("x x", getline(1))
67 call assert_equal("x x", getline(1))
72 call assert_equal("x x", getline(1))
77 call assert_equal("x x", getline(1))
82 call assert_equal("\tx", getline(1))
[all …]
H A Dtest_popup.vim46 call assert_equal(["Ju"], getline(1,2))
117 call assert_equal([""], getline(1,2))
142 call assert_equal([""], getline(1,2))
238 call assert_equal('', getline(1))
242 call assert_equal('', getline(1))
297 call assert_equal('z', getline(1))
453 call assert_equal('', getline(2))
563 call assert_equal('', getline(1))
579 call assert_equal('a', getline(1))
581 call assert_equal('', getline(1))
[all …]
H A Dtest_comments.vim19 call assert_equal(expected, getline(1, '$'))
38 call assert_equal(expected, getline(1, '$'))
65 call assert_equal(["\t/*", " *", " */"], getline(1, '$'))
99 call assert_equal(expected, getline(1, '$'))
114 call assert_equal(expected, getline(1, '$'))
185 call assert_equal(expected, getline(1, '$'))
207 call assert_equal(expected, getline(1, '$'))
229 call assert_equal(['', 'one', ''], getline(1, '$'))
234 call assert_equal(['one two', ''], getline(1, '$'))
238 call assert_equal(['one', 'two', ''], getline(1, '$'))
[all …]
H A Dtest_filechanged.vim20 call assert_equal('extra line', getline(2))
33 call assert_equal('extra line', getline(2))
42 call assert_equal('new line', getline(1))
50 call assert_equal('new line', getline(1))
59 call assert_equal('new line', getline(1))
110 call assert_equal('extra line', getline(2))
117 call assert_equal('extra line', getline(2))
127 call assert_equal('new line', getline(1))
135 call assert_equal('new line', getline(1))
144 call assert_equal('new line', getline(1))
[all …]
H A Dtest_textformat.vim19 \ 'b'], getline(lnum - 1, lnum))
37 \ 'b'], getline(lnum - 4, lnum))
70 \ '#a b'], getline(lnum - 4, lnum))
167 \ '# foobar'], getline(1, 2))
226 \ ], getline(1, '$'))
251 \ ], getline(1, '$'))
424 \ ], getline(1, '$'))
478 \ ], getline(1, '$'))
503 \ ], getline(1, '$'))
1009 \ getline(1, '$'))
[all …]
H A Dtest_textobjects.vim99 call assert_equal('foo', getline('.'), e)
150 call assert_equal('--', getline('.'), e)
198 call assert_equal('<div>xxx</div>', getline(1))
202 call assert_equal('<div>yyy</div>', getline(1))
206 call assert_equal('aaa', getline(1))
395 call assert_equal('foo', getline(1))
399 call assert_equal('foo', getline(2))
463 \ getline(1,'$'))
485 call assert_equal([' '], getline(1,'$'))
502 call assert_equal([' '], getline(1,'$'))
[all …]
H A Dtest_vartabs.vim21 call assert_equal(expect, getline(1))
27 call assert_equal(expect, getline(1))
34 call assert_equal(expect, getline(1))
39 call assert_equal(expect, getline(1))
46 call assert_equal(expect, getline(1))
52 call assert_equal(expect, getline(1))
58 call assert_equal(expect, getline(1))
64 call assert_equal(expect, getline(1))
71 call assert_equal(expect, getline(1))
78 call assert_equal(expect, getline(1))
[all …]
H A Dtest_mapping.vim12 call assert_equal('vim ', getline('$'))
103 call assert_equal('b', getline('.'))
105 call assert_equal('a', getline('.'))
111 call assert_equal('c', getline('.'))
117 call assert_equal('a', getline('.'))
142 call assert_equal('+', getline('$'))
145 call assert_equal('+', getline('$'))
167 call assert_equal('+', getline('$'))
254 call assert_equal("bar ", getline(1))
267 let g:line = getline(1)
[all …]
/vim-8.2.3635/runtime/autoload/dist/
H A Dft.vim14 if getline(1) =~ '^\*'
60 let head = " ".getline(1)." ".getline(2)." ".getline(3)." ".getline(4).
61 \" ".getline(5)." "
73 …if getline(1).getline(2).getline(3).getline(4).getline(5) =~? 'VB_Name\|Begin VB\.\(Form\|MDIForm\…
89 …if getline(1).getline(2).getline(3).getline(4) =~ '^; <<>> DiG [0-9.]\+.* <<>>\|$ORIGIN\|$TTL\|IN\…
138 if lnum == 1 && (getline(1)[0] == '#' || getline(1)[0] == '!')
259 if getline(2) =~ '.;$'
341 if getline(1)[0] . getline(2)[0] . getline(3)[0] . getline(4)[0] . getline(5)[0] =~ '\.'
380 let lines = getline(1).getline(2).getline(3)
407 if getline(1) =~ '&ANALYZE' || getline(3) =~ '&GLOBAL-DEFINE'
[all …]
/vim-8.2.3635/runtime/indent/
H A Djava.vim42 if getline(lnum) =~ '\*/\s*$'
43 while getline(lnum) !~ '/\*' && lnum > 1
46 if getline(lnum) =~ '^\s*/\*'
51 elseif getline(lnum) =~ '^\s*//'
67 if getline(v:lnum) =~ '^\s*\*'
76 if getline(lnum) =~ '^\s*@.*$'
83 if getline(next_prev) !~ ',\s*$'
97 let cont_kw = matchstr(getline(prev),
101 if getline(lnum) !~ ',\s*$'
113 \ && (getline(prev) =~ '{\s*$'
[all …]
H A Dr.vim120 let line = SanitizeRLine(getline(a:linenr))
154 let line = SanitizeRLine(getline(i))
189 let data = getline( lnum )
192 let data = getline( lnum )
214 let cline = getline(clnum)
253 let line = SanitizeRLine(getline(lnum))
349 let line = SanitizeRLine(getline(lnum))
360 let oline = getline(olnum)
495 let pline = getline(plnum)
501 let pline = getline(plnum)
[all …]
H A Dsdl.vim40 if getline(lnum) =~ '^\s*\*'
43 if getline(v:lnum) =~ '^\s*\*'
49 \ || getline(lnum) =~? virtuality . '\(process\|procedure\|block\|object\)')
50 \ && getline(lnum) !~? 'end[[:alpha:]]\+;$'
55 if getline(lnum) =~? '^\s*\(stop\|return\>\|nextstate\)'
60 if getline(v:lnum) =~? '^\s*end\>'
65 if getline(v:lnum) =~? '^\s*\((.*)\|else\):'
72 if getline(v:lnum) =~? '^\s*state\>'
77 if getline(v:lnum) =~? '^\s*\(\(end\)\=system\|\(end\)\=package\)'
82 if getline(v:lnum) =~? '^\s*end[[:alpha:]]'
[all …]
H A Deiffel.vim60 if getline(lnum) =~ s:trust_user_indent
66 if getline(lnum) =~ s:relative_indent
71 if getline(v:lnum) =~ s:single_dent && getline(v:lnum) !~ s:relative_indent
72 \ && getline(v:lnum) !~ '\s*\<\(and\|or\|implies\)\>'
77 if getline(v:lnum) =~ s:inheritance_dent
82 if getline(lnum) =~ s:single_dent
87 if getline(v:lnum) =~ s:no_indent
93 if getline(v:lnum) =~ s:outdent && getline(v:lnum - 1) !~ s:single_dent
94 \ && getline(v:lnum - 1) !~ '^\s*do\>'
99 if getline(v:lnum) =~ '^\s*end\>'
[all …]

12345678910>>...15