Mercurial > vim
view src/testdir/test_charsearch.in @ 7210:08b50e436093 v7.4.914
commit https://github.com/vim/vim/commit/98b30a473a58ae98c280e0383c8b1e08c0ebced5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 10 15:18:02 2015 +0100
patch 7.4.914
Problem: New compiler warning: logical-not-parentheses
Solution: Silence the warning.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 10 Nov 2015 15:30:05 +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