Mercurial > vim
view 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 |
line wrap: on
line source
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 setcharseearch({'until'}: 1}) ;;p: :/^X/,$w! test.out :qa! ENDTEST Xabcdefghijkemnopqretuvwxyz Yabcdefghijkemnopqretuvwxyz Zabcdefghijkemnokqretkvwxyz