Mercurial > vim
view src/testdir/test_charsearch.in @ 7194:272f04b41f51 v7.4.906
commit https://github.com/vim/vim/commit/8a52ba791893fd55c5bdf98825c5b3e8892eaa62
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 2 14:45:56 2015 +0100
patch 7.4.906
Problem: On MS-Windows the viminfo file is (always) given the hidden
attribute. (raulnac)
Solution: Check the hidden attribute in a different way. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 02 Nov 2015 15:00:04 +0100 |
parents | 814f1f569e4a |
children | dbfa0f9ab289 |
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 settins. /^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