Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 915) sorted by relevance

12345678910>>...37

/vim-8.2.3635/src/testdir/
H A Dtest_digraph.vim27 call assert_equal(["ば","ば"], getline(line('.')-1,line('.')))
43 call assert_equal(["<BS>", "<BS>a"], getline(line('.')-1,line('.')))
48 call assert_equal(["à", "è", "!"], getline(line('.')-2,line('.')))
53 call assert_equal(["á", "é", "'"], getline(line('.')-2,line('.')))
58 call assert_equal(['â', 'ê', '>'], getline(line('.')-2,line('.')))
63 call assert_equal(['õ', 'u', '~'], getline(line('.')-2,line('.')))
192 call assert_equal(["ß", "˜"], getline(line('.')-1,line('.')))
196 call assert_equal(['á', 'Á'], getline(line('.')-1,line('.')))
200 call assert_equal(['', 'A'], getline(line('.')-1,line('.')))
236 call assert_equal(["ば","ば"], getline(line('.')-1,line('.')))
[all …]
H A Dtest_scrollbind.vim4 " We don't want the status line to cause problems:
17 call setline(i, 'line ' . i)
26 let topLineLeft = line('w0')
28 let topLineRight = line('w0')
46 . line 01 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 01
47 . line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02
48 . line 03 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 03
49 . line 04 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 04
50 . line 05 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05
51 . line 06 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06
[all …]
H A Dtest_debugger.vim125 \ 'line 4:',
145 \ 'line 3:',
256 \ 'line 5: catch'])
264 \ 'line 5:',
288 \ 'line 3: return var2'])
298 \ 'line 5: catch'])
313 \ 'line 3: return var2'])
851 \ '->0 command line',
858 \ ' 1 command line',
1245 \ '\V 2 command line',
[all …]
H A Dtest_move.vim5 call append(0, ['line 1', 'line 2', 'line 3'])
10 call assert_equal(['line 1', 'line 2', 'line 3'], getline(1, 3))
14 call assert_equal(['line 1', 'line 2', 'line 3'], getline(1, 3))
18 call assert_equal(['line 1', 'line 2', 'line 3'], getline(1, 3))
22 call assert_equal(['line 2', 'line 1', 'line 3'], getline(1, 3))
27 call assert_equal(['line 3', 'line 2', 'line 1'], getline(1, 3))
32 call assert_equal(['line 2', 'line 1', 'line 3'], getline(1, 3))
H A Dtest_filechanged.vim19 call assert_equal(2, line('$'))
32 call assert_equal(2, line('$'))
41 call assert_equal(1, line('$'))
49 call assert_equal(1, line('$'))
58 call assert_equal(1, line('$'))
73 call assert_equal(3, line('$'))
108 call assert_equal(2, line('$'))
116 call assert_equal(2, line('$'))
126 call assert_equal(1, line('$'))
134 call assert_equal(1, line('$'))
[all …]
/vim-8.2.3635/runtime/indent/
H A Dr.vim42 …while !(a:line[i] == '"' && ((i > 1 && a:line[i-1] == '\' && a:line[i-2] == '\') || a:line[i-1] !=…
52 …while !(a:line[i] == "'" && ((i > 1 && a:line[i-1] == '\' && a:line[i-2] == '\') || a:line[i-1] !=…
122 let line = substitute(line, '{$', "", "")
138 let line = substitute(line, "if", "", "g")
212 let clnum = line(".") " current line
259 …if line =~ '^\\examples{' || line =~ '^\\usage{' || line =~ '^\\dontshow{' || line =~ '^\\dontrun{…
286 …if line =~ '\<\(if\|while\|for\|function\)\s*()$' || line =~ '\<else$' || line =~ '<-$' || line =~…
294 if line =~ '^\s*{$' || line =~ '(\s*{' || (pb == 0 && (line =~ '{$' || line =~ '(\s*{$'))
382 let line = linepiece . line
418 let line = linepiece . line
[all …]
H A Dsh.vim79 let line = getline(lnum)
102 elseif s:is_array(line) && line !~ ')\s*$' && (&ft is# 'zsh' || s:is_bash())
111 elseif s:end_block(line) && !s:start_block(line)
130 let pine = line
132 let line = curline
133 " Current line is a endif line, so get indent from start of "if condition" line
176 if a:line =~ '^\s*#'
179 " start-of-line
238 function! s:is_case(line) argument
255 return s:is_case_break(a:line) || a:line =~ ';[;&]\s*\%(#.*\)\=$'
[all …]
H A Dada.vim80 if line !~ '^\s*$' && line !~ '^\s*#'
122 let line = getline(lnum)
123 let line = substitute( line, g:ada#Comment, '', '' )
124 if line !~ '^\s*$'
152 if line !~ '^\s*$' && line !~ '^\s*#'
162 if line =~ s:AdaBlockStart || line =~ '(\s*$'
182 " Find a non-blank line above the current line.
190 if line !~ '^\s*$' && line !~ '^\s*#'
204 if line =~ s:AdaBlockStart || line =~ '(\s*$'
210 elseif line =~ ')\s*;\s*$' || line =~ '^\([^(]*([^)]*)\)*[^(]*;\s*$'
[all …]
H A Dawk.vim70 " line
76 " If this line starts with an open brace bail out now before the line
84 " 1. Prev line is first line of a multiline statement
87 " 2. Prev line is not first line of a multiline statement
107 " If the previous line doesn't need continuation on the current line we are
116 " take indent of that line
172 " align a line relative to the 'print ' or 'if (' on the previous line in case
186 " Determine if 'line' completes a statement or is continued on the next line.
192 if a:line =~ '\(--\|++\)\s*$'
199 if a:line =~ '^\s*\(if\|while\|for\)\s*(.*)\s*$' || a:line =~ '^\s*else\s*'
[all …]
H A Dtypescript.vim103 let line = getline(lnum)
104 if line =~ '/\*'
126 " If we have a continuation line, or we're in a string, use line as MSL.
236 let line = getline(lnum)
273 " if the current line is in a one line scope ..
300 " Get the current line.
348 if (line =~ s:ternary)
370 " If the line is empty and the previous nonblank line was a multi-line
377 " Find a non-blank, non-multi-line string line above the current line.
380 " If the line is empty and inside a string, use the previous line.
[all …]
H A Dfalcon.vim98 let line = getline(lnum)
99 if line =~ '^=begin'
123 " If we have a continuation line, or we're in a string, use line as MSL.
125 let line = getline(lnum)
200 if line[pos] == '('
259 let line = strpart(line, 0, col)
304 let line = getline(line('.'))
323 " Find a non-blank, non-multi-line string line above the current line.
326 " If the line is empty and inside a string, use the previous line.
347 if line =~ '[[({]' || line =~ '[])}]\s*\%(#.*\)\=$'
[all …]
H A Docaml.vim92 " Find a non-commented line above the current line.
108 let line = getline(v:lnum)
111 if line =~ '^\s*end\>'
127 elseif line =~ '^\s*)'
131 elseif line =~ '^\s*let\>'
143 elseif line =~ '^\s*|'
150 elseif line =~ '^\s*;;'
156 elseif line =~ '^\s*in\>'
174 elseif line =~ '^\s*and\>'
189 call search(line)
[all …]
H A Dmp.vim105 let q = stridx(a:line, '"')
106 let c = stridx(a:line, '%')
121 " Find the first non-comment non-blank line before the current line.
132 function! s:LastTagIsOpen(line) argument
139 " a line should cause the next line to be indented: count the "opening tags"
142 " "weight" of the line. If the weight is positive, then the next line should
158 function! s:Weight(line) argument
174 " line: a String
189 if !s:CommentOrString(a:line, i)
248 " This is the reference line relative to which the current line is indented
[all …]
H A Dtcl.vim25 let line = getline(lnum)
26 if line !~ '^\s*\(#\|$\)'
35 let line = getline(a:lnum)
36 if line =~ '\\\s*$'
46 let line = getline(a:lnum)
51 if line[i] == '{'
53 elseif line[i] == '}'
69 " Get the line number of the previous non-blank or non-comment line.
75 " ..and the previous line before the previous line.
89 " If the previous line begins a line continuation.
[all …]
H A Dscala.vim41 let line = substitute(line, '"\(.\|\\"\)\{-}"', '""', 'g')
42 return line
46 let line = substitute(a:line, '"\(.\|\\"\)\{-}"', '', 'g')
61 if a:line =~ '[.,]\s*$'
159 let line = substitute(a:line, '[^()]', '', 'g')
160 if strlen(line) == 0
163 let line = substitute(line, '^)*', '', 'g')
164 if strlen(line) == 0
167 let line = substitute(line, '^(', '', 'g')
168 if strlen(line) == 0
[all …]
H A Djsonc.vim51 let line = getline(lnum)
65 let line = getline(a:lnum)
66 let pos = match(line, '[][(){}]', 0)
98 " 3.2. Work on the current line {{{2
102 " Get the current line.
103 let line = getline(v:lnum)
107 let col = matchend(line, '\/\*')
114 let col = matchend(line, '\*\/')
120 if line =~ '^\s*//'
160 let line = getline(lnum)
[all …]
H A Drhelp.vim28 function s:SanitizeRHelpLine(line) argument
40 let clnum = line(".") " current line
66 let line = getline(lnum)
67 if line =~ '^\s*#ifdef\>' || line =~ '^\s*#endif\>'
69 let line = getline(lnum)
71 while lnum > 1 && (line =~ '^\s*$' || line =~ '^#ifdef' || line =~ '^#endif')
73 let line = getline(lnum)
78 let line = s:SanitizeRHelpLine(line)
79 let line2 = substitute(line, "{", "", "g")
80 let openb = strlen(line) - strlen(line2)
[all …]
H A Dtf.vim23 " Find a non-blank line above the current line:
32 let line = getline(lnum)
36 if line !~ '\\$'
43 if line !~ '/endif'
46 elseif line =~ '/while'
47 if line !~ '/done'
52 let line = getline(v:lnum)
55 if line !~ '/if'
58 elseif line =~ '/done'
59 if line !~ '/while'
[all …]
H A Dsqlanywhere.vim87 let l = a:line
89 let l = a:line
110 let line = getline(lnum)
250 " Find correct indent of a new line based upon the previous line
286 " This is the line you just hit return on, it is not the current line
289 " line
343 let line = getline(v:lnum)
345 if line =~? '^\s*els'
365 elseif line =~ '^\s*)'
379 " elseif strpart( line, strlen(line)-1, 1 ) =~ ')'
[all …]
H A Druby.vim233 " Previous line number
367 let line = getline(line('.'))
400 " If we are in a multi-line string or line-comment, don't do anything to it.
430 " If the line is empty and inside a string (the previous line is a string,
597 let n = line('.')
737 let line = getline(lnum)
738 if line =~ '^=begin'
761 " If we have a continuation line, or we're in a string, use line as MSL.
763 let line = getline(lnum)
865 let line = getline(a:lnum)
[all …]
/vim-8.2.3635/src/libvterm/t/
H A Drun-test.pl73 my ( $line ) = @_;
75 if( $line =~ m/^!(.*)/ ) {
91 $command = $line;
129 push @expect, $line;
135 my $want = eval($line);
158 my $expectation = $line;
196 while( my $line = <$test> ) {
198 $line =~ s/^\s+//;
199 chomp $line;
202 last if $line eq "__END__";
[all …]
H A Dharness.c525 char line[1024] = {0}; in main() local
532 while(fgets(line, sizeof line, stdin)) { in main()
552 else if(strstartswith(line, "WANTSTATE") && (line[9] == '\0' || line[9] == ' ')) { in main()
562 while(line[i] == ' ') in main()
564 for( ; line[i]; i++) in main()
565 switch(line[i]) { in main()
595 else if(strstartswith(line, "WANTSCREEN") && (line[10] == '\0' || line[10] == ' ')) { in main()
602 while(line[i] == ' ') in main()
604 for( ; line[i]; i++) in main()
605 switch(line[i]) { in main()
[all …]
/vim-8.2.3635/src/
H A Dtermlib.c411 line = col; in tgoto()
415 line = col; in tgoto()
419 line = col; in tgoto()
425 if (line>gx) line += gy; in tgoto()
440 *bufp++=line; in tgoto()
441 line = col; in tgoto()
444 gx = line; in tgoto()
445 line = col; in tgoto()
451 line++; in tgoto()
461 line = line/10<<4+line%10; in tgoto()
[all …]
/vim-8.2.3635/src/po/
H A Dcheck.vim14 while line('.') < line('$')
17 if line[0] != '"'
48 let lnum = line('.')
65 echomsg 'Mismatching % in line ' . (line('.') - 1)
79 echomsg 'Missing "msgstr" in line ' . line('.')
81 let error = line('.')
89 echomsg 'Mismatching % in line ' . (line('.') - 1)
96 if line('.') == line('$')
120 echomsg 'Mismatching error/warning code in line ' . line('.')
152 echomsg 'Mismatching "\n" in line ' . line('.')
[all …]
/vim-8.2.3635/runtime/autoload/dist/
H A Dft.vim18 if line("$") > 500
21 let nmax = line("$")
289 if line =~ '^\s*\%(#\|%!\)' || line =~ '^\s*unwind_protect\>' ||
295 if line =~ '^\s*%'
325 if line =~ '^\s*\(%\|//\)' || line =~ '^\*'
424 if line =~ '^\s*;' || line =~ '^\*'
427 elseif line !~ '^\s*$' || line =~ '^/\*'
451 if line =~ s:ft_pascal_comments || line =~? s:ft_pascal_keywords
454 elseif line !~ '^\s*$' || line =~ '^/\*'
469 if line =~ s:ft_pascal_comments || line =~? s:ft_pascal_keywords
[all …]

12345678910>>...37