Lines Matching refs:a

8   return [a:arg] + repeat(["\t".a:arg], 5)
77 call setline(1, ['', 'a', ' b', ' c'])
81 let a=map(range(1,4), 'foldclosed(v:val)')
82 call assert_equal([-1,-1,-1,-1], a)
92 let a=map(range(1,5), 'v:val->foldclosed()')
93 call assert_equal([-1,-1,-1,4,4], a)
135 call setline(1, repeat(["\<Tab>a"], 4))
140 call writefile(["a", "", "\<Tab>a"], 'Xfile')
158 let one = "\<Tab>a"
159 let zero = 'a'
199 let thisline = getline(a:lnum)
200 if thisline == 'a'
214 call setline(1, ['a', 'a', 'a', 'a', 'a', 'a'])
219 call writefile(['b', 'b', 'a', 'a', 'd', 'a', 'a', 'c'], 'Xfile')
235 call assert_equal(a:expected, map(range(1, line('$')), 'foldlevel(v:val)'))
240 let input = PrepIndent("a") + PrepIndent("b") + PrepIndent("c")
241 call setline(1, PrepIndent("a") + PrepIndent("b") + PrepIndent("c"))
245 " needs a forced redraw
251 call assert_equal(PrepIndent("b") + PrepIndent("a") + PrepIndent("c"), getline(1, '$'))
254 …call assert_equal(PrepIndent("a")[1:] + PrepIndent("b") + ["a"] + PrepIndent("c"), getline(1, '$'…
258 call setline(1, PrepIndent("a") + PrepIndent("b") + PrepIndent("c"))
266 call assert_equal(PrepIndent("b") + PrepIndent("a") + PrepIndent("c"), getline(1, '$'))
272 call setline(1, ["a", "\tb", "\tc", "\td", "\te"])
279 call assert_equal(["a", "\tb", "\td", "\tc", "\te"], getline(1, '$'))
282 call setline(1, ["a", "\tb", "\tc", "\td", "\te", "z", "\ty", "\tx", "\tw", "\tv"])
288 …call assert_equal(["a", "\tc", "\tb", "\td", "\te", "z", "\ty", "\tx", "\tw", "\tv"], getline(1, '…
301 call setline(1, PrepIndent("a") + repeat(["a"], 3) + ["\ta"])
313 \ "a",
318 \ "a",
319 \ "a"])
342 \ "a"])
353 let input = PrepIndent("a") + PrepIndent("b") + PrepIndent("c")
354 call setline(1, PrepIndent("a") + PrepIndent("b") + PrepIndent("c"))
361 call assert_equal(PrepIndent("b") + PrepIndent("a") + PrepIndent("c"), getline(1, '$'))
364 …call assert_equal(PrepIndent("a")[1:] + PrepIndent("b") + ["a"] + PrepIndent("c"), getline(1, '$'…
368 call setline(1, PrepIndent("a") + PrepIndent("b") + PrepIndent("c"))
374 call assert_equal(PrepIndent("b") + PrepIndent("a") + PrepIndent("c"), getline(1, '$'))
380 call setline(1, ["a", "\tb", "\tc", "\td", "\te"])
385 call assert_equal(["a", "\tb", "\td", "\tc", "\te"], getline(1, '$'))
388 call setline(1, ["a", "\tb", "\tc", "\td", "\te", "z", "\ty", "\tx", "\tw", "\tv"])
393 …call assert_equal(["a", "\tc", "\tb", "\td", "\te", "z", "\ty", "\tx", "\tw", "\tv"], getline(1, '…
405 call setline(1, PrepIndent("a") + repeat(["a"], 3) + ["\ta"])
483 " Basic test if a fold can be created, opened, moving to the end and closed
500 " Create a fold inside a closed fold after setting 'foldlevel'
523 " Create a nested fold across two non-adjoining folds
548 " Test zO, zC and zA on a line with no folds.
574 " Use only closing fold marker (without and with a count)
695 \ 'a jj',
713 " Moving a fold a few times, messes up the folds below the moved fold.
740 " Cannot catch the error caused by a foldopen when there is no fold.
743 let a = 'No error caught'
747 let a = matchstr(v:exception,'^[^ ]*')
749 call assert_equal('Vim(foldopen):E490:', a)
751 let a = 'No error caught'
755 let a = matchstr(v:exception,'^[^ ]*')
757 call assert_match('E492:', a)
852 \ '" a',
873 " Add a test for deleting the outer fold of a nested fold and promoting the
874 " inner folds to one level up with already a fold at that level following the
901 " In a window with no folds, foldlevel() should return 0
904 " Return a list from the expression
1015 call assert_equal([a:fc .. ' +-- 2 ', ' three '],
1018 call assert_equal([a:fo .. ' one ', a:fs .. ' two '],
1022 call assert_equal([a:fc .. ' +-- 2 ', ' three '],
1029 call assert_equal([a:fc .. ' +-- 4 ', ' five '],
1032 call assert_equal([a:fo .. ' one ', a:fs .. a:fc .. ' +--- 2'],
1035 call assert_equal([a:fo .. ' one ', a:fs .. a:fo .. ' two ',
1036 \ a:fs .. a:fs .. ' three '], ScreenLines([1, 3], 10))
1038 call assert_equal([a:fo .. ' one ', a:fs .. a:fc .. ' +--- 2'],
1041 call assert_equal([a:fc .. ' +-- 4 ', ' five '],
1049 call assert_equal([a:fc .. ' +-- 6 '], ScreenLines(1, 10))
1053 \ a:fo .. ' one ',
1054 \ a:fs .. a:fo .. ' two ',
1055 \ '2' .. a:fo .. ' three ',
1057 \ a:fs .. a:fs .. ' five ',
1058 \ a:fs .. ' six ',
1063 \ a:fo .. ' one ',
1064 \ a:fs .. a:fo .. ' two ',
1065 \ a:fs .. a:fs .. a:fc .. '+---- ',
1066 \ a:fs .. a:fs .. ' five ',
1067 \ a:fs .. ' six ',
1072 \ a:fo .. ' one ',
1073 \ a:fs .. a:fc .. ' +--- 4',
1074 \ a:fs .. ' six ',
1081 \ a:fo .. ' one ',
1082 \ a:fo .. ' two ',
1083 \ a:fo .. ' three',
1086 \ a:fs .. ' six ',
1093 \ a:fo .. 'one ',
1094 \ a:fo .. 'two ',
1095 \ a:fo .. 'three ',
1098 \ a:fs .. 'six ',
1108 \ a:fo .. ' 1 one ',
1109 \ a:fs .. a:fo .. ' 2 two ',
1110 \ '2' .. a:fo .. ' -> 3 three',
1112 \ a:fs .. a:fs .. ' 5 five ',
1113 \ a:fs .. ' 6 six '
1120 call assert_equal('o 1 ' .. a:fo,
1122 call assert_equal('t 2 ' .. a:fo .. a:fs,
1124 call assert_equal('t 3 >- ' .. a:fo .. '2',
1128 call assert_equal('f 5 ' .. a:fs .. a:fs,
1130 call assert_equal('s 6 ' .. a:fs,
1139 " Add a test with more than 9 folds (and then delete some folds)
1146 \ a:fo .. a:fo .. ' one ',
1151 \ a:fo .. a:fo .. ' one ',
1156 \ a:fo .. a:fo .. ' one ',
1157 \ a:fs .. a:fs .. ' two '
1175 " Use a mix of multi-byte and single-byte characters
1185 " Test for calling foldlevel() from a fold expression
1188 let f = [a:lnum]
1193 return getline(a:lnum)[0] == "\t"
1210 " Test for returning different values from a fold expression
1212 if a:lnum == 1 || a:lnum == 4
1214 elseif a:lnum == 2
1216 elseif a:lnum == 3
1243 \ foldclosed(4)])], 'Xoutput', 'a')
1292 " Fold text for a C comment fold
1315 " Test for moving a line which is the start of a fold from a recursive fold to
1319 call setline(1, ['a{{{', 'b{{{', 'c{{{', 'd}}}', 'e}}}', 'f}}}', 'g'])
1327 " Move a line from outside a fold to inside the fold.
1329 call setline(1, ['a', 'b{{{', 'c}}}'])
1336 call setline(1, ['a', 'b{{{', 'c}}}', 'd{{{', 'e}}}'])
1349 " Test for using [z and ]z in a closed fold to jump to the beginning and end
1373 " Using [z or ]z in a closed fold should not move the cursor