Lines Matching refs:C
119 call setline(1, "abc\tdef\<C-h>ghi")
155 call setline(1, ["foo\tbar", "bar\<C-H>foo"])
158 call assert_equal(["foo\tbarbar\<C-H>foo"], getline(1, '$'))
161 call setline(1, ["foo\tbar", "bar\<C-H>foo"])
164 call assert_equal(["foo\tbarbar\<C-H>foo"], getline(1, '$'))
167 call setline(1, ["foo\tbar", "bar\<C-H>foo"])
170 call assert_equal(["foo\tbarbar\<C-H>foo"], getline(1, '$'))
173 call setline(1, ["foo\tbar", "bar\<C-H>foo"])
176 call assert_equal(["foo\tbarbar\<C-H>foo"], getline(1, '$'))
179 call setline(1, ["foo\tbar", "bar\<C-H>foo"])
182 call assert_equal(["foo\tbarbar\<C-H>foo"], getline(1, '$'))
262 …call assert_equal('C123456789987654321', substitute('C123456789', 'C\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)…
271 call assert_equal("l\<C-V>\<C-M>l",
272 \ substitute('lLl', 'L', "\<C-V>\<C-M>", ''))
273 call assert_equal("m\<C-M>m", substitute('mMm', 'M', '\r', ''))
274 call assert_equal("n\<C-V>\<C-M>n",
275 \ substitute('nNn', 'N', "\\\<C-V>\<C-M>", ''))
277 call assert_equal("p\<C-H>p", substitute('pPp', 'P', '\b', ''))
282 call assert_equal("v\<C-H>v", substitute('vVv', 'V', "\b", ''))
284 call assert_equal("x\<C-M>x", substitute('xXx', 'X', "\r", ''))
298 …call assert_equal('C123456789987654321', substitute('C123456789', 'C\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)…
307 call assert_equal("l\<C-V>\<C-M>l",
308 \ substitute('lLl', 'L', "\<C-V>\<C-M>", ''))
309 call assert_equal("m\<C-M>m", substitute('mMm', 'M', '\r', ''))
310 call assert_equal("n\<C-V>\<C-M>n",
311 \ substitute('nNn', 'N', "\\\<C-V>\<C-M>", ''))
313 call assert_equal("p\<C-H>p", substitute('pPp', 'P', '\b', ''))
317 call assert_equal("t\<C-M>t", substitute('tTt', 'T', "\r", ''))
319 call assert_equal("v\<C-H>v", substitute('vVv', 'V', "\b", ''))
330 call assert_equal("c\rc", substitute('cCc', 'C', "\\=\"\r\"", ''))
335 call assert_equal("k\<C-M>k", substitute('kKk', 'K', '\="\r"', ''))
347 …call assert_equal("c\<C-V>\<C-M>c", substitute('cCc', 'C', '\=substitute(submatch(0), ".", "\<C-V>…
348 …call assert_equal("d\<C-V>\<C-M>d", substitute('dDd', 'D', '\=substitute(submatch(0), ".", "\\\<C-…
349 …call assert_equal("e\\\<C-V>\<C-M>e", substitute('eEe', 'E', '\=substitute(submatch(0), ".", "\\\\…
350 …call assert_equal("f\<C-M>f", substitute('fFf', 'F', '\=substitute(submatch(0), ".", "\\r", "")', …
382 call assert_equal('c', substitute('C', 'C', 'c', ''))
488 …\ ['C123456789', 's/C\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)/\0\9\8\7\6\5\4\3\2\1/', ['C1234…
497 \ ['lLl', "s/L/\<C-V>\<C-M>/", ["l\<C-V>", 'l']],
499 \ ['nNn', "s/N/\\\<C-V>\<C-M>/", ["n\<C-V>", 'n']],
501 \ ['pPp', 's/P/\b/', ["p\<C-H>p"]],
505 \ ['tTt', "s/T/\<C-V>\<C-J>/", ["t\<C-V>\<C-J>t"]],
528 \ ['lLl', "s/L/\<C-V>\<C-M>/", ["l\<C-V>", 'l']],
530 \ ['nNn', "s/N/\\\<C-V>\<C-M>/", ["n\<C-V>", 'n']],
532 \ ['pPp', 's/P/\b/', ["p\<C-H>p"]],
536 \ ['tTt', "s/T/\<C-V>\<C-J>/", ["t\<C-V>\<C-J>t"]],
550 \ ['cCc', "s/C/\\='\<C-V>\<C-M>'/", ["c\<C-V>", 'c']],
551 \ ['dDd', "s/D/\\='\\\<C-V>\<C-M>'/", ["d\\\<C-V>", 'd']],
552 \ ['eEe', "s/E/\\='\\\\\<C-V>\<C-M>'/", ["e\\\\\<C-V>", 'e']],
554 \ ['gGg', "s/G/\\='\<C-V>\<C-J>'/", ["g\<C-V>", 'g']],
555 \ ['hHh', "s/H/\\='\\\<C-V>\<C-J>'/", ["h\\\<C-V>", 'h']],
556 \ ['iIi', "s/I/\\='\\\\\<C-V>\<C-J>'/", ["i\\\\\<C-V>", 'i']],
574 \ ['cCc', "s/C/\\=substitute(submatch(0), '.', '\<C-V>\<C-M>', '')/",
575 \ ["c\<C-V>", 'c']],
576 \ ['dDd', "s/D/\\=substitute(submatch(0), '.', '\\\<C-V>\<C-M>', '')/",
577 \ ["d\<C-V>", 'd']],
578 \ ['eEe', "s/E/\\=substitute(submatch(0), '.', '\\\\\<C-V>\<C-M>', '')/",
579 \ ["e\\\<C-V>", 'e']],
582 \ ['gGg', 's/G/\=substitute(submatch(0), ".", "\<C-V>\<C-J>", "")/',
583 \ ["g\<C-V>", 'g']],
584 \ ['hHh', 's/H/\=substitute(submatch(0), ".", "\\\<C-V>\<C-J>", "")/',
585 \ ["h\<C-V>", 'h']],
586 \ ['iIi', 's/I/\=substitute(submatch(0), ".", "\\\\\<C-V>\<C-J>", "")/',
587 \ ["i\\\<C-V>", 'i']],
621 let tests = [ ['C', 's/C/c/', ['c']],
635 let tests = [ ["A\<C-V>\<C-M>A", 's/A./\=submatch(0)/', ['A', 'A']],
636 \ ["B\<C-V>\<C-J>B", 's/B./\=submatch(0)/', ['B', 'B']],
637 \ ["C\<C-V>\<C-J>C", 's/C./\=strtrans(string(submatch(0, 1)))/', [strtrans("['C\<C-J>']C")]],
638 …\ ["D\<C-V>\<C-J>\nD", 's/D.\nD/\=strtrans(string(submatch(0, 1)))/', [strtrans("['D\<C-J>', 'D']"…
639 …C-V>\<C-J>\n\<C-V>\<C-J>\n\<C-V>\<C-J>\n\<C-V>\<C-J>\n\<C-V>\<C-J>E", 's/E\_.\{-}E/\=strtrans(stri…