0
0
mirror of https://github.com/vim/vim.git synced 2025-10-06 05:44:14 -04:00

updated for version 7.0011

This commit is contained in:
Bram Moolenaar
2004-07-19 20:55:54 +00:00
parent ab79bcbac3
commit 89cb5e0f64
18 changed files with 188 additions and 43 deletions

View File

@@ -32,7 +32,7 @@ gui: nolog $(SCRIPTS) $(SCRIPTS_GUI)
$(SCRIPTS) $(SCRIPTS_GUI): $(VIMPROG)
clean:
-rm -rf *.out *.rej *.orig test.log tiny.vim small.vim mbyte.vim test.ok X* viminfo
-rm -rf *.out *.failed *.rej *.orig test.log tiny.vim small.vim mbyte.vim test.ok X* viminfo
test1.out: test1.in
-rm -f $*.failed tiny.vim small.vim mbyte.vim test.ok X* viminfo

View File

@@ -1,4 +1,4 @@
Test for 'scrollbind'. <eralston@computer.org>
Test for 'scrollbind'. <eralston@computer.org> Do not add a line below!
STARTTEST
:so small.vim
:set noscrollbind

View File

@@ -1,4 +1,5 @@
Tests for regexp with multi-byte encoding and various magic settings.
Test matchstr() with a count and multi-byte chars.
STARTTEST
:so mbyte.vim
@@ -21,6 +22,12 @@ x:" Now search for multi-byte with composing char
x:" find word by change of word class
/ち\<カヨ\>は
x:?^1?,$w! test.out
:e! test.out
G:put =matchstr(\"אבגד\", \".\", 0, 2) " ב
:put =matchstr(\"אבגד\", \"..\", 0, 2) " בג
:put =matchstr(\"אבגד\", \".\", 0, 0) " א
:put =matchstr(\"אבגד\", \".\", 4, -1) " ג
:w!
:qa!
ENDTEST

View File

@@ -9,3 +9,7 @@
9 หม่x อx
a อมx หx
b カヨは
ב
בג
א
ג

View File

@@ -1,5 +1,9 @@
Tests for string text objects. vim: set ft=vim :
Note that the end-of-line moves the cursor to the next test line.
Also test match() and matchstr()
STARTTEST
:so small.vim
/^start:/
@@ -11,6 +15,12 @@ da"
:set quoteescape=+*-
di`
$F"va"oha"i"rz
k:put =matchstr(\"abcd\", \".\", 0, 2) " b
:put =matchstr(\"abcd\", \"..\", 0, 2) " bc
:put =matchstr(\"abcd\", \".\", 2, 0) " c (zero and negative -> first match)
:put =matchstr(\"abcd\", \".\", 0, -1) " a
:put =match(\"abcd\", \".\", 0, 5) " -1
:put =match(\"abcd\", \".\", 0, -1) " 0
:/^start:/,/^end:/wq! test.out
ENDTEST

View File

@@ -5,4 +5,10 @@ out " in ""
"'" 'blah'yyyyy'buh'
bla `` b`la
voo "zzzzzzzzzzzzzzzzzzzzzzzzzzzzsd
b
bc
c
a
-1
0
end: