Mercurial > vim
annotate src/testdir/test_charsearch.in @ 7342:b871e4bdb319 v7.4.976
commit https://github.com/vim/vim/commit/8def26a0f5f5535e9af64e715cb80845fc8ec322
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 17 15:34:53 2015 +0100
patch 7.4.976
Problem: When compiling Vim for MSYS2 (linked with msys-2.0.dll), the Win32
clipboard is not enabled.
Solution: Recognize MSYS like CYGWIN. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 17 Dec 2015 15:45:04 +0100 |
parents | 814f1f569e4a |
children | dbfa0f9ab289 |
rev | line source |
---|---|
6991 | 1 Test for character searches |
2 | |
3 STARTTEST | |
4 :so small.vim | |
5 :" check that "fe" and ";" work | |
6 /^X | |
7 ylfep;;p,,p: | |
8 :" check that save/restore works | |
9 /^Y | |
10 ylfep:let csave = getcharsearch() | |
11 fip:call setcharsearch(csave) | |
12 ;p;p: | |
13 :" check that setcharsearch() changes the settins. | |
14 /^Z | |
15 ylfep:call setcharsearch({'char': 'k'}) | |
16 ;p:call setcharsearch({'forward': 0}) | |
17 $;p:call setcharseearch({'until'}: 1}) | |
18 ;;p: | |
19 :/^X/,$w! test.out | |
20 :qa! | |
21 ENDTEST | |
22 | |
23 Xabcdefghijkemnopqretuvwxyz | |
24 Yabcdefghijkemnopqretuvwxyz | |
25 Zabcdefghijkemnokqretkvwxyz |