Mercurial > vim
annotate src/testdir/test_charsearch.in @ 7996:996b03ef584a
Added tag v7.4.1292 for changeset d244f2e46d69937fd6bf7dce9cd57ab210aa597f
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 08 Feb 2016 23:00:05 +0100 |
parents | dbfa0f9ab289 |
children | efbb9916290c |
rev | line source |
---|---|
6991 | 1 Test for character searches |
2 | |
3 STARTTEST | |
4 :so small.vim | |
5 :" check that "fe" and ";" work | |
6 /^X | |
7 ylfep;;p,,p: | |
8 :" check that save/restore works | |
9 /^Y | |
10 ylfep:let csave = getcharsearch() | |
11 fip:call setcharsearch(csave) | |
12 ;p;p: | |
7478
dbfa0f9ab289
commit https://github.com/vim/vim/commit/022b896592721838e387e99fd785d3ded7b68be7
Christian Brabandt <cb@256bit.org>
parents:
6991
diff
changeset
|
13 :" check that setcharsearch() changes the settings. |
6991 | 14 /^Z |
15 ylfep:call setcharsearch({'char': 'k'}) | |
16 ;p:call setcharsearch({'forward': 0}) | |
17 $;p:call setcharseearch({'until'}: 1}) | |
18 ;;p: | |
19 :/^X/,$w! test.out | |
20 :qa! | |
21 ENDTEST | |
22 | |
23 Xabcdefghijkemnopqretuvwxyz | |
24 Yabcdefghijkemnopqretuvwxyz | |
25 Zabcdefghijkemnokqretkvwxyz |