Mercurial > vim
annotate src/testdir/test_charsearch.in @ 9696:103e79a0ad8d v7.4.2124
commit https://github.com/vim/vim/commit/623cf88f9c5ad49cce8e846af29a1bb9346c7481
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jul 30 16:36:01 2016 +0200
patch 7.4.2124
Problem: diffmode test leaves files behind, breaking another test.
Solution: Delete the files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 30 Jul 2016 16:45:05 +0200 |
parents | efbb9916290c |
children |
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}) | |
8144
efbb9916290c
commit https://github.com/vim/vim/commit/663128270e6ea6b529c45ceee4b369734b8b2fdb
Christian Brabandt <cb@256bit.org>
parents:
7478
diff
changeset
|
17 $;p:call setcharsearch({'until': 1}) |
efbb9916290c
commit https://github.com/vim/vim/commit/663128270e6ea6b529c45ceee4b369734b8b2fdb
Christian Brabandt <cb@256bit.org>
parents:
7478
diff
changeset
|
18 :set cpo-=; |
6991 | 19 ;;p: |
20 :/^X/,$w! test.out | |
21 :qa! | |
22 ENDTEST | |
23 | |
24 Xabcdefghijkemnopqretuvwxyz | |
25 Yabcdefghijkemnopqretuvwxyz | |
26 Zabcdefghijkemnokqretkvwxyz |