forked from aniani/vim
Problem: Typo in test and resulting error in test result. Solution: Fix the typo and correct the result. (James McCoy, close #650)
27 lines
514 B
Plaintext
27 lines
514 B
Plaintext
Test for character searches
|
|
|
|
STARTTEST
|
|
:so small.vim
|
|
:" check that "fe" and ";" work
|
|
/^X
|
|
ylfep;;p,,p:
|
|
:" check that save/restore works
|
|
/^Y
|
|
ylfep:let csave = getcharsearch()
|
|
fip:call setcharsearch(csave)
|
|
;p;p:
|
|
:" check that setcharsearch() changes the settings.
|
|
/^Z
|
|
ylfep:call setcharsearch({'char': 'k'})
|
|
;p:call setcharsearch({'forward': 0})
|
|
$;p:call setcharsearch({'until': 1})
|
|
:set cpo-=;
|
|
;;p:
|
|
:/^X/,$w! test.out
|
|
:qa!
|
|
ENDTEST
|
|
|
|
Xabcdefghijkemnopqretuvwxyz
|
|
Yabcdefghijkemnopqretuvwxyz
|
|
Zabcdefghijkemnokqretkvwxyz
|