blob: 4643a55a717cfcae95587f24d388429fa30f09c8 [file] [log] [blame]
Bram Moolenaardbd24b52015-08-11 14:26:19 +02001Test for character searches
2
3STARTTEST
4:so small.vim
5:" check that "fe" and ";" work
6/^X
7ylfep;;p,,p:
8:" check that save/restore works
9/^Y
10ylfep:let csave = getcharsearch()
11fip:call setcharsearch(csave)
12;p;p:
Bram Moolenaar022b8962016-01-03 22:16:20 +010013:" check that setcharsearch() changes the settings.
Bram Moolenaardbd24b52015-08-11 14:26:19 +020014/^Z
15ylfep:call setcharsearch({'char': 'k'})
16;p:call setcharsearch({'forward': 0})
Bram Moolenaar66312822016-02-20 15:10:50 +010017$;p:call setcharsearch({'until': 1})
18:set cpo-=;
Bram Moolenaardbd24b52015-08-11 14:26:19 +020019;;p:
20:/^X/,$w! test.out
21:qa!
22ENDTEST
23
24Xabcdefghijkemnopqretuvwxyz
25Yabcdefghijkemnopqretuvwxyz
26Zabcdefghijkemnokqretkvwxyz