Mercurial > vim
view src/testdir/test_charsearch.in @ 10017:f132b956e9b5 v7.4.2281
commit https://github.com/vim/vim/commit/0426bae2abede764d0dd366a28663d1c6e6ab0fe
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 28 16:06:05 2016 +0200
patch 7.4.2281
Problem: Timer test fails sometimes.
Solution: Reduce minimum time by 1 msec.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 28 Aug 2016 16:15:05 +0200 |
parents | efbb9916290c |
children |
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 setcharsearch({'until': 1}) :set cpo-=; ;;p: :/^X/,$w! test.out :qa! ENDTEST Xabcdefghijkemnopqretuvwxyz Yabcdefghijkemnopqretuvwxyz Zabcdefghijkemnokqretkvwxyz