Created
December 23, 2013 16:29
-
-
Save onyb/8100077 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Starting make in the src directory. | |
If there are problems, cd to the src directory and run make there | |
cd src && make test | |
make[1]: Entering directory `/sources/vim74/src' | |
make -f Makefile vim | |
make[2]: Entering directory `/sources/vim74/src' | |
make[2]: `vim' is up to date. | |
make[2]: Leaving directory `/sources/vim74/src' | |
if test -n "yes" -a -f po/Makefile; then \ | |
cd po; make -f Makefile check VIM=../vim; \ | |
fi | |
make[2]: Entering directory `/sources/vim74/src/po' | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq af.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"af.po" | |
"af.po" 5393 lines, 133397 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch af.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq ca.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"ca.po" | |
"ca.po" 6201 lines, 161831 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch ca.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq cs.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"cs.po" | |
"cs.po" 4664 lines, 111014 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch cs.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq de.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"de.po" | |
"de.po" 6117 lines, 156573 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch de.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq en_GB.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"en_GB.po" | |
"en_GB.po" 290 lines, 8951 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch en_GB.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq eo.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"eo.po" | |
"eo.po" 6825 lines, 173499 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch eo.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq es.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"es.po" | |
"es.po" 8279 lines, 203810 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch es.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq fi.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"fi.po" | |
"fi.po" 6526 lines, 161907 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch fi.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq fr.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"fr.po" | |
"fr.po" 7091 lines, 192058 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch fr.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq ga.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"ga.po" | |
"ga.po" 6503 lines, 164355 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch ga.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq it.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"it.po" | |
"it.po" 6803 lines, 174859 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch it.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq ja.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"ja.po" | |
"ja.po" 6808 lines, 195582 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch ja.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq ko.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"ko.po" | |
"ko.po" 6447 lines, 155537 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch ko.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq ko.UTF-8.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"ko.UTF-8.po" | |
"ko.UTF-8.po" 6447 lines, 171434 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch ko.UTF-8.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq nb.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"nb.po" | |
"nb.po" 6166 lines, 150559 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch nb.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq nl.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"nl.po" | |
"nl.po" 5852 lines, 135179 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch nl.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq no.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"no.po" | |
"no.po" 6166 lines, 150559 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch no.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq pl.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"pl.po" | |
"pl.po" 6904 lines, 175255 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch pl.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq pt_BR.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"pt_BR.po" | |
"pt_BR.po" 6236 lines, 160823 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch pt_BR.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq ru.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"ru.po" | |
"ru.po" 6883 lines, 225596 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch ru.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq sk.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"sk.po" | |
"sk.po" 5821 lines, 147389 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch sk.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq sv.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"sv.po" | |
"sv.po" 6148 lines, 149143 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch sv.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq uk.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"uk.po" | |
"uk.po" 6845 lines, 208009 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch uk.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq vi.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"vi.po" | |
"vi.po" 5196 lines, 143932 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch vi.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq zh_CN.UTF-8.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"zh_CN.UTF-8.po" | |
"zh_CN.UTF-8.po" 6139 lines, 147455 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch zh_CN.UTF-8.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq zh_CN.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"zh_CN.po" | |
"zh_CN.po" 6140 lines, 136477 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch zh_CN.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq zh_TW.UTF-8.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"zh_TW.UTF-8.po" | |
"zh_TW.UTF-8.po" 5282 lines, 127286 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch zh_TW.UTF-8.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq zh_TW.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"zh_TW.po" | |
"zh_TW.po" 5275 lines, 117353 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch zh_TW.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq cs.cp1250.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"cs.cp1250.po" | |
"cs.cp1250.po" 4664 lines, 111022 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch cs.cp1250.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq ja.sjis.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"ja.sjis.po" | |
"ja.sjis.po" 6808 lines, 172635 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch ja.sjis.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq ja.euc-jp.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"ja.euc-jp.po" | |
"ja.euc-jp.po" 6808 lines, 172526 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch ja.euc-jp.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq pl.cp1250.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"pl.cp1250.po" | |
"pl.cp1250.po" 6904 lines, 175251 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch pl.cp1250.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq pl.UTF-8.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"pl.UTF-8.po" | |
"pl.UTF-8.po" 6904 lines, 178041 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch pl.UTF-8.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq ru.cp1251.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"ru.cp1251.po" | |
"ru.cp1251.po" 6883 lines, 177871 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch ru.cp1251.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq sk.cp1250.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"sk.cp1250.po" | |
"sk.cp1250.po" 5821 lines, 147385 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch sk.cp1250.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq uk.cp1251.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"uk.cp1251.po" | |
"uk.cp1251.po" 6845 lines, 168332 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch uk.cp1251.ck | |
../vim -u NONE -e -X -S check.vim -c "if error == 0 | q | endif" -c cq zh_CN.cp936.po | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[?25l[41;1H"zh_CN.cp936.po" | |
"zh_CN.cp936.po" 6140 lines, 136489 characters | |
search hit BOTTOM, continuing at TOP | |
OK[41;3H[K[41;1H | |
[?1l>[?12l[?25h[?1049ltouch zh_CN.cp936.ck | |
make[2]: Leaving directory `/sources/vim74/src/po' | |
if test vim != vim -a ! -r vim; then \ | |
ln -s vim vim; \ | |
fi | |
cd testdir; make -f Makefile VIMPROG=../vim | |
make[2]: Entering directory `/sources/vim74/src/testdir' | |
rm -f test.log | |
rm -rf test1.failed test.out X* viminfo tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test1.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test1.in" 53 lines, 1864 characters[2;1HFirst a simple test to check if the test script works. | |
If Vim was not compiled with the +eval feature, the small.vim script will be | |
set to copy the test.ok file to test.out, so that it looks like the test | |
succeeded. Otherwise an empty small.vim is written. small.vim is sourced by | |
tests that require the +eval feature or other features that are missing in the | |
small version. | |
If Vim was not compiled with the +windows feature, the tiny.vim script will be | |
set like small.vim above. tiny.vim is sourced by tests that require the | |
+windows feature or other features that are missing in the tiny version. | |
If Vim was not compiled with the +multi_byte feature, the mbyte.vim script will | |
be set like small.vim above. mbyte.vim is sourced by tests that require the | |
+multi_byte feature. | |
Similar logic is applied to the +mzscheme feature, using mzscheme.vim. | |
Similar logic is applied to the +lua feature, using lua.vim. | |
STARTTEST | |
:" Write a single line to test.out to check if testing works at all. | |
:%d | |
athis is a test[34m^[[m:w! test.out | |
:" Create small.vim and tiny.vim empty, create mbyte.vim to skip the test. | |
0D:w! small.vim | |
:w! tiny.vim | |
ae! test.ok | |
w! test.out | |
qa! | |
[34m^[[m:w! mbyte.vim | |
:w! mzscheme.vim | |
:w! lua.vim | |
:" | |
:" If +multi_byte feature supported, make mbyte.vim empty. | |
:if has("multi_byte") | sp another | w! mbyte.vim | q | endif | |
:" | |
:" If +mzscheme feature supported, make mzscheme.vim empty. | |
:if has("mzscheme") | sp another | w! mzscheme.vim | q | endif | |
:" | |
:" If +lua feature supported, make lua.vim empty.[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[20;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 31 lines, 928 characters written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[21;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[12M[1;41r[29;1H:if has("lua") | sp another | w! lua.vim | q | endif | |
:" | |
:" If +eval feature supported quit here, leaving tiny.vim and small.vim empty. | |
:" Otherwise write small.vim to skip the test. | |
:if 1 | q! | endif | |
:w! small.vim | |
:" If +windows feature not supported :sp will fail and tiny.vim will be | |
:" written to skip the test. | |
:sp another | |
:wq! tiny.vim | |
:qa! | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" Write a single line to test.out to check if testing works at all. | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h%d | |
[?25l[1;1H[K[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [m[41;1H--No lines in buffer--[1;1H[?12l[?25h[?25lthis is a test[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 1 line, 15 characters written[1;14H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" Create small.vim and tiny.vim empty, create mbyte.vim to skip the test. | |
[?25l[1;14H[?12l[?25h | |
[?25l[1;1H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! small.vim | |
[?25l"small.vim" [41;13H[K[41;13H[New File] 1 line, 1 character written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! tiny.vim | |
[?25l"tiny.vim" [41;12H[K[41;12H[New File] 1 line, 1 character written[1;1H[?12l[?25h[?25le! test.ok | |
w! test.out[2;12H[K[3;1Hqa![3;4H[K[4;1H[K[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! mbyte.vim | |
[?25l"mbyte.vim" [41;13H[K[41;13H[New File] 4 lines, 28 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! mzscheme.vim | |
[?25l"mzscheme.vim" [41;16H[K[41;16H[New File] 4 lines, 28 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! lua.vim | |
[?25l"lua.vim" [41;11H[K[41;11H[New File] 4 lines, 28 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" If +multi_byte feature supported, make mbyte.vim empty. | |
[?25l[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hif has("multi_byte") | sp another | w! mbyte.vim | q | endif | |
[?25l"another" [New File][41;21H[K[41;1H | |
"mbyte.vim" 0 lines, 0 characters written[1;1H[L[1;1He! test.ok[41;1H[K[4;1H[?12l[?25h[?25l[41;1H:[?12l[?25h" | |
[?25l[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" If +mzscheme feature supported, make mzscheme.vim empty. | |
[?25l[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hif has("mzscheme") | sp another | w! mzscheme.vim | q | endif | |
[?25l[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" If +lua feature supported, make lua.vim empty. | |
[?25l[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hif has("lua") | sp another | w! lua.vim | q | endif | |
[?25l[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" If +eval feature supported quit here, leaving tiny.vim and small.vim empty. | |
[?25l[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" Otherwise write small.vim to skip the test. | |
[?25l[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hif 1 | q! | endif | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049lrm -rf X* viminfo | |
rm -rf test2.failed test.ok test.out X* viminfo | |
cp test2.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test2.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test2.in" 29 lines, 717 characters[2;1HThis is a test if a URL is recognized by "gf", with the cursor before and | |
after the "://". Also test ":\\". | |
STARTTEST | |
:so small.vim | |
/^first | |
/tmp | |
:call append(0, expand("<cfile>")) | |
/^second | |
/URL | |
:call append(1, expand("<cfile>")) | |
:if has("ebcdic") | |
: set isf=@,240-249,/,.,-,_,+,,,$,:,~,\ | |
:else | |
: set isf=@,48-57,/,.,-,_,+,,,$,:,~,\ | |
:endif | |
/^third | |
/name | |
:call append(2, expand("<cfile>")) | |
/^fourth | |
/URL | |
:call append(3, expand("<cfile>")) | |
5GdG:wq! test.out | |
ENDTEST | |
first test for URL://machine.name/tmp/vimtest2a and other text | |
second test for URL://machine.name/tmp/vimtest2b. And other text | |
third test for URL:\\machine.name\vimtest2c and other text | |
fourth test for URL:\\machine.name\tmp\vimtest2d, and other text | |
[1m[34m~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[5;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 19 lines, 336 characters written[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[6;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[25;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^first | |
[?25l[31msearch hit BOTTOM, continuing at TOP[26;1H[?12l[?25h[?25l[m[41;1H[K[41;1H/[?12l[?25htmp | |
[?25l[26;35H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall append(0, expand("<cfile>")) | |
[?25l[1;40r[1;1H[L[1;41r[1;1HURL://machine.name/tmp/vimtest2a[41;1H[K[27;35H[?12l[?25h[?25l[41;1H/[?12l[?25h^second | |
[?25l[28;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hURL | |
[?25l[28;17H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall append(1, expand("<cfile>")) | |
[?25l[2;40r[2;1H[L[1;41r[2;1HURL://machine.name/tmp/vimtest2b[41;1H[K[29;17H[?12l[?25h[?25l[41;1H:[?12l[?25hif has("ebcdic") | |
[?25l | |
: [?12l[?25h: set isf=@,240-249,/,.,-,_,+,,,$,:,~,\ | |
[?25l: [?12l[?25h:else | |
[?25l: [?12l[?25h: set isf=@,48-57,/,.,-,_,+,,,$,:,~,\ | |
[?25l: [?12l[?25h:endif | |
[1;1H[4L[?25l[1;1HURL://machine.name/tmp/vimtest2a | |
URL://machine.name/tmp/vimtest2b | |
This is a test if a URL is recognized by "gf", with the cursor before and[41;1H[K[29;17H[?12l[?25h[?25l[41;1H/[?12l[?25h^third | |
[?25l[30;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hname | |
[?25l[30;30H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall append(2, expand("<cfile>")) | |
[?25l[3;40r[3;1H[L[1;41r[3;1HURL:\\machine.name\vimtest2c[41;1H[K[31;30H[?12l[?25h[?25l[41;1H/[?12l[?25h^fourth | |
[?25l[32;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hURL | |
[?25l[32;17H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall append(3, expand("<cfile>")) | |
[?25l[4;40r[4;1H[L[1;41r[4;1HURL:\\machine.name\tmp\vimtest2d[41;1H[K[33;17H[?12l[?25h[5;1H[?25l[41;1H29 fewer lines[5;1H[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [4;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hwq! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 4 lines, 128 characters written | |
[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test3.failed test.ok test.out X* viminfo | |
cp test3.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test3.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test3.in" 2056 lines, 21564 characters[1;1H/* vim: set cin ts=4 sw=4 : */ | |
Test for 'cindent' | |
STARTTEST | |
:so small.vim | |
:set nocompatible viminfo+=nviminfo modeline | |
:edit[16C" read modeline | |
/start of AUTO | |
=/end of AUTO | |
ENDTEST | |
/* start of AUTO matically checked vim: set ts=4 : */ | |
{[15;9Hif (test)[16;17Hcmd1;[17;9Hcmd2; | |
} | |
{[21;9Hif (test)[22;17Hcmd1;[23;9Helse[24;17Hcmd2; | |
} | |
{[28;9Hif (test)[29;9H{[30;17Hcmd1;[31;17Hcmd2;[32;9H} | |
} | |
{[36;9Hif (test)[37;9H{[38;17Hcmd1;[39;17Helse[40;9H}[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[5;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 5 lines, 125 characters written[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[6;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[11;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[12;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[12;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nocompatible viminfo+=nviminfo modeline | |
[?25l[12;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hedit " read modeline | |
[?25l"test3.in"[41;22H[K[41;12H2056L, 21564C[15;5Hif (test)[15;14H[K[16;9Hcmd1;[16;17H[K[17;5Hcmd2;[17;10H[K[21;5Hif (test)[21;14H[K[22;9Hcmd1;[22;17H[K[23;5Helse[23;9H[K[24;9Hcmd2;[24;17H[K[28;5Hif (test)[28;14H[K[29;5H{[29;9H[K[30;9Hcmd1;[30;17H[K[31;9Hcmd2;[31;17H[K[32;5H}[32;9H[K[36;5Hif (test)[36;14H[K[37;5H{[37;9H[K[38;9Hcmd1;[38;17H[K[39;9Helse[39;17H[K[40;5H}[40;9H[K[12;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hstart of AUTO | |
[?25l[13;4H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hend of AUTO | |
[?25l873 lines to indent... | |
8500 | |
750 | |
650 | |
550 | |
450 | |
350 | |
250 | |
150 | |
50 lines to indent... | |
874 lines indented [41;20H[K[13;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[27m[m[H[2J[1;1H} | |
namespace() { | |
1111111111111; | |
} | |
namespace() | |
{ | |
111111111111111111; | |
} | |
namespace test test2 | |
{ | |
1111111111111111111; | |
} | |
namespace111111111 | |
{ | |
111111111111111111; | |
} | |
/* end of AUTO */ | |
STARTTEST | |
:set tw=0 wm=60 columns=80 noai fo=croq | |
/serious/e | |
a about life, the universe, and the rest[34m^[[m | |
ENDTEST | |
{ | |
/* this is | |
* a real serious important big | |
* comment | |
*/ | |
/* insert " about life, the universe, and the rest" after "serious" */ | |
} | |
STARTTEST | |
:set nocin | |
/comments | |
joabout life[34m^[[m/happens | |
jothere[34m^[[m/below | |
oline[34m^[[m/this[20;1H[?12l[?25h | |
[?25l[41;1H:set ff=unix cpo-=A | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 93C written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[21;1H[?12l[?25h[?25l[41;1H/ENDTEST/+-1[41;13H[K[41;1H[23;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset tw=0 wm=60 columns=80 noai fo=croq | |
[?25l[8;41;80t[27m[m[H[2J[?12l[?25h[27m[m[H[2J[?25l[1;1H} | |
namespace() { | |
1111111111111; | |
} | |
namespace() | |
{ | |
111111111111111111; | |
} | |
namespace test test2 | |
{ | |
1111111111111111111; | |
} | |
namespace111111111 | |
{ | |
111111111111111111; | |
} | |
/* end of AUTO */ | |
STARTTEST | |
:set tw=0 wm=60 columns=80 noai fo=croq | |
/serious/e | |
a about life, the universe, and the rest[34m^[[m | |
ENDTEST | |
{ | |
/* this is | |
* a real serious important big | |
* comment | |
*/ | |
/* insert " about life, the universe, and the rest" after "serious" */ | |
} | |
STARTTEST | |
:set nocin | |
/comments | |
joabout life[34m^[[m/happens | |
jothere[34m^[[m/below | |
oline[34m^[[m/this[24;1H[?12l[?25h[?25l[41;1H/[?12l[?25hserious/e | |
[?25l[29;17H[?12l[?25h[?25l[41;1H[1m-- INSERT --[m[41;1H[K[30;40r[30;1H[3L[1;41r[29;19H[K[30;2H* about life, the | |
* universe, and the | |
* rest important big[32;7H[?12l[?25h[33;7H[?25l[41;1H/^STARTTEST | |
[38;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H6L, 78C written[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[39;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[1;1H[4M[1;41r[37;1Hjoabout life[34m^[[m/happens | |
jothere[34m^[[m/below | |
oline[34m^[[m/this | |
Ohello[34m^[[m[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nocin | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hcomments | |
[?25l[1;40r[1;1H[4M[1;41r[38;1H{ | |
/*[40;6H* Testing for comments, without 'cin' set[41;1H[K[40;20H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;6H*/[?12l[?25h[?25l | |
[1m-- INSERT --[m[41;1H[K[1;40r[40;1H | |
[1;41r[40;1Habout life[?12l[?25h[?25l | |
/[?12l[?25hhappens | |
[?25l[1;40r[1;1H[3M[1;41r[39;1H/* | |
* what happens here?[41;1H[K[40;8H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H*/[?12l[?25h[?25l | |
[1m-- INSERT --[m[41;1H[K[1;40r[40;1H | |
[1;41r[40;1Hthere[?12l[?25h[?25l | |
/[?12l[?25hbelow | |
[?25l[1;40r[1;1H[3M[1;41r[39;5H/*[40;8Hthe end of the comment, try inserting a line below */[41;1H[K[40;53H[?12l[?25h[?25l | |
[1m-- INSERT --[m[41;1H[K[1;40r[40;1H | |
[1;41r[40;1Hline[?12l[?25h[?25l | |
/[?12l[?25hthis | |
[?25l[1;40r[1;1H[3M[1;41r[39;9H/* how about[40;25Hthis one */[41;1H[K[40;25H[?12l[?25h[?25l | |
[1m-- INSERT --[m[41;1H[K[40;1Hhello[40;25H[K[40;5H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;25Hthis one */[40;8H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[3M[1;41r[38;1H} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cin | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 18C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[1;1H[2M[1;41r[39;1H/vec2 | |
==[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cin | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hvec2 | |
[?25l[1;40r[1;1H[5M[1;41r[37;1H{ | |
var = this + that + vec[0] * vec[0][39;23H+ vec[1] * vec[1][40;23H+ vec2[2] * vec[2];[41;1H[K[40;25H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H}[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[2M[1;41r[40;1HSTARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cin | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H5L, 51C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[1;1H[4M[1;41r[37;1H:set cino=}4 | |
/testing1 | |
k2==/testing2 | |
k2==[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cin | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=}4 | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25htesting1 | |
[?25l[1;40r[1;1H[8M[1;41r[34;1H{[35;9Hasdf asdflkajds f; | |
if (tes & ting) {[37;9Hasdf asdf asdf ;[38;9Hasdfa sdf asdf;[39;9H} | |
testing1;[41;1H[K[40;5H[?12l[?25h[39;8H [?25l | |
/[?12l[?25htesting2 | |
[?25l[1;40r[1;1H[6M[1;41r[35;5Hif (tes & ting) | |
{[37;9Hasdf asdf asdf ;[38;9Hasdfa sdf asdf;[39;9H} | |
testing2;[41;1H[K[40;5H[?12l[?25h[39;8H [40;9H[?25l | |
/^STARTTEST | |
[1;40r[1;1H[3M[1;41r[38;1H} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cin | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H4L, 36C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[1;1H[3M[1;41r[38;1H:set cino=(0,)20 | |
/main | |
=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cin | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=(0,)20 | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hmain | |
[?25l[1;40r[1;1H[2M[1;41r[40;1Hmain ( int first_par, /*[41;1H[K[40;1H[?12l[?25h[?25l | |
19 lines to indent... | |
20[7Cindented [41;19H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;24H* Comment for[41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[27m[m[H[2J[1;24H*/[2;8Hint second_par /*[3;24H* Comment for[4;24H* second par[5;24H*/[6;6H) | |
{ | |
func( first_par, /*[9;23H* Comment for[10;23H* first par[11;23H*/[12;11Hsecond_par /*[13;23H* Comment for[14;23H* second par[15;23H*/[16;9H); | |
} | |
STARTTEST | |
:set cin | |
:set cino=es,n0s | |
/main | |
=][ | |
ENDTEST | |
main(void) | |
{ | |
/* Make sure that cino=X0s is not parsed like cino=Xs. */ | |
if (cond)[31;9Hfoo(); | |
else | |
{[34;9Hbar(); | |
} | |
} | |
STARTTEST | |
:set cin | |
:set cino=[20;1H[?12l[?25h | |
[?25l[41;1H:set ff=unix cpo-=A | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H4L, 36C written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[21;1H[?12l[?25h[?25l[41;1H/ENDTEST/+-1[41;13H[K[41;1H[24;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cin | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=es,n0s | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hmain | |
[?25l[27;1H[?12l[?25h[?25l[41;1H8 lines to indent... | |
9[7Cindented [41;18H[K[27;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H/^STARTTEST | |
[38;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 26C written[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[39;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cin | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino= | |
[?25l[40;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[40;1H{[41;1H[K[40;1H[?12l[?25h[?25l | |
11 lines to indent... | |
12[7Cindented [41;19H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hdo[41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[13M[1;41r[28;5H{[29;9Hif ()[30;9H{[31;13Hif ()[32;17Hasdf;[33;13Helse[34;17Hasdf;[35;9H} | |
} while (); | |
cmd;[8C/* this should go under the } */ | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H]]=][ | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H1L, 6C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST[41;1H[K[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[1;40r[1;1H[3M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
8 lines to indent... | |
9[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hif ( k() ) {[41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[10M[1;41r[31;9Hl();[33;5H} else { /* Start (two words) end */[34;9Hm(); | |
}[37;5Hn(); | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino={s,e-s | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 23C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino={s,e-s | |
[?25l[40;1H[?12l[?25h[?25l[1;40r[1;1H[3M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
7 lines to indent... | |
8[7Cindented [41;18H[K[40;1H {[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hif ( k() )[41;1H[K[40;5H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[9M[1;41r[32;9H{[33;9Hl();[34;9H} else { /* Start (two words) end */[35;9Hm();[36;9H} | |
n(); /* should be under the if () */ | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino={s,fs | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 25C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H]]=/ foo[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino={s,fs | |
[?25l[40;1H[?12l[?25h[?25l[1;40r[1;1H[3M[1;41r[39;1Hvoid bar(void) | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
/[?12l[?25h foo | |
[?25l30 lines to indent... | |
31[7Cindented [41;19H[K[40;1H {[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[27m[m[H[2J[1;9Hint a;[2;13H{[3;13Ha = a + 1;[4;13H}[5;9H} | |
b = a; | |
} | |
void func(void) | |
{ | |
a = 1;[12;9H{[13;9Hb = 2;[14;9H} | |
c = 3; | |
d = 4; | |
} | |
/* foo */ | |
STARTTEST | |
:set cino= | |
/while | |
ohere[34m^[[m | |
ENDTEST | |
a() | |
{ | |
do { | |
a = a +[30;7Ha; | |
} while ( a );[8C/* add text under this line */ | |
if ( a )[33;7Ha; | |
} | |
STARTTEST | |
:set cino= com= | |
/comment | |
olabel2: b();[34m^M[mlabel3 /* post */:[34m^M[m/* pre */ label4:[34m^M[mf(/*com*/);[34m^M[mif (/*com*/)[34m^^[40;1HM[mcmd();[34m^[[20;1H[?12l[?25h | |
[?25l[41;1H[m:set ff=unix cpo-=A | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 25C written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[21;1H[?12l[?25h[?25l[41;1H/ENDTEST/+-1[41;13H[K[41;1H[23;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino= | |
[?25l[24;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hwhile | |
[?25l[31;5H[?12l[?25h[?25l[41;1H[1m-- INSERT --[m[41;1H[K[32;40r[32;1H[L[1;41r[32;3Hhere[40;1H[1m[34m@ [32;6H[?12l[?25h[33;6H[?25l[41;1H[m/^STARTTEST | |
[37;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[40;1Holabel2: b();[34m^M[mlabel3 /* post */:[34m^M[m/* pre */ label4:[34m^M[mf(/*com*/);[34m^M[mif (/*com*/)[34m^[m[40;1H[1m[34m@ [38;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 109C written[38;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1Holabel2: b();[34m^M[mlabel3 /* post */:[34m^M[m/* pre */ label4:[34m^M[mf(/*com*/);[34m^M[mif (/*com*/)[34m^[m[40;1H[1m[34m@ [38;1H[?12l[?25h[?25l[m | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[39;1Holabel2: b();[34m^M[mlabel3 /* post */:[34m^M[m/* pre */ label4:[34m^M[mf(/*com*/);[34m^M[mif (/*com*/)[34m^^[40;1HM[mcmd();[34m^[[m[41;1H[K[39;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino= com= | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hcomment | |
[?25l[1;40r[1;1H[6M[1;41r[36;1Ha() | |
{ | |
label1:[39;13H/* hmm */[40;13H// comment[41;1H[K[40;16H[?12l[?25h[?25l | |
[1m-- INSERT --[m[41;1H[K[1;40r[1;1H[6M[1;41r[35;1Hlabel2: b(); | |
label3 /* post */: | |
/* pre */ label4:[38;9Hf(/*com*/);[39;9Hif (/*com*/)[40;13Hcmd();[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H}[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[2M[1;41r[40;1HSTARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set comments& comments^=s:/*,m:**,ex:*/ | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 53C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[1;1H[2M[1;41r[39;1H/simple | |
=5j[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset comments& comments^=s:/*,m:**,ex:*/ | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hsimple | |
[?25l[1;40r[1;1H[3M[1;41r[39;1H/* | |
* A simple comment[41;1H[K[40;7H[?12l[?25h[?25l | |
5 lines to indent... | |
6[7Cindented [41;18H[K[40;2H* A simple comment[40;20H[K[40;2H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;2H*/[41;1H[K[40;2H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[6M[1;41r[36;1H/* | |
** A different comment | |
*/ | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=c0 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 70C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[1;1H[2M[1;41r[39;1H:set comments& comments-=s1:/* comments^=s0:/* | |
2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=c0 | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset comments& comments-=s1:/* comments^=s0:/* | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
4 lines to indent... | |
5[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[41;1H[K[40;1H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[6M[1;41r[35;5H/*********[36;7HA comment. | |
*********/ | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=c0,C1 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 73C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[1;1H[2M[1;41r[39;1H:set comments& comments-=s1:/* comments^=s0:/* | |
2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=c0,C1 | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset comments& comments-=s1:/* comments^=s0:/* | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
4 lines to indent... | |
5[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[41;1H[K[40;1H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[6M[1;41r[35;5H/********* | |
A comment. | |
*********/ | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino= | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 17C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino= | |
[?25l[40;1H[?12l[?25h[?25l[1;40r[1;1H[3M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
5 lines to indent... | |
6[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hc = c1 &&[41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[7M[1;41r[34;9H([35;10Hc2 ||[36;10Hc3[37;9H) && c4; | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=(s | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 23C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=(s | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
5 lines to indent... | |
6[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hc = c1 &&[41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[7M[1;41r[34;9H([35;10Hc2 ||[36;10Hc3[37;9H) && c4; | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=(s,U1 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 28C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=(s,U1 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
5 lines to indent... | |
6[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hc = c1 &&[41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[7M[1;41r[34;9H([35;13Hc2 ||[36;13Hc3[37;9H) && c4; | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=(0 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 23C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=(0 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
4 lines to indent... | |
5[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hif ( c1[41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[6M[1;41r[35;12H&& ( c2[36;19H|| c3))[37;9Hfoo; | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=(0,w1 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 28C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=(0,w1 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
4 lines to indent... | |
5[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hif ( c1[41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[6M[1;41r[35;9H&& ( c2[36;13H|| c3))[37;9Hfoo; | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=(s | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 23C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=(s | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
8 lines to indent... | |
9[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hc = c1 && ([41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[10M[1;41r[31;9Hc2 ||[32;9Hc3[33;9H) && c4; | |
if ([35;9Hc1 && c2[36;8H)[37;9Hfoo; | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=(s,m1 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 28C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=(s,m1 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
8 lines to indent... | |
9[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hc = c1 && ([41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[10M[1;41r[31;9Hc2 ||[32;9Hc3 | |
) && c4; | |
if ([35;9Hc1 && c2 | |
)[37;9Hfoo; | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=b1 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 23C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=b1 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
9 lines to indent... | |
10 lines indented [41;19H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hswitch (x)[41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[11M[1;41r[30;5H{[31;9Hcase 1:[32;13Ha = b;[33;9Hbreak;[34;9Hdefault:[35;13Ha = 0;[36;9Hbreak; | |
} | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=(0,W5 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 26C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=(0,W5 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
10 lines to indent... | |
11[7Cindented [41;19H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hinvokeme([41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[12M[1;41r[29;10Hargu,[30;10Hment); | |
invokeme([32;10Hargu,[33;10Hment[34;10H); | |
invokeme(argu,[36;14Hment[37;13H); | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=/6 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 23C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=/6 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
3 lines to indent... | |
4[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hstatement;[41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[5M[1;41r[36;11H// comment 1[37;11H// comment 2 | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino= | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 34C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[1;1H[2M[1;41r[39;1H2kdd]]/comment 1/+1 | |
==[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino= | |
[?25l[40;1H[?12l[?25h[38;1H[?25l==[38;3H[K[39;1HENDTEST[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hvoid f() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
/[?12l[?25hcomment 1/+1 | |
[?25l[1;40r[1;1H[3M[1;41r[38;5Hstatement;[39;8H// comment 1 | |
// comment 2[41;1H[K[40;4H[?12l[?25h[?25l // comment 2[40;8H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H}[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[2M[1;41r[40;1HSTARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=g0 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 23C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=g0 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hclass CAbc | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
6 lines to indent... | |
7[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hint Test() { return FALSE; }[41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[8M[1;41r[34;1Hpublic: // comment | |
void testfall(); | |
protected: | |
void testfall(); | |
}; | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=(0,gs,hs | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 29C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=(0,gs,hs | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hclass Foo : public Bar | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
5 lines to indent... | |
6[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hpublic:[41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[7M[1;41r[34;9Hvirtual void method1(void) = 0;[35;9Hvirtual void method2(int arg1,[36;30Hint arg2,[37;30Hint arg3) = 0; | |
}; | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=+20 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 24C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=+20 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[3M[1;41r[38;5Hvoid | |
foo() | |
{[41;1H[K[40;1H[?12l[?25h[?25l | |
4 lines to indent... | |
5[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Hif (a)[41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[6M[1;41r[35;5H{ | |
} else[37;9Hasdf; | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=(0,W2s | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 27C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd]]=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=(0,W2s | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd]]=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H{[41;1H[K[40;1H[?12l[?25h[?25l | |
34 lines to indent... | |
35[7Cindented [41;19H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Haverylongfunctionnamelongfunctionnameaverylongfunctionname()->asd([41;1H[K[40;4H[?12l[?25h[?25l | |
/^STARTTEST | |
[27m[m[H[2J[1;17Hfunc(asdfadf,[2;22Hasdfasdf[3;21H),[4;17Hasdasdf[5;16H);[7;5Haverylongfunctionnameaverylongfunctionnameavery()->asd(fasdf([8;21Habc,[9;21Hdec)->asdfasdfasdf([10;29Hasdfadsf,[11;29Hasdfasdf,[12;29Hasdfasdf,[13;29H),[14;13Hfunc(asdfadf,[15;18Hasdfasdf),[16;13Hasdasdf[17;13H); | |
} | |
STARTTEST | |
:set cino=M1 | |
2kdd]]=][ | |
ENDTEST | |
int main () | |
{ | |
if (cond1 &&[28;13Hcond2[29;13H)[30;9Hfoo; | |
} | |
STARTTEST | |
:set cino=(0,ts | |
2kdd=][ | |
ENDTEST | |
void func(int a | |
#if defined(FOO)[40;11H, int b[20;1H[?12l[?25h | |
[?25l[41;1H:set ff=unix cpo-=A | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 23C written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[21;1H[?12l[?25h[?25l[41;1H/ENDTEST/+-1[41;13H[K[41;1H[22;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=M1 | |
[?25l[23;1H[?12l[?25h[21;1H[?25l[21;40r[40;1H | |
[1;41r[40;11H, int c[41;1H[K[21;1H[?12l[?25h[25;1H[?25l[41;1H4 lines to indent... | |
5[7Cindented [41;18H[K[25;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H/^STARTTEST | |
[32;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[33;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 24C written[33;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[33;1H[?12l[?25h[?25l[41;1H/ENDTEST/+-1[41;13H[K[41;1H[34;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[35;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=(0,ts | |
[?25l[35;1H[?12l[?25h[33;1H[?25l[33;40r[40;1H | |
[1;41r[40;1H#endif[41;1H[K[33;1H[?12l[?25h[?25l[41;1H9 lines to indent... | |
10 lines indented [41;19H[K[33;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[1;1H[5M[1;41r[36;10H) | |
{ | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=(0 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 21C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=(0 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd=][[38;8H[K[39;1HENDTEST[40;1H[K[38;1H[?12l[?25h[?25l | |
10 lines to indent... | |
11[7Cindented [41;19H[K[38;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[1;1H[11M[1;41r[30;5Hvoid | |
func(int a | |
#if defined(FOO)[33;6H, int b[34;6H, int c | |
#endif | |
) | |
{ | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino& | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 20C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd=7][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino& | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd=7][[38;9H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l | |
71 lines to indent... | |
50 | |
72[7Cindented [41;19H[K[38;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H/^STARTTEST | |
[27m[m[H[2J[1;5Hint a; | |
int b; | |
int c; | |
{ | |
}[7;5Hvoid | |
func5([9;9Hint a,[10;9Hint b) | |
{ | |
}[14;5Hvoid | |
func6([16;9Hint a) | |
{ | |
} | |
STARTTEST | |
:set cino& | |
:set cino+=l1 | |
2kdd=][ | |
ENDTEST | |
void func(void) | |
{ | |
int tab[] = | |
{[30;9H1, 2, 3,[31;9H4, 5, 6};[33;5Hprintf("Indent this line correctly!\n");[35;5Hswitch (foo) | |
{[37;9Hcase bar:[38;13Hprintf("bar");[39;13Hbreak;[40;9Hcase baz: {[20;1H[?12l[?25h | |
[?25l[41;1H:set ff=unix cpo-=A | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 33C written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[21;1H[?12l[?25h[?25l[41;1H/ENDTEST/+-1[41;13H[K[41;1H[23;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino& | |
[?25l[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino+=l1 | |
[?25l[24;1H[?12l[?25h[22;1H[?25l[22;40r[40;1H | |
[1;41r[40;13Hprintf("baz");[41;1H[K[22;1H[?12l[?25h[?25l[41;1H24 lines to indent... | |
25[7Cindented [41;19H[K[22;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[1;1H[9M[1;41r[32;13Hbreak;[33;9H}[34;9Hcase quux:[35;13Hprintf("But don't break the indentation of this instruction\n");[36;13Hbreak; | |
} | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino& | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 19C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino& | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd=][[38;8H[K[39;1HENDTEST[40;1H[K[38;1H[?12l[?25h[?25l | |
8 lines to indent... | |
9[7Cindented [41;18H[K[38;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[1;1H[9M[1;41r[32;1Hvoid func(void) | |
{ | |
cout << "a"[35;9H<< "b"[36;9H<< ") :"[37;9H<< "c"; | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set com=s1:/*,m:*,ex:*/ | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 38C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H]]3jofoo();[34m^[[m[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset com=s1:/*,m:*,ex:*/ | |
[?25l[40;1H[?12l[?25h[?25l[1;40r[1;1H[3M[1;41r[39;1Hvoid func(void) | |
{[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[1;1H[3M[1;41r[38;5H/*[39;6H* This is a comment.[40;6H*/[?12l[?25h[?25l | |
[1m-- INSERT --[m[41;1H[K[1;40r[40;1H | |
[1;41r[40;5Hfoo();[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H}[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[2M[1;41r[40;1HSTARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino& | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 19C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino& | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd=][[38;8H[K[39;1HENDTEST[40;1H[K[38;1H[?12l[?25h[?25l | |
10 lines to indent... | |
11[7Cindented [41;19H[K[38;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[1;1H[11M[1;41r[30;1Hvoid func(void) | |
{ | |
for (int i = 0; i < 10; ++i)[33;9Hif (i & 1) {[34;13Hfoo(1);[35;9H} else[36;13Hfoo(0); | |
baz(); | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=k2s,(0 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 27C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd3j=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=k2s,(0 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd3j=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hvoid func(void)[41;1H[K[40;1H[?12l[?25h[?25l | |
23 lines to indent... | |
24[7Cindented [41;19H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H{[41;1H[K[40;1H[?12l[?25h[?25l | |
/^STARTTEST | |
[27m[m[H[2J[2;5Hif (c1 && (c2 ||[3;17Hc3))[4;9Hfoo; | |
if (c1 &&[6;13H(c2 || c3)) | |
{ | |
}[10;5Hif ( c1[11;13H&& ( c2[12;23H|| c3))[13;9Hfoo; | |
func( c1[15;11H&& ( c2[16;20H|| c3))[17;9Hfoo; | |
} | |
STARTTEST | |
:set cino=k2s,(s | |
2kdd3j=][ | |
ENDTEST | |
void func(void) | |
{ | |
if (condition1 | |
&& condition2) | |
action(); | |
function(argument1 | |
&& argument2);[33;5Hif (c1 && (c2 || | |
c3)) | |
foo; | |
if (c1 && | |
(c2 || c3)) | |
{ | |
}[20;1H[?12l[?25h | |
[?25l[41;1H:set ff=unix cpo-=A | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 27C written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[21;1H[?12l[?25h[?25l[41;1H/ENDTEST/+-1[41;13H[K[41;1H[22;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=k2s,(s | |
[?25l[23;1H[?12l[?25h[21;1H[?25l[21;40r[40;1H | |
[1;41r[40;5Hif ( c1[41;1H[K[21;1H[?12l[?25h | |
[?25l[41;1H23 lines to indent... | |
24[7Cindented [41;19H[K[27;5H && condition2) | |
action();[30;5H && argument2);[33;5H [8Cc3)) | |
foo;[36;5H (c2 || c3))[24;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[1;1H[10M[1;41r[31;13H&& ( c2[32;17H|| c3))[33;9Hfoo; | |
func( c1[35;9H&& ( c2[36;13H|| c3))[37;9Hfoo; | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=k2s,(s,U1 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 30C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd3j=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=k2s,(s,U1 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd3j=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hvoid func(void)[41;1H[K[40;1H[?12l[?25h[?25l | |
24 lines to indent... | |
25[7Cindented [41;19H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H{[41;1H[K[40;1H[?12l[?25h[?25l | |
/^STARTTEST | |
[27m[m[H[2J[1;5Hif (c1 && (c2 ||[2;17Hc3))[3;9Hfoo; | |
if (c1 &&[5;13H(c2 || c3)) | |
{ | |
} | |
if (c123456789[9;13H&& (c22345[10;17H|| c3))[11;9Hprintf("foo\n");[13;5Hc = c1 &&[14;9H([15;13Hc2 ||[16;13Hc3[17;9H) && c4; | |
} | |
STARTTEST | |
:set cino=k2s,(0,W4 | |
2kdd3j=][ | |
ENDTEST | |
void func(void) | |
{ | |
if (condition1 | |
&& condition2) | |
action(); | |
function(argument1 | |
&& argument2);[33;5Hif (c1 && (c2 || | |
c3)) | |
foo; | |
if (c1 && | |
(c2 || c3)) | |
{ | |
} | |
if (c123456789[20;1H[?12l[?25h | |
[?25l[41;1H:set ff=unix cpo-=A | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 30C written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[21;1H[?12l[?25h[?25l[41;1H/ENDTEST/+-1[41;13H[K[41;1H[22;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=k2s,(0,W4 | |
[?25l[23;1H[?12l[?25h[21;1H[?25l[21;40r[40;1H | |
[1;41r[40;5H&& (c22345[41;1H[K[21;1H[?12l[?25h | |
[?25l[41;1H29 lines to indent... | |
30[7Cindented [41;19H[K[27;5H && condition2) | |
action();[30;5H && argument2);[33;5H [8Cc3)) | |
foo;[36;5H (c2 || c3))[40;5H && (c22345[24;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[1;1H[16M[1;41r[25;17H|| c3))[26;9Hprintf("foo\n");[28;5Hif ( c1[29;13H&& ( c2[30;20H|| c3))[31;9Hfoo;[33;5Ha_long_line([34;9Hargument,[35;9Hargument); | |
a_short_line(argument,[37;18Hargument); | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=k2s,u2 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 27C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd3j=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=k2s,u2 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd3j=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hvoid func(void)[41;1H[K[40;1H[?12l[?25h[?25l | |
18 lines to indent... | |
19[7Cindented [41;19H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H{[41;1H[K[40;1H[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[20M[1;41r[21;5Hif (condition1[22;13H&& condition2)[23;9Haction(); | |
function(argument1[25;13H&& argument2);[27;5Hif (c1 && (c2 ||[28;15Hc3))[29;9Hfoo; | |
if (c1 &&[31;13H(c2 || c3)) | |
{ | |
} | |
if (c123456789[35;13H&& (c22345[36;15H|| c3))[37;9Hprintf("foo\n"); | |
} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=k2s,(0,w1 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 30C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[40;1H | |
[1;41r[40;1H2kdd3j=][[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=k2s,(0,w1 | |
[?25l[40;1H[?12l[?25h[38;1H[?25l2kdd3j=][[38;10H[K[39;1HENDTEST[39;8H[K[40;1H[K[38;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hvoid func(void)[41;1H[K[40;1H[?12l[?25h[?25l | |
27 lines to indent... | |
28[7Cindented [41;19H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H{[41;1H[K[40;1H[?12l[?25h[?25l | |
/^STARTTEST | |
[27m[m[H[2J[1;5Hif (c1 &&[2;13H(c2 || c3)) | |
{ | |
} | |
if (c123456789[6;13H&& (c22345[7;17H|| c3))[8;9Hprintf("foo\n");[10;5Hif ( c1[11;13H&& ( c2[12;17H|| c3))[13;9Hfoo; | |
func( c1[15;10H&& ( c2[16;14H|| c3))[17;9Hfoo; | |
} | |
STARTTEST | |
:set cino=k2,(s | |
2kdd3j=][ | |
ENDTEST | |
void func(void) | |
{ | |
if (condition1[28;7H&& condition2)[29;9Haction(); | |
function(argument1[31;9H&& argument2);[33;5Hif (c1 && (c2 ||[34;11Hc3))[35;9Hfoo; | |
if (c1 &&[37;7H(c2 || c3)) | |
{ | |
} | |
}[20;1H[?12l[?25h | |
[?25l[41;1H:set ff=unix cpo-=A | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 26C written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[21;1H[?12l[?25h[?25l[41;1H/ENDTEST/+-1[41;13H[K[41;1H[22;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=k2,(s | |
[?25l[23;1H[?12l[?25h[21;1H[?25l[21;40r[40;1H | |
[1;41r[41;1H[K[21;1H[?12l[?25h | |
[?25l[41;1H14 lines to indent... | |
15[7Cindented [41;19H[K[24;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[40;1H | |
[1;41r[40;1HSTARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=N-s | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 47C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[1;1H[2M[1;41r[39;1H/^NAMESPACESTART | |
=/^NAMESPACEEND[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=N-s | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^NAMESPACESTART | |
[?25l[1;40r[1;1H[2M[1;41r[40;1HNAMESPACESTART[41;1H[K[40;1H[?12l[?25h[?25l | |
/[?12l[?25h^NAMESPACEEND | |
[?25l61 lines to indent... | |
50 | |
62[7Cindented [41;19H[K[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[27m[m[H[2J[1;1H} | |
namespace() { | |
1111111111111; | |
} | |
namespace() | |
{ | |
111111111111111111; | |
} | |
namespace test test2 | |
{ | |
1111111111111111111; | |
} | |
namespace111111111 | |
{ | |
111111111111111111; | |
} | |
NAMESPACEEND | |
STARTTEST | |
:set cino=j1,J1 | |
/^JSSTART | |
=/^JSEND | |
ENDTEST | |
JSSTART | |
var bar = { | |
foo: { | |
that: this, | |
some: ok, | |
}, | |
"bar":{ | |
a : 2, | |
b: "123abc", | |
x: 4, | |
"y": 5 | |
} | |
} | |
JSEND[20;1H[?12l[?25h | |
[?25l[41;1H:set ff=unix cpo-=A | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 35C written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[21;1H[?12l[?25h[?25l[41;1H/ENDTEST/+-1[41;13H[K[41;1H[23;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=j1,J1 | |
[?25l[24;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^JSSTART | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^JSEND | |
[?25l12 lines to indent... | |
13[7Cindented [41;19H[K[28;1H foo: { | |
that: this, | |
some: ok, | |
}, | |
"bar":{ | |
a : 2, | |
b: "123abc", | |
x: 4, | |
"y": 5 | |
}[26;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[40;1H | |
[1;41r[40;1HSTARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=j1,J1 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 35C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[1;1H[2M[1;41r[39;1H/^JSSTART | |
=/^JSEND[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=j1,J1 | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^JSSTART | |
[?25l[1;40r[1;1H[2M[1;41r[40;1HJSSTART[41;1H[K[40;1H[?12l[?25h[?25l | |
/[?12l[?25h^JSEND | |
[?25l5 lines to indent... | |
6[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[1;1H[8M[1;41r[33;1Hvar foo = [ | |
1, // indent 8 more | |
2, | |
3 | |
]; // indent 8 less | |
JSEND | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=j1,J1 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 35C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[1;1H[2M[1;41r[39;1H/^JSSTART | |
=/^JSEND[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=j1,J1 | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^JSSTART | |
[?25l[1;40r[1;1H[2M[1;41r[40;1HJSSTART[41;1H[K[40;1H[?12l[?25h[?25l | |
/[?12l[?25h^JSEND | |
[?25l7 lines to indent... | |
8[7Cindented [41;18H[K[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[1;1H[10M[1;41r[31;1Hfunction bar() { | |
var foo = [[33;9H1,[34;9H2,[35;9H3[36;13H]; // indent 16 less | |
} | |
JSEND | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=j1,J1 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 35C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[1;1H[2M[1;41r[39;1H/^JSSTART | |
=/^JSEND[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=j1,J1 | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^JSSTART | |
[?25l[1;40r[1;1H[2M[1;41r[40;1HJSSTART[41;1H[K[40;1H[?12l[?25h[?25l | |
/[?12l[?25h^JSEND | |
[?25l52 lines to indent... | |
503[7Cindented [41;19H[K[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[27m[m[H[2J[1;17Hinit.apply(this,_arguments);[3;13H} else {[4;17Hvar method=public_method[_arguments[0]];[6;17Hif (typeof(method)!='function') {[7;21Hconsole.log(class_name+' has no method "'+_arguments[0]+'"'))[8;1H;[9;21Hreturn false;[10;17H}[11;17H_arguments[0]=options;[12;17Hmethod.apply(this,_arguments);[13;13H}[14;9H}); | |
} | |
})(jQuery); | |
JSEND | |
STARTTEST | |
:set cino=j1,J1 | |
/^JSSTART | |
=/^JSEND | |
ENDTEST | |
JSSTART | |
function init(options) { | |
$(this).data(class_name+'_public',$.extend({},{ | |
foo: 'bar', | |
bar: 2, | |
foobar: [ | |
1, // indent 8 more | |
2, // indent 8 more | |
3 // indent 8 more | |
], | |
callback: function(){ | |
return true; | |
} | |
}, options||{})); | |
}[20;1H[?12l[?25h | |
[?25l[41;1H:set ff=unix cpo-=A | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 35C written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[21;1H[?12l[?25h[?25l[41;1H/ENDTEST/+-1[41;13H[K[41;1H[23;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=j1,J1 | |
[?25l[24;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^JSSTART | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^JSEND | |
[?25l14 lines to indent... | |
15[7Cindented [41;19H[K[28;1H $(this).data(class_name+'_public',$.extend({},{ | |
foo: 'bar', | |
bar: 2, | |
foobar: [ | |
1, // indent 8 more | |
2, // indent 8 more | |
3 // indent 8 more | |
], | |
callback: function(){ | |
return true; | |
[7C} | |
}, options||{}));[26;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[1;1H[3M[1;41r[38;1HJSEND | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:set cino=j1,J1 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3L, 35C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[1;40r[1;1H[2M[1;41r[39;1H/^JSSTART | |
=/^JSEND[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1HENDTEST | |
[?12l[?25h[?25l | |
:so! Xdotest | |
[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cino=j1,J1 | |
[?25l[39;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^JSSTART | |
[?25l[1;40r[40;1H | |
[1;41r[40;1HJSSTART[41;1H[K[40;1H[?12l[?25h[?25l | |
/[?12l[?25h^JSEND | |
[?25l16 lines to indent... | |
17[7Cindented [41;19H[K[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[1;1H[19M[1;41r[22;1H(function($){ | |
function init(options) {[24;9H$(this).data(class_name+'_public',$.extend({},{[25;13Hfoo: 'bar',[26;9Hbar: 2, // indent 8 more[27;9Hfoobar: [ // indent 8 more[28;13H1, // indent 8 more[29;9H2, // indent 16 more[30;9H3 // indent 16 more[31;13H],[32;9Hcallback: function(){ // indent 8 more[33;13Hreturn true; // indent 8 more[34;9H} // indent 8 more[35;9H}, options||{})); | |
} | |
})(jQuery); | |
JSEND | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:g/^STARTTEST/.,/^ENDTEST/d | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H2L, 61C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST/+-1[41;13H[K[41;1H[39;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hg/^STARTTEST/.,/^ENDTEST/d | |
[?25l216 fewer lines[41;16H[K[1;1HJSEND[1;9H[K[2;9H[K[3;9H[K[4;1HJSSTART[4;9H[K[5;1Hfunction init(options) {[5;25H[K[6;5H$(this).data(class_name+'_public',$.extend({},{[7;9Hfoo: 'bar',[7;20H[K[8;9Hbar: 2,[8;16H[K[9;9Hfoobar: [ | |
1, // indent 8 more | |
[7C2, // indent 8 more | |
3 // indent 8 more[13;9H], | |
callback: function(){ | |
return true; | |
} | |
}, options||{})); | |
}[18;2H[K[19;1HJSEND[20;1H[K[21;1H[K[22;1HJSSTART[22;8H[K[23;1H(function($){[23;14H[K[24;5Hfunction init(options) {[25;9H$(this).data(class_name+'_public',$.extend({},{[26;9H foo: 'bar',[26;24H[K[27;9Hbar: 2, // indent 8 more[28;9Hfoobar: [ // indent 8 more[29;9H 1, // indent 8 more[30;9H2, // indent 16 more[31;9H3 // indent 16 more[31;29H[K[32;13H],[32;15H[K[33;9Hcallback: function(){ // indent 8 more[34;9H return true; // indent 8 more | |
} // indent 8 more | |
}, options||{})); | |
} | |
})(jQuery); | |
JSEND[39;6H[K[40;1H[K[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h1;/start of AUTO/,$wq! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New] 1820L, 18429C written | |
[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test4.failed test.ok test.out X* viminfo | |
cp test4.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test4.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test4.in" 31 lines, 839 characters[1;1HTest for autocommand that changes current buffer on BufEnter event. | |
Check if modelines are interpreted for the correct buffer. | |
STARTTEST | |
:so small.vim | |
:set nocompatible viminfo+=nviminfo | |
:au BufEnter Xxx brew | |
/start of | |
:.,/end of/w! Xxx " write test file Xxx | |
:set ai modeline modelines=3 | |
:sp Xxx[13C" split to Xxx, autocmd will do :brew | |
G?this is a | |
othis should be auto-indented[34m^[[m | |
:[19C" Append text with autoindent to this file | |
:au! BufEnter Xxx | |
:buf Xxx[12C" go to Xxx, no autocmd anymore | |
G?this is a | |
othis should be in column 1[34m^[[m:wq " append text without autoindent to Xxx | |
G:r Xxx[13C" include Xxx in the current file | |
:?startstart?,$w! test.out | |
:qa! | |
ENDTEST | |
startstart | |
start of test file Xxx | |
vim: set noai :[27;9Hthis is a test[28;9Hthis is a test[29;9Hthis is a test[30;9Hthis is a test | |
end of test file Xxx | |
[1m[34m~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[4;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 17 lines, 557 characters written[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[5;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[22;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nocompatible viminfo+=nviminfo | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufEnter Xxx brew | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hstart of | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.,/end of/w! Xxx " write test file Xxx | |
[?25l"Xxx" [41;7H[K[41;7H[New] 7L, 124C written[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset ai modeline modelines=3 | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hsp Xxx " split to Xxx, autocmd will do :brew | |
[?25l"Xxx" [41;7H[K[41;7H7L, 124C[20;1H[1m[7mtest4.in [m[21;2H [16C" Append text with autoindent to this file | |
:au! BufEnter Xxx | |
:buf Xxx[12C" go to Xxx, no autocmd anymore | |
G?this is a | |
othis should be in column 1[34m^[[m:wq " append text without autoindent to Xxx | |
G:r Xxx " include Xxx in the current file | |
:?startstart?,$w! test.out | |
:qa![28;9H[K[29;1HENDTEST[29;9H[K[30;9H[K[31;1Hstartstart[31;11H[K[32;1Hstart of test file Xxx[32;23H[K[33;1Hvim: set noai :[33;16H[K[34;1H this is a test[34;23H[K[35;1H this is a test[35;23H[K[36;1H this is a test[36;23H[K[37;1H this is a test[37;23H[K[38;1Hend of test file Xxx[38;21H[K[40;1H[7mtest4.in [m[41;2Htest4.in" line 1 of 31 --3%-- col 1[1;1H[?12l[?25h[?25l[1;19r[1;1H[12M[1;41r[8;1H:?startstart?,$w! test.out | |
:qa! | |
ENDTEST | |
startstart | |
start of test file Xxx | |
vim: set noai :[15;9Hthis is a test[16;9Hthis is a test[17;9Hthis is a test[18;9Hthis is a test | |
end of test file Xxx[41;1H[K[19;1H[?12l[?25h[?25l[41;1H?[?12l[?25hthis is a | |
[?25l[18;9H[?12l[?25h[?25l[41;1H[1m-- INSERT --[m[41;1H[K[19;1H this should be auto-indented[20;10H[1m[7m[+][m[38;1H this should be auto-indented | |
end of test file Xxx[39;21H[K[40;10H[7m[+][19;36H[?12l[?25h[?25l[1;19r[m[19;1H | |
[1;41r[19;1Hend of test file Xxx[?12l[?25h[?25l[41;1H:[?12l[?25h " Append text with autoindent to this file | |
[?25l[19;20H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau! BufEnter Xxx | |
[?25l[19;20H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbuf Xxx " go to Xxx, no autocmd anymore | |
[?25l"Xxx" [41;7H[K[41;7H7L, 124C[1;1Hstart of test file Xxx[1;23H[K[2;1Hvim: set noai :[2;16H[K[3;1H this is a test[3;23H[K[4;1H this is a test | |
this is a test[5;23H[K[6;1H this is a test[6;23H[K[7;1Hend of test file Xxx[7;21H[K[8;1H[1m[34m~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [m[20;1H[1m[7mXxxt [1;1H[?12l[?25h[7;1H[?25l[m[41;1H[K[41;1H?[?12l[?25hthis is a | |
[?25l[6;9H[?12l[?25h[?25l[41;1H[1m-- INSERT --[m[41;1H[K[7;19r[7;1H[L[1;41r[7;1Hthis should be in column 1[20;5H[1m[7m[+][7;26H[?12l[?25h[?25l[41;1H[m:[?12l[?25hwq " append text without autoindent to Xxx | |
[?25l"Xxx[41;7H[K[41;7H8L, 151C written[1;1HTest for autocommand that changes current buffer on BufEnter event. | |
Check if modelines are interpreted for the correct buffer.[3;9H[K[4;1HSTARTTEST[4;10H[K[5;1H:so small.vim[5;14H[K[6;1H:set nocompatible viminfo+=nviminfo | |
:au BufEnter Xxx brew[7;22H[K[8;1H/start of[8;10H[K[9;1H:.,/end of/w! Xxx " write test file Xxx[9;42H[K[10;1H:set ai modeline modelines=3[10;29H[K[11;1H:sp Xxx " split to Xxx, autocmd will do :brew[11;58H[K[12;1HG?this is a[12;12H[K[13;1Hothis should be auto-indented[34m^[[m[13;32H[K[14;1H: " Append text with autoindent to this file[14;63H[K[15;1H:au! BufEnter Xxx[15;18H[K[16;1H:buf Xxx " go to Xxx, no autocmd anymore[16;52H[K[17;1HG?this is a[17;12H[K[18;1Hothis should be in column 1[34m^[[m:wq " append text without autoindent to Xxx[18;73H[K[19;1HG:r Xxx " include Xxx in the current file[19;54H[K[20;1H:?startstart?,$w! test.out[20;27H[K[21;2Hqa![21;21H[K[22;1HENDTEST[22;8H[K[23;1H[K[24;1Hstartstart[24;11H[K[25;1Hstart of test file Xxx[25;23H[K[26;1Hvim: set noai :[26;21H[K[27;1H this is a[27;23H[K[28;1H this is a test | |
this is a test[30;9Hthis is a test | |
this should be auto-indented | |
end of test file Xxx[32;21H[K[33;1H[1m[34m~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [25;1H[?12l[?25h[32;1H[?25l[m[41;1H[K[41;1H:[?12l[?25hr Xxx " include Xxx in the current file | |
[?25l"Xxx" [41;20H[K[41;7H8L, 151C[33;1Hstart of test file Xxx[33;23H[K[34;1Hvim: set noai :[34;16H[K[35;1H this is a test[35;23H[K[36;1H this is a test[36;23H[K[37;1H this is a test[37;23H[K[38;1H this is a test[38;23H[K[39;1Hthis should be in column 1[39;27H[K[40;1Hend of test file Xxx[40;21H[K[33;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h?startstart?,$w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New] 17L, 316C written[33;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test5.failed test.ok test.out X* viminfo | |
cp test5.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test5.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test5.in" 29 lines, 949 characters[1;1HTest for autocommand that deletes the current buffer on BufLeave event. | |
Also test deleting the last buffer, should give a new, empty buffer. | |
STARTTEST | |
:so small.vim | |
:au BufLeave Xxx bwipe | |
/start of | |
:.,/end of/w! Xxx[15C" write test file Xxx | |
:sp Xxx[25C" split to Xxx | |
:bwipe[26C" delete buffer Xxx, now we're back here | |
G?this is a | |
othis is some more text[34m^[[m | |
:[31C" Append some text to this file | |
:?start?,$w! test.out[11C" Write current file contents | |
:bwipe test.out[17C" delete alternate buffer | |
:au bufleave test5.in bwipe | |
:bwipe![25C" delete current buffer, get an empty one | |
ithis is another test line[34m^[[m:w >>test.out | |
:[31C" append an extra line to the output file | |
:qa! | |
ENDTEST | |
start of test file Xxx | |
vim: set noai :[25;9Hthis is a test[26;9Hthis is a test[27;9Hthis is a test[28;9Hthis is a test | |
end of test file Xxx | |
[1m[34m~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[4;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 16 lines, 664 characters written[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[5;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[21;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufLeave Xxx bwipe | |
[?25l[22;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hstart of | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.,/end of/w! Xxx " write test file Xxx | |
[?25l"Xxx" [41;7H[K[41;7H[New File] 7 lines, 124 characters written[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hsp Xxx " split to Xxx | |
[?25l"Xxx" [41;7H[K[41;7H7 lines, 124 characters[1;1Hstart of test file Xxx[1;23H[K[2;1Hvim: set noai :[2;16H[K[3;9Hthis is a test | |
this is a test | |
this is a test | |
this is a test | |
end of test file Xxx | |
[1m[34m~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [m[20;1H[1m[7mXxx [m[21;1H: [25C" Append some text to this file | |
:?start?,$w! test.out[11C" Write current file contents | |
:bwipe test.out [10C" delete alternate buffer | |
:au bufleave test5.in bwipe | |
:bwipe! [10C" delete current buffer, get an empty one | |
ithis is another test line[34m^[[m:w >>test.out | |
:[7C [10C" append an extra line to the output file | |
:qa![28;9H[K[29;1HENDTEST[29;8H[K[30;1H[K[31;1Hstart of test file Xxx[31;23H[K[32;1Hvim: set noai :[32;16H[K[33;1H this is a test[33;23H[K[34;1H this is a test[34;23H[K[35;1H this is a test[35;23H[K[36;1H this is a test[36;23H[K[37;1Hend of test file Xxx[37;21H[K[40;1H[7mtest5.in [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hbwipe " delete buffer Xxx, now we're back here | |
[?25l[1;1HTest for autocommand that deletes the current buffer on BufLeave event. | |
Also test deleting the last buffer, should give a new, empty buffer.[3;9H[K[4;1HSTARTTEST[4;10H[K[5;1H:so small.vim[5;14H[K[6;1H:au BufLeave Xxx bwipe | |
/start of[7;10H[K[8;1H:.,/end of/w! Xxx " write test file Xxx[8;54H[K[9;1H:sp Xxx " split to Xxx[9;47H[K[10;1H:bwipe " delete buffer Xxx, now we're back here[10;73H[K[11;1HG?this is a[11;12H[K[12;1Hothis is some more text[34m^[[m[12;26H[K[13;1H: " Append some text to this file[13;64H[K[14;1H:?start?,$w! test.out " Write current file contents[14;62H[K[15;1H:bwipe test.out " delete alternate buffer[15;58H[K[16;1H:au bufleave test5.in bwipe[16;28H[K[17;1H:bwipe! " delete current buffer, get an empty one[17;74H[K[18;1Hithis is another test line[34m^[[m:w >>test.out[18;42H[K[19;1H: " append an extra line to the output file[19;74H[K[20;1H:qa![20;5H[K[21;1HENDTEST[21;33H[K[22;1H[K[23;1Hstart of test file Xxx[23;33H[K[24;1Hvim: set noai :[24;16H[K[25;1H this is a test[25;33H[K[26;1H this is a test[26;23H[K[27;1H [7Cthis is a test[27;33H[K[28;1H this is a test | |
end of test file Xxx | |
[1m[34m~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [40;1H~ [m[41;1H"test5.in" line 23 of 29 --79%-- col 1[41;39H[K[23;1H[?12l[?25h[29;1H[?25l[41;1H[K[41;1H?[?12l[?25hthis is a | |
[?25l[28;9H[?12l[?25h[?25l[29;40r[29;1H[L[1;41r[29;1Hthis is some more text[41;1H[K[29;22H[?12l[?25h[30;20H[?25l[41;1H:[?12l[?25h " Append some text to this file | |
[?25l[30;20H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h?start?,$w! test.out " Write current file contents | |
[?25l"test.out" [41;12H[K[41;12H[New File] 8 lines, 147 characters written[30;20H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe test.out " delete alternate buffer | |
[?25l[30;20H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau bufleave test5.in bwipe | |
[?25l[30;20H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe! " delete current buffer, get an empty one | |
[?25l[1m[37m[41mError detected while processing BufLeave Auto commands for "test5.in":[m[41;71H[K[41;1H | |
[1m[37m[41mE89: No write since last change for buffer 1 (add ! to override)[m | |
[32mPress ENTER or type command to continue[?12l[?25h[m[1;1H[2L[?25l[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [m[41;1H[K[1;1H[?12l[?25h[?25lthis is another test line[?12l[?25h[?25l[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 26 characters appended[1;25H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h " append an extra line to the output file | |
[?25l[1;25H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test6.failed test.ok test.out X* viminfo | |
cp test6.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test6.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test6.in" 24 lines, 739 characters[1;1HTest for autocommand that redefines the argument list, when doing ":all". | |
STARTTEST | |
:so small.vim | |
:au BufReadPost Xxx2 next Xxx2 Xxx1 | |
/^start of | |
A1[34m^[[m:.,/end of/w! Xxx1 " write test file Xxx1 | |
$r2:.,/end of/w! Xxx2 " write test file Xxx2 | |
$r3:.,/end of/w! Xxx3 " write test file Xxx3 | |
:next! Xxx1 Xxx2 Xxx3 " redefine arglist; go to Xxx1 | |
:all[22C" open window for all args | |
:w! test.out[14C" Write contents of Xxx1 | |
[34m^W^W^W^W[m:w >>test.out " Append contents of last window (Xxx1) | |
:rew[22C" should now be in Xxx2 | |
:w >>test.out[13C" Append contents of Xxx2 | |
:qa! | |
ENDTEST | |
start of test file Xxx[20;9Hthis is a test[21;9Hthis is a test[22;9Hthis is a test[23;9Hthis is a test | |
end of test file Xxx | |
[1m[34m~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 13 lines, 537 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[17;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[18;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[18;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufReadPost Xxx2 next Xxx2 Xxx1 | |
[?25l[18;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^start of | |
[?25l[19;1H[?12l[?25h[?25l[22C1[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.,/end of/w! Xxx1 " write test file Xxx1 | |
[?25l"Xxx1" [41;9H[K[41;8H[New File] 6 lines, 109 characters written[19;23H[?12l[?25h[?25l2[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.,/end of/w! Xxx2 " write test file Xxx2 | |
[?25l"Xxx2" [41;9H[K[41;8H[New File] 6 lines, 109 characters written[19;23H[?12l[?25h[?25l3[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.,/end of/w! Xxx3 " write test file Xxx3 | |
[?25l"Xxx3" [41;9H[K[41;8H[New File] 6 lines, 109 characters written[19;23H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hnext! Xxx1 Xxx2 Xxx3 " redefine arglist; go to Xxx1 | |
[?25l"Xxx1"[41;8H[K[41;8H6 lines, 109 characters[1;1Hstart of test file Xxx1[1;24H[K[2;9Hthis is a test | |
this is a test | |
this is a test | |
this is a test[5;23H[K[6;1Hend of test file Xxx | |
[1m[34m~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hall " open window for all args | |
[?25l"Xxx2"[41;27H[K[41;8H6 lines, 109 characters | |
"Xxx2" 6 lines, 109 characters | |
"Xxx1" line 1 of 6 --16%-- col 1 (file (3) of 2) | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! test.out " Write contents of Xxx1 | |
[?25l"test.out" [41;12H[K[41;12H[New File] 6 lines, 109 characters written | |
[32mPress ENTER or type command to continue[?12l[?25h[27m[m[H[2J[?25l[1;1Hstart of test file Xxx1[2;9Hthis is a test[3;9Hthis is a test[4;9Hthis is a test[5;9Hthis is a test | |
end of test file Xxx | |
[1m[34m~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [m[13;1H[1m[7mXxx1 [m[14;1Hstart of test file Xxx2[15;9Hthis is a test[16;9Hthis is a test[17;9Hthis is a test[18;9Hthis is a test | |
end of test file Xxx | |
[1m[34m~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [m[26;1H[7mXxx2 [m[27;1Hstart of test file Xxx1[28;9Hthis is a test[29;9Hthis is a test[30;9Hthis is a test[31;9Hthis is a test | |
end of test file Xxx | |
[1m[34m~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [m[40;1H[7mXxx1 [1;1H[?12l[?25h[13;1HXxx1[m[1m[7m [m[7m [m[26;1H[1m[7mXxx2 [14;1H[m[26;1H[7mXxx2[m[1m[7m [m[7m [m[40;1H[1m[7mXxx1 [27;1H[?25l[41;1H[m:[?12l[?25hw >>test.out " Append contents of last window (Xxx1) | |
[?25l"test.out" [41;12H[K[41;12H6 lines, 109 characters appended[27;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hrew " should now be in Xxx2 | |
[?25l"Xxx2" line 1 of 6 --16%-- col 1 (file 1 of 2)[41;47H[K[27;23H2[40;4H[1m[7m2 [27;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw >>test.out " Append contents of Xxx2 | |
[?25l"test.out" [41;12H[K[41;12H6 lines, 109 characters appended[27;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test7.failed test.ok test.out X* viminfo | |
cp test7.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test7.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test7.in" 26 lines, 675 characters[1;1HTest for autocommand that changes the buffer list, when doing ":ball". | |
STARTTEST | |
:so small.vim | |
/^start of | |
A1[34m^[[m:.,/end of/w! Xxx1 " write test file Xxx1 | |
:sp Xxx1 | |
:close | |
$r2:.,/end of/w! Xxx2 " write test file Xxx2 | |
:sp Xxx2 | |
:close | |
$r3:.,/end of/w! Xxx3 " write test file Xxx3 | |
:sp Xxx3 | |
:close | |
:au BufReadPost Xxx2 bwipe | |
$r4:ball[17C" open window for all args, close Xxx2 | |
:.,$w! test.out[10C" Write contents of this file | |
[34m^W^W[m:w >>test.out[8C" Append contents of second window (Xxx1) | |
[34m^W^W[m:/^start of/,$w >>test.out " Append contents of last window (this file) | |
:qa! | |
ENDTEST | |
start of test file Xxx[24;9Hthis is a test[25;9Hthis is a test | |
end of test file Xxx | |
[1m[34m~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 17 lines, 508 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[21;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[22;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^start of | |
[?25l[23;1H[?12l[?25h[?25l[22C1[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.,/end of/w! Xxx1 " write test file Xxx1 | |
[?25l"Xxx1" [41;9H[K[41;8H[New File] 4 lines, 77 characters written[23;23H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hsp Xxx1 | |
[?25l"Xxx1" [41;8H[K[41;8H4 lines, 77 characters[1;1Hstart of test file Xxx1[1;24H[K[2;9Hthis is a test | |
this is a test | |
end of test file Xxx | |
[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [m[20;1H[1m[7mXxx1 [m[21;1H:sp Xxx3 | |
:close | |
:au BufReadPost Xxx2 bwipe | |
$r4:ball " open window for all args, close Xxx2 | |
:.,$w! test.out " Write contents of this file | |
[34m^W^W[m:w >>test.out " Append contents of second window (Xxx1) | |
[34m^W^W[m:/^start of/,$w >>test.out " Append contents of last window (this file)[27;78H[K[28;1H:qa![28;5H[K[29;1HENDTEST[29;8H[K[30;1H[K[31;1Hstart of test file Xxx1[31;24H[K[32;1H this is a test[32;23H[K[33;1H this is a test[33;23H[K[34;1Hend of test file Xxx[34;21H[K[40;1H[7mtest7.in [+] [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hclose | |
[?25l[1;1HTest for autocommand that changes the buffer list, when doing ":ball".[2;9H[K[3;1HSTARTTEST[3;10H[K[4;1H:so small.vim[4;14H[K[5;1H/^start of[5;11H[K[6;1HA1[34m^[[m:.,/end of/w! Xxx1 " write test file Xxx1[6;48H[K[7;1H:sp Xxx1[7;9H[K[8;1H:close[8;7H[K[9;1H$r2:.,/end of/w! Xxx2 " write test file Xxx2[9;48H[K[10;1H:sp Xxx2[10;9H[K[11;1H:close[11;7H[K[12;1H$r3:.,/end of/w! Xxx3 " write test file Xxx3[12;48H[K[13;1H:sp Xxx3[13;9H[K[14;1H:close[14;7H[K[15;1H:au BufReadPost Xxx2 bwipe[15;27H[K[16;1H$r4:ball " open window for all args, close Xxx2[16;64H[K[17;1H:.,$w! test.out " Write contents of this file[17;55H[K[18;1H[34m^W^W[m:w >>test.out " Append contents of second window (Xxx1)[18;67H[K[19;1H[34m^W^W[m:/^start of/,$w >>test.out " Append contents of last window (this file)[19;78H[K[20;1H:qa![20;5H[K[21;1HENDTEST[21;8H[K[22;1H[K[23;1Hstart of test file Xxx1[23;24H[K[24;1H this is a test[24;26H[K[25;1H this is a test[25;26H[K[26;1Hend of test file Xxx[26;26H[K[27;1H[1m[34m~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [40;1H~ [23;23H[?12l[?25h[?25l[m2[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.,/end of/w! Xxx2 " write test file Xxx2 | |
[?25l"Xxx2" [41;9H[K[41;8H[New File] 4 lines, 77 characters written[23;23H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hsp Xxx2 | |
[?25l"Xxx2" [41;8H[K[41;8H4 lines, 77 characters[1;1Hstart of test file Xxx2[1;24H[K[2;9Hthis is a test | |
this is a test | |
end of test file Xxx | |
[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [m[20;1H[1m[7mXxx2 [m[21;1H:sp Xxx3 | |
:close | |
:au BufReadPost Xxx2 bwipe | |
$r4:ball " open window for all args, close Xxx2 | |
:.,$w! test.out " Write contents of this file | |
[34m^W^W[m:w >>test.out " Append contents of second window (Xxx1) | |
[34m^W^W[m:/^start of/,$w >>test.out " Append contents of last window (this file)[27;78H[K[28;1H:qa![28;5H[K[29;1HENDTEST[29;8H[K[30;1H[K[31;1Hstart of test file Xxx2[31;24H[K[32;1H this is a test[32;23H[K[33;1H this is a test[33;23H[K[34;1Hend of test file Xxx[34;21H[K[40;1H[7mtest7.in [+] [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hclose | |
[?25l[1;1HTest for autocommand that changes the buffer list, when doing ":ball".[2;9H[K[3;1HSTARTTEST[3;10H[K[4;1H:so small.vim[4;14H[K[5;1H/^start of[5;11H[K[6;1HA1[34m^[[m:.,/end of/w! Xxx1 " write test file Xxx1[6;48H[K[7;1H:sp Xxx1[7;9H[K[8;1H:close[8;7H[K[9;1H$r2:.,/end of/w! Xxx2 " write test file Xxx2[9;48H[K[10;1H:sp Xxx2[10;9H[K[11;1H:close[11;7H[K[12;1H$r3:.,/end of/w! Xxx3 " write test file Xxx3[12;48H[K[13;1H:sp Xxx3[13;9H[K[14;1H:close[14;7H[K[15;1H:au BufReadPost Xxx2 bwipe[15;27H[K[16;1H$r4:ball " open window for all args, close Xxx2[16;64H[K[17;1H:.,$w! test.out " Write contents of this file[17;55H[K[18;1H[34m^W^W[m:w >>test.out " Append contents of second window (Xxx1)[18;67H[K[19;1H[34m^W^W[m:/^start of/,$w >>test.out " Append contents of last window (this file)[19;78H[K[20;1H:qa![20;5H[K[21;1HENDTEST[21;8H[K[22;1H[K[23;1Hstart of test file Xxx2[23;24H[K[24;1H this is a test[24;26H[K[25;1H this is a test[25;26H[K[26;1Hend of test file Xxx[26;26H[K[27;1H[1m[34m~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [40;1H~ [23;23H[?12l[?25h[?25l[m3[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.,/end of/w! Xxx3 " write test file Xxx3 | |
[?25l"Xxx3" [41;9H[K[41;8H[New File] 4 lines, 77 characters written[23;23H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hsp Xxx3 | |
[?25l"Xxx3" [41;8H[K[41;8H4 lines, 77 characters[1;1Hstart of test file Xxx3[1;24H[K[2;9Hthis is a test | |
this is a test | |
end of test file Xxx | |
[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [m[20;1H[1m[7mXxx3 [m[21;1H:sp Xxx3 | |
:close | |
:au BufReadPost Xxx2 bwipe | |
$r4:ball " open window for all args, close Xxx2 | |
:.,$w! test.out " Write contents of this file | |
[34m^W^W[m:w >>test.out " Append contents of second window (Xxx1) | |
[34m^W^W[m:/^start of/,$w >>test.out " Append contents of last window (this file)[27;78H[K[28;1H:qa![28;5H[K[29;1HENDTEST[29;8H[K[30;1H[K[31;1Hstart of test file Xxx3[31;24H[K[32;1H this is a test[32;23H[K[33;1H this is a test[33;23H[K[34;1Hend of test file Xxx[34;21H[K[40;1H[7mtest7.in [+] [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hclose | |
[?25l[1;1HTest for autocommand that changes the buffer list, when doing ":ball".[2;9H[K[3;1HSTARTTEST[3;10H[K[4;1H:so small.vim[4;14H[K[5;1H/^start of[5;11H[K[6;1HA1[34m^[[m:.,/end of/w! Xxx1 " write test file Xxx1[6;48H[K[7;1H:sp Xxx1[7;9H[K[8;1H:close[8;7H[K[9;1H$r2:.,/end of/w! Xxx2 " write test file Xxx2[9;48H[K[10;1H:sp Xxx2[10;9H[K[11;1H:close[11;7H[K[12;1H$r3:.,/end of/w! Xxx3 " write test file Xxx3[12;48H[K[13;1H:sp Xxx3[13;9H[K[14;1H:close[14;7H[K[15;1H:au BufReadPost Xxx2 bwipe[15;27H[K[16;1H$r4:ball " open window for all args, close Xxx2[16;64H[K[17;1H:.,$w! test.out " Write contents of this file[17;55H[K[18;1H[34m^W^W[m:w >>test.out " Append contents of second window (Xxx1)[18;67H[K[19;1H[34m^W^W[m:/^start of/,$w >>test.out " Append contents of last window (this file)[19;78H[K[20;1H:qa![20;5H[K[21;1HENDTEST[21;8H[K[22;1H[K[23;1Hstart of test file Xxx3[23;24H[K[24;1H this is a test[24;26H[K[25;1H this is a test[25;26H[K[26;1Hend of test file Xxx[26;26H[K[27;1H[1m[34m~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [40;1H~ [23;23H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hau BufReadPost Xxx2 bwipe | |
[?25l[23;23H[?12l[?25h[?25l4[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hball " open window for all args, close Xxx2 | |
[?25l"Xxx1"[41;23H[K[41;8H4 lines, 77 characters | |
"Xxx2" 4 lines, 77 characters | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25h.,$w! test.out " Write contents of this file | |
[?25l"test.out" [41;12H[K[41;12H[New File] 4 lines, 77 characters written | |
[32mPress ENTER or type command to continue[?12l[?25h[27m[m[H[2J[?25l[1;1H:sp Xxx3 | |
:close | |
:au BufReadPost Xxx2 bwipe | |
$r4:ball[17C" open window for all args, close Xxx2 | |
:.,$w! test.out[10C" Write contents of this file | |
[34m^W^W[m:w >>test.out[8C" Append contents of second window (Xxx1) | |
[34m^W^W[m:/^start of/,$w >>test.out " Append contents of last window (this file) | |
:qa! | |
ENDTEST | |
start of test file Xxx4[12;9Hthis is a test[13;9Hthis is a test | |
end of test file Xxx | |
[1m[34m~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [m[20;1H[1m[7mtest7.in [+] [m[21;1Hstart of test file Xxx1[22;9Hthis is a test[23;9Hthis is a test | |
end of test file Xxx | |
[1m[34m~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [m[40;1H[7mXxx1 [11;23H[?12l[?25h[20;1Htest7.in [+][m[1m[7m [m[7m [m[40;1H[1m[7mXxx1 [21;1H[?25l[41;1H[m:[?12l[?25hw >>test.out " Append contents of second window (Xxx1) | |
[?25l"test.out" [41;12H[K[41;12H4 lines, 77 characters appended[21;1H[?12l[?25h[20;1H[1m[7mtest7.in [+] [m[40;1H[7mXxx1[m[1m[7m [m[7m [11;23H[?25l[m[41;1H[K[41;1H:[?12l[?25h/^start of/,$w >>test.out " Append contents of last window (this file) | |
[?25l[31msearch hit BOTTOM, continuing at TOP[m[41;37H[K[41;1H"test.out" [41;12H[K[41;12H4 lines, 77 characters appended[11;23H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test8.failed test.ok test.out X* viminfo | |
cp test8.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test8.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test8.in" 46 lines, 1236 characters[1;1HTest for BufWritePre autocommand that deletes or unloads the buffer. | |
Test for BufUnload autocommand that unloads all other buffers. | |
STARTTEST | |
:so small.vim | |
:au BufWritePre Xxx1 bunload | |
:au BufWritePre Xxx2 bwipe | |
/^start of | |
A1[34m^[[m:.,/end of/w! Xxx1 " write test file Xxx1 | |
$r2:.,/end of/w! Xxx2 " write test file Xxx2 | |
:e! Xxx2[16C" edit Xxx2 | |
:bdel test8.in[10C" delete this file from the buffer list | |
:e Xxx1[17C" edit Xxx1 | |
:w[22C" write it, will unload it and give an error msg | |
:w! test.out[12C" Write contents of this file | |
:e! Xxx2[16C" start editing Xxx2 | |
:bwipe test.out[9C" remove test.out from the buffer list | |
:w[22C" write it, will delete the buffer and give an error msg | |
:w >>test.out[11C" Append contents of this file | |
:au! BufWritePre | |
:func CloseAll() | |
let i = 0 | |
while i <= bufnr('$') | |
if i != bufnr('%') && bufloaded(i)[25;7Hexe i . "bunload" | |
endif | |
let i += 1 | |
endwhile | |
endfunc | |
:func WriteToOut() | |
edit! test.out | |
$put ='VimLeave done' | |
write | |
endfunc | |
:set viminfo='100,nviminfo | |
:au BufUnload * call CloseAll() | |
:au VimLeave * call WriteToOut() | |
:e small.vim | |
:sp mbyte.vim | |
:q[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[4;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 37 lines, 1054 characters written[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[5;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[2M[1;41r[39;1H:qa! | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufWritePre Xxx1 bunload | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufWritePre Xxx2 bwipe | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^start of | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Hstart of Xxx[41;1H[K[40;1H[?12l[?25h[?25l[12C1[?12l[?25h[?25l | |
:[?12l[?25h.,/end of/w! Xxx1 " write test file Xxx1 | |
[?25l"Xxx1" [41;9H[K[41;8H[New File] 3 lines, 31 characters written[40;13H[?12l[?25h[?25l2[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.,/end of/w! Xxx2 " write test file Xxx2 | |
[?25l"Xxx2" [41;9H[K[41;8H[New File] 3 lines, 31 characters written[40;13H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xxx2 " edit Xxx2 | |
[?25l"Xxx2" [41;8H[K[41;8H3 lines, 31 characters[1;1Hstart of Xxx2 | |
test[2;13H[K[3;1Hend of Xxx[3;11H[K[4;1H[1m[34m~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hbdel test8.in[34m^I^I[m" delete this file from the buffer list | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xxx1 " edit Xxx1 | |
[?25l"Xxx1" [41;25H[K[41;8H3 lines, 31 characters[1;13H1 | |
[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw " write it, will unload it and give an error msg | |
[?25l"Xxx2"[41;25H[K[41;8H3 lines, 31 characters | |
[1m[37m[41mE203: Autocommands deleted or unloaded buffer to be written[m | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! test.out " Write contents of this file | |
[?25l"test.out" [41;12H[K[41;12H[New File] 3 lines, 31 characters written | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25he! Xxx2 " start editing Xxx2 | |
[?25l"Xxx2" [41;8H[K[41;8H3 lines, 31 characters[1;1H[3L[1;1Hstart of Xxx2[2;9Htest | |
end of Xxx[41;1H[K[41;1H"Xxx2" 3 lines, 31 characters[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe test.out " remove test.out from the buffer list | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw " write it, will delete the buffer and give an error msg | |
[?25l"Xxx1"[41;25H[K[41;8H3 lines, 31 characters | |
[1m[37m[41mE203: Autocommands deleted or unloaded buffer to be written[m | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw >>test.out " Append contents of this file | |
[?25l"test.out" [41;12H[K[41;12H3 lines, 31 characters appended | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hau! BufWritePre | |
[?25l[1;1H[3L[1;1Hstart of Xxx1[2;9Htest | |
end of Xxx[41;1H[K[1;1H[?12l[?25h[?25l[41;1H:[?12l[?25hfunc CloseAll() | |
[?25l | |
: [?12l[?25h let i = 0 | |
[?25l: [?12l[?25h while i <= bufnr('$') | |
[?25l: [?12l[?25h if i != bufnr('%') && bufloaded(i) | |
[?25l: [?12l[?25h exe i . "bunload" | |
[?25l: [?12l[?25h endif | |
[?25l: [?12l[?25h let i += 1 | |
[?25l: [?12l[?25h endwhile | |
[?25l: [?12l[?25hendfunc | |
[1;1H[8L[?25l[1;1Hstart of Xxx1[2;9Htest | |
end of Xxx | |
[1m[34m~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [m[41;1H[K[1;1H[?12l[?25h[?25l[41;1H:[?12l[?25hfunc WriteToOut() | |
[?25l | |
: [?12l[?25h edit! test.out | |
[?25l: [?12l[?25h $put ='VimLeave done' | |
[?25l: [?12l[?25h write | |
[?25l: [?12l[?25hendfunc | |
[1;1H[4L[?25l[1;1Hstart of Xxx1[2;9Htest | |
end of Xxx | |
[1m[34m~ [m[41;1H[K[1;1H[?12l[?25h[?25l[41;1H:[?12l[?25hset viminfo='100,nviminfo | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufUnload * call CloseAll() | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau VimLeave * call WriteToOut() | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he small.vim | |
[?25l[1m[37m[41mError detected while processing function CloseAll:[m | |
[33mline 4:[m | |
[1m[37m[41mE515: No buffers were unloaded: 0bunload[m | |
"small.vim" 1 line, 1 character | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hsp mbyte.vim | |
[?25l"mbyte.vim" [41;13H[K[41;13H0 lines, 0 characters[1;1H[4L[2;1H[1m[34m~ [3;1H~ [4;1H~ [m[20;1H[1m[7mmbyte.vim [m[21;1H[K[40;1H[7msmall.vim [m[41;1H[K[41;1H"mbyte.vim" 0 lines, 0 characters[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hq | |
[?25l[1m[37m[41mError detected while processing function CloseAll:[m | |
[33mline 4:[m | |
[1m[37m[41mE515: No buffers were unloaded: 0bunload | |
[m | |
"test.out" 6 lines, 62 characters | |
"test.out" 7 lines, 76 characters written | |
[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test9.failed test.ok test.out X* viminfo | |
cp test9.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test9.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test9.in" 12 lines, 255 characters[1;1HTest for Bufleave autocommand that deletes the buffer we are about to edit. | |
STARTTEST | |
:so small.vim | |
:au BufLeave test9.in bwipe yy | |
:e yy | |
:/^start of/,$w! test.out " Write contents of this file | |
:qa! | |
ENDTEST | |
start of test file xx | |
end of test file xx | |
[1m[34m~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 5 lines, 117 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[9;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[10;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[10;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufLeave test9.in bwipe yy | |
[?25l[10;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he yy | |
[?25l[1m[37m[41mE143: Autocommands unexpectedly deleted new buffer yy[10;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25h/^start of/,$w! test.out " Write contents of this file | |
[?25l"test.out" [41;12H[K[41;12H[New File] 2 lines, 42 characters written[10;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test10.failed test.ok test.out X* viminfo | |
cp test10.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test10.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test10.in" 114 lines, 3080 characters[1;1HTest for 'errorformat'. This will fail if the quickfix feature was disabled. | |
STARTTEST | |
:so small.vim | |
:" Also test a BOM is ignored. | |
:so mbyte.vim | |
:set encoding=utf-8 | |
:7/start of errorfile/,/end of errorfile/w! Xerrorfile1 | |
:7/start of errorfile/,/end of errorfile/-1w! Xerrorfile2 | |
:/start of testfile/,/end of testfile/w! Xtestfile | |
:set efm+==%f=\\,\ line\ %l%*\\D%v%*[^\ ]\ %m | |
:set efm^=%AError\ in\ \"%f\"\ at\ line\ %l:,%Z%p^,%C%m | |
:cf Xerrorfile2 | |
:clast | |
:copen | |
:let a=w:quickfix_title | |
:wincmd p | |
lgR[34m^R[m=a[34m^M^[[m | |
:cf Xerrorfile1 | |
grA | |
:cn | |
gRLINE 6, COL 19[34m^[[m | |
:cn | |
gRNO COLUMN SPECIFIED[34m^[[m | |
:cn | |
gRAGAIN NO COLUMN[34m^[[m | |
:cn | |
gRCOL 1[34m^[[m | |
:cn | |
gRCOL 2[34m^[[m | |
:cn | |
gRCOL 10[34m^[[m | |
:cn | |
gRVCOL 10[34m^[[m | |
:cn | |
grI | |
:cn | |
gR. SPACE POINTER[34m^[[m | |
:cn | |
gR. DOT POINTER[34m^[[1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 50 lines, 801 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[14M[1;41r[27;1H:cn | |
gR. DASH POINTER[34m^[[m | |
:cn | |
gR. TAB-SPACE POINTER[34m^[[m | |
:clast | |
:cprev | |
:cprev | |
:wincmd w | |
:let a=w:quickfix_title | |
:wincmd p | |
lgR[34m^R[m=a[34m^M^[[m | |
:w! test.out[13C" Write contents of this file | |
:qa! | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" Also test a BOM is ignored. | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso mbyte.vim | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset encoding=utf-8 | |
[?25l[27m[m[H[2J[1;1H:let a=w:quickfix_title | |
:wincmd p | |
lgR[34m^R[m=a[34m^M^[[m | |
:cf Xerrorfile1 | |
grA | |
:cn | |
gRLINE 6, COL 19[34m^[[m | |
:cn | |
gRNO COLUMN SPECIFIED[34m^[[m | |
:cn | |
gRAGAIN NO COLUMN[34m^[[m | |
:cn | |
gRCOL 1[34m^[[m | |
:cn | |
gRCOL 2[34m^[[m | |
:cn | |
gRCOL 10[34m^[[m | |
:cn | |
gRVCOL 10[34m^[[m | |
:cn | |
grI | |
:cn | |
gR. SPACE POINTER[34m^[[m | |
:cn | |
gR. DOT POINTER[34m^[[m | |
:cn | |
gR. DASH POINTER[34m^[[m | |
:cn | |
gR. TAB-SPACE POINTER[34m^[[m | |
:clast | |
:cprev | |
:cprev | |
:wincmd w | |
:let a=w:quickfix_title | |
:wincmd p | |
lgR[34m^R[m=a[34m^M^[[m | |
:w! test.out[13C" Write contents of this file | |
:qa! | |
ENDTEST | |
[?12l[?25h[?25l | |
:[?12l[?25h7/start of errorfile/,/end of errorfile/w! Xerrorfile1 | |
[?25l"Xerrorfile1" [41;15H[K[41;15H[New File] 83 lines, 1974 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h7/start of errorfile/,/end of errorfile/-1w! Xerrorfile2 | |
[?25l"Xerrorfile2" [41;15H[K[41;15H[New File] 82 lines, 1957 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/start of testfile/,/end of testfile/w! Xtestfile | |
[?25l"Xtestfile" [41;13H[K[41;13H[New File] 23 lines, 937 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset efm+==%f=\\,\ line\ %l%*\\D%v%*[^\ ]\ %m | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset efm^=%AError\ in\ \"%f\"\ at\ line\ %l:,%Z%p^,%C%m | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcf Xerrorfile2 | |
[?25l"Xtestfile" [41;13H[K[41;13H23 lines, 937 characters | |
(50 of 70): 1506-045 (S) Undeclared identifier fd_set. | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hclast | |
[?25l(70 of 70): What is the title of the quickfix window? | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hcopen | |
[?25l[1;1H[3L[1;1Hstart of testfile[2;9Hxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 2[3;9Hxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 3 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 4 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 5 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 6 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 7 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 8 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 9 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 10 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 11 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 12 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 13 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 14 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 15 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 16 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 17 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 18 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 19 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 20 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 21 | |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 22 | |
end of testfile[23;16H[K[24;1H[1m[34m~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [m[29;1H[7mXtestfile [m[30;1HXtestfile|15 col 10| this is another error, but in vcol 10 this time | |
Xtestfile|16| yet another problem | |
Xtestfile|17 col 13| x should be a dot xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 17 | |
Xtestfile|18 col 14| x should be a dot xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 18 | |
Xtestfile|19 col 15| x should be a dot xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 19 | |
Xtestfile|20 col 16| x should be a dot xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 20 | |
|| [36;4H[K[37;1H|| Does anyone know what is the problem and how to correction it? | |
Xtestfile|21 col 9| What is the title of the quickfix window? | |
[30m[43mXtestfile|22 col 9| What is the title of the quickfix window? [m[40;1H[1m[7m[Quickfix List] [m[41;1H[K[39;1H[?12l[?25h[?25l | |
:[?12l[?25hlet a=w:quickfix_title | |
[?25l[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hwincmd p | |
[?25l[29;1H[1m[7mXtestfile [m[40;1H[7m[Quickfix List][m[1m[7m [m[7m [22;16H[?12l[?25h[mx[?25l[41;1H[K[41;1H=[?12l[?25ha | |
[?25l[22;17H:cf Xerrorfile2[29;11H[1m[7m[+][22;31H[?12l[?25h[23;15H[?25l[m[41;1H[K[41;1H:[?12l[?25hcf Xerrorfile1 | |
[?25l[30;1H|| :qa![30;8H[K[31;1H|| ENDTEST[31;11H[K[32;1H|| [32;4H[K[33;1H|| start of errorfile[33;23H[K[34;1H[30m[43mXtestfile|4 col 12| 1506-045 (S) Undeclared identifier fd_set. [m[35;11H6 col 19| this is an error[35;37H[K[36;4Hgcc -c -DHAVE_CONFIsing-prototypes -I/usr/X11R6/include version.c | |
Xtestfile|9| parse error before `asd'[37;38H[K[38;1H|| make: *** [vim] Error 1[38;27H[K[39;1HXtestfile|10| there is an error[39;32H[K[4;19H[?12l[?25h[?25lA[?12l[?25h[5;19H[?25l[41;1H[K[41;1H:[?12l[?25hcn | |
[?25l[34;1HXtestfile|4 col 12| 1506-045 (S) Undeclared identifier fd_set.[34;63H[K[35;1H[30m[43mXtestfile|6 col 19| this is an error [6;26H[?12l[?25h[?25l[mLINE 6, COL 19[?12l[?25h[7;39H[?25l[41;1H[K[41;1H:[?12l[?25hcn | |
[?25l[35;1HXtestfile|6 col 19| this is an error[35;37H[K[37;1H[30m[43mXtestfile|9| parse error before `asd' [9;9H[?12l[?25h[?25l[mNO COLUMN SPECIFIED[?12l[?25h[10;27H[?25l[41;1H[K[41;1H:[?12l[?25hcn | |
[?25l[37;1HXtestfile|9| parse error before `asd'[37;38H[K[39;1H[30m[43mXtestfile|10| there is an error [10;9H[?12l[?25h[?25l[mAGAIN NO COLUMN[?12l[?25h[11;23H[?25l[41;1H[K[41;1H:[?12l[?25hcn | |
[?25l[30;39r[30;1H[3M[1;41r[36;1HXtestfile|10| there is an error[36;32H[K[37;1H|| | |
|| 2 returned | |
[30m[43mXtestfile|11 col 1| this is an error [m[41;1H[K[11;8H[?12l[?25h[?25l | |
COL 1[?12l[?25h[12;8H[?25l[41;1H:[?12l[?25hcn | |
[?25l[30;39r[39;1H | |
[1;41r[38;1HXtestfile|11 col 1| this is an error[38;37H[K[39;1H[30m[43mXtestfile|12 col 2| this is another error [m[41;1H[K[12;9H[?12l[?25h[?25lCOL 2[?12l[?25h[13;13H[?25l[41;1H:[?12l[?25hcn | |
[?25l[30;39r[39;1H | |
[1;41r[38;1HXtestfile|12 col 2| this is another error[38;42H[K[39;1H[30m[43mXtestfile|14 col 10| this is an error in column 10 [m[41;1H[K[14;17H[?12l[?25h[?25lCOL 10[?12l[?25h[15;22H[?25l[41;1H:[?12l[?25hcn | |
[?25l[30;39r[39;1H | |
[1;41r[38;1HXtestfile|14 col 10| this is an error in column 10[38;51H[K[39;1H[30m[43mXtestfile|15 col 10| this is another error, but in vcol 10 this time [m[41;1H[K[15;10H[?12l[?25h[?25lVCOL 10[?12l[?25h[16;16H[?25l[41;1H:[?12l[?25hcn | |
[?25l[30;39r[39;1H | |
[1;41r[38;1HXtestfile|15 col 10| this is another error, but in vcol 10 this time[38;69H[K[39;1H[30m[43mXtestfile|16| yet another problem [m[41;1H[K[16;9H[?12l[?25h[?25lI[?12l[?25h[17;9H[?25l[41;1H:[?12l[?25hcn | |
[?25l[30;39r[39;1H | |
[1;41r[38;1HXtestfile|16| yet another problem[38;34H[K[39;1H[30m[43mXtestfile|17 col 13| x should be a dot xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 17 [m[41;1H[K[17;13H[?12l[?25h[?25l. SPACE POINTER[?12l[?25h[18;27H[?25l[41;1H:[?12l[?25hcn | |
[?25l[30;39r[39;1H | |
[1;41r[38;1HXtestfile|17 col 13| x should be a dot xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 17[38;82H[K[39;1H[30m[43mXtestfile|18 col 14| x should be a dot xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 18 [m[41;1H[K[18;14H[?12l[?25h[?25l. DOT POINTER[?12l[?25h[19;26H[?25l[41;1H:[?12l[?25hcn | |
[?25l[30;39r[39;1H | |
[1;41r[38;1HXtestfile|18 col 14| x should be a dot xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 18[38;82H[K[39;1H[30m[43mXtestfile|19 col 15| x should be a dot xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 19 [m[41;1H[K[19;15H[?12l[?25h[?25l. DASH POINTER[?12l[?25h[20;28H[?25l[41;1H:[?12l[?25hcn | |
[?25l[30;39r[39;1H | |
[1;41r[38;1HXtestfile|19 col 15| x should be a dot xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 19[38;82H[K[39;1H[30m[43mXtestfile|20 col 16| x should be a dot xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 20 [m[41;1H[K[20;16H[?12l[?25h[?25l. TAB-SPACE POINTER[?12l[?25h[21;34H[?25l[41;1H:[?12l[?25hclast | |
[?25l[30;39r[30;1H[5M[1;41r[34;1HXtestfile|20 col 16| x should be a dot xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 20[34;82H[K[35;1H|| | |
|| Does anyone know what is the problem and how to correction it? | |
Xtestfile|21 col 9| What is the title of the quickfix window? | |
Xtestfile|22 col 9| What is the title of the quickfix window? | |
[30m[43m|| end of errorfile [m[41;1H[K[21;9H[?12l[?25h[?25l[41;1H:[?12l[?25hcprev | |
[?25l[38;1H[30m[43mXtestfile|22 col 9| What is the title of the quickfix window? [m[39;1H|| end of errorfile[39;20H[K[22;16H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcprev | |
[?25l[37;1H[30m[43mXtestfile|21 col 9| What is the title of the quickfix window? [m[38;1HXtestfile|22 col 9| What is the title of the quickfix window?[38;62H[K[21;16H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hwincmd w | |
[?25l[29;1H[7mXtestfile [+][m[1m[7m [m[7m [m[40;1H[1m[7m[Quickfix List] [37;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hlet a=w:quickfix_title | |
[?25l[37;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hwincmd p | |
[?25l[29;1H[1m[7mXtestfile [+] [m[40;1H[7m[Quickfix List][m[1m[7m [m[7m [21;16H[?12l[?25h[mx[?25l[41;1H[K[41;1H=[?12l[?25ha | |
[?25l[21;17H:cf Xerrorfile1[?12l[?25h[22;31H[?25l[41;1H[K[41;1H:[?12l[?25hw! test.out " Write contents of this file | |
[?25l"test.out" [41;12H[K[41;12H[New File] 23 lines, 942 characters written[29;11H[1m[7m [22;31H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test11.failed test.ok test.out X* viminfo | |
cp test11.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test11.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test11.in" 84 lines, 3345 characters[1;1HTests for autocommands: | |
- FileWritePre[10Cwriting a compressed file | |
- FileReadPost[10Creading a compressed file | |
- BufNewFile[12Creading a file template | |
- BufReadPre[12Cdecompressing the file to be read | |
- FilterReadPre[9Csubstituting characters in the temp file | |
- FilterReadPost[8Csubstituting characters after filtering | |
- FileReadPre[11Cset options for decompression | |
- FileReadPost[10Cdecompress the file | |
Note: This test is skipped if "gzip" is not available. | |
$GZIP is made empty, "-v" would cause trouble. | |
Use a FileChangedShell autocommand to avoid a prompt for "Xtestfile.gz" being | |
modified outside of Vim (noticed on Solaris). | |
STARTTEST | |
:so small.vim | |
:" drop out when there is no gzip program | |
:if !executable("gzip") | |
: e! test.ok | |
: w! test.out | |
: qa! | |
:endif | |
:let $GZIP = "" | |
:au FileChangedShell * echo "caught FileChangedShell" | |
:set bin | |
:au FileWritePre *.gz '[,']!gzip | |
:au FileWritePost *.gz undo | |
:/^start of testfile/,/^end of testfile/w! Xtestfile.gz | |
:au FileReadPost *.gz '[,']!gzip -d | |
:$r Xtestfile.gz[16C" Read and decompress the testfile | |
:?startstart?,$w! test.out " Write contents of this file | |
:au BufNewFile *.c read Xtest.c | |
:/^start of test.c/+1,/^end of test.c/-1w! Xtest.c | |
:e! foo.c[23C" Will load Xtest.c | |
:au FileAppendPre *.out '[,']s/new/NEW/ | |
:au FileAppendPost *.out !cat Xtest.c >>test.out | |
:w>>test.out[20C" Append it to the output file | |
:au! FileAppendPre | |
:" setup autocommands to decompress before reading and re-compress afterwards[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[16;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[17;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 48 lines, 2277 characters written[17;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[17;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[27m[m[H[2J[1;1H:e! Xtestfile.gz[16C" Edit compressed file | |
:w>>test.out[20C" Append it to the output file | |
:set shelltemp[18C" need temp files here | |
:au FilterReadPre *.out call rename(expand("<afile>"), expand("<afile>") . ".t") | |
:au FilterReadPre *.out exe '!sed s/e/E/ ' . shellescape(expand("<afile>")) . ".t >" . shellescape(expand("<afile>")) | |
:au FilterReadPre *.out exe '!rm ' . shellescape(expand("<afile>")) . '.t' | |
:au FilterReadPost *.out '[,']s/x/X/g | |
:e! test.out[20C" Edit the output file | |
:23,$!cat | |
:23,$s/\r$//[17C" remove CR for when sed adds them | |
:au! FileReadPre *.gz exe '!gzip -d ' . shellescape(expand("<afile>")) | |
:au FileReadPre *.gz call rename(expand("<afile>:r"), expand("<afile>")) | |
:au! FileReadPost *.gz '[,']s/l/L/ | |
:$r Xtestfile.gz[13C" Read compressed file | |
:w[27C" write it, after filtering | |
:au![13C" remove all autocommands | |
:e[15C" Edit test.out again | |
:set nobin ff& " use the default fileformat for writing | |
:w | |
:qa! | |
ENDTEST | |
startstart | |
start of testfile | |
line 2 Abcdefghijklmnopqrstuvwxyz | |
line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 4 Abcdefghijklmnopqrstuvwxyz | |
line 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 6 Abcdefghijklmnopqrstuvwxyz | |
line 7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 8 Abcdefghijklmnopqrstuvwxyz | |
line 9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 10 Abcdefghijklmnopqrstuvwxyz | |
end of testfile | |
start of test.c | |
/* | |
* Here is a new .c file | |
*/ | |
end of test.c[21;1H[?12l[?25h | |
[?25l[41;1H:so! Xdotest | |
[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" drop out when there is no gzip program | |
[?25l[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hif !executable("gzip") | |
[?25l | |
: [?12l[?25h: e! test.ok | |
[?25l: [?12l[?25h: w! test.out | |
[?25l: [?12l[?25h: qa! | |
[?25l: [?12l[?25h:endif | |
[1;1H[4L[?25l[1;1H:e! Xtestfile.gz[16C" Edit compressed file | |
:w>>test.out[20C" Append it to the output file | |
:set shelltemp[18C" need temp files here | |
:au FilterReadPre *.out call rename(expand("<afile>"), expand("<afile>") . ".t")[41;1H[K[22;1H[?12l[?25h[?25l[41;1H:[?12l[?25hlet $GZIP = "" | |
[?25l[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau FileChangedShell * echo "caught FileChangedShell" | |
[?25l[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset bin | |
[?25l[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau FileWritePre *.gz '[,']!gzip | |
[?25l[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau FileWritePost *.gz undo | |
[?25l[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^start of testfile/,/^end of testfile/w! Xtestfile.gz | |
[?25l[?12l[?25h[?25l11 lines filtered[41;18H[K[41;1H | |
"Xtestfile.gz" [New File][Incomplete last line] 1 line, 111 characters written | |
10 more lines; before #1 0 seconds ago | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hau FileReadPost *.gz '[,']!gzip -d | |
[?25l[1;1H[3L[1;1H:e! Xtestfile.gz[16C" Edit compressed file | |
:w>>test.out[20C" Append it to the output file | |
:set shelltemp[18C" need temp files here[41;1H[K[34;1H[?12l[?25h[?25l[41;1H:[?12l[?25h$r Xtestfile.gz " Read and decompress the testfile | |
[?25l"Xtestfile.gz" [41;16H[K[41;16H[Incomplete last line] 1 line, 111 characters | |
[?12l[?25h[60C[?25l[1;40r[40;1H | |
[1;41r[40;1Hstart of testfile[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25h?startstart?,$w! test.out " Write contents of this file | |
[?25l"test.out" [41;12H[K[41;12H[New File] 29 lines, 788 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufNewFile *.c read Xtest.c | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^start of test.c/+1,/^end of test.c/-1w! Xtest.c | |
[?25l[31msearch hit BOTTOM, continuing at TOP[m[41;37H[K[41;1H"Xtest.c" [41;11H[K[41;11H[New File] 3 lines, 32 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! foo.c " Will load Xtest.c | |
[?25l"foo.c" [New File][41;33H[K[41;1H | |
"Xtest.c" 3 lines, 32 characters | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hau FileAppendPre *.out '[,']s/new/NEW/ | |
[?25l[1;1H[2L[2;1H/* | |
* Here is a new .c file[3;25H[K[4;1H */[4;5H[K[5;1H[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [m[41;1H[K[2;1H[?12l[?25h[?25l[41;1H:[?12l[?25hau FileAppendPost *.out !cat Xtest.c >>test.out | |
[?25l[2;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw>>test.out " Append it to the output file | |
[?25l"test.out" [41;12H[K[41;12H4 lines, 33 characters appended | |
:!cat Xtest.c >>test.out | |
[?12l[?25h[m | |
[32mPress ENTER or type command to continue[?25l[m[41;1H[K[41;1H:[?12l[?25hau! FileAppendPre | |
[?25l[27m[m[H[2J[2;1H/* | |
* Here is a NEW .c file | |
*/ | |
[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [3;2H[?12l[?25h[?25l[41;1H[m:[?12l[?25h" setup autocommands to decompress before reading and re-compress afterwards | |
[?25l[3;2H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufReadPre *.gz exe '!gzip -d ' . shellescape(expand("<afile>")) | |
[?25l[3;2H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufReadPre *.gz call rename(expand("<afile>:r"), expand("<afile>")) | |
[?25l[3;2H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufReadPost *.gz call rename(expand("<afile>"), expand("<afile>:r")) | |
[?25l[3;2H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufReadPost *.gz exe '!gzip ' . shellescape(expand("<afile>:r")) | |
[?25l[3;2H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xtestfile.gz " Edit compressed file | |
[?25l:!gzip -d 'Xtestfile.gz'[41;33H[K[41;25H | |
[?12l[?25h[?25l[m"Xtestfile.gz"[40;1H"Xtestfile.gz" 11 lines, 357 characters[41;1H[K[41;1H:!gzip 'Xtestfile' | |
[?12l[?25h[m | |
[32mPress ENTER or type command to continue[?25l[m[41;1H[K[41;1H:[?12l[?25hw>>test.out " Append it to the output file | |
[?25l"test.out" [41;12H[K[41;12H11 lines, 357 characters appended | |
:!cat Xtest.c >>test.out | |
[?12l[?25h[m | |
[32mPress ENTER or type command to continue[?25l[m[41;1H[K[41;1H:[?12l[?25hset shelltemp " need temp files here | |
[?25l[27m[m[H[2J[1;1Hstart of testfile | |
line 2 Abcdefghijklmnopqrstuvwxyz | |
line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 4 Abcdefghijklmnopqrstuvwxyz | |
line 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 6 Abcdefghijklmnopqrstuvwxyz | |
line 7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 8 Abcdefghijklmnopqrstuvwxyz | |
line 9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 10 Abcdefghijklmnopqrstuvwxyz | |
end of testfile | |
[1m[34m~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[41;1H[m:[?12l[?25hau FilterReadPre *.out call rename(expand("<afile>"), expand("<afile>") . ".t") | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau FilterReadPre *.out exe '!sed s/e/E/ ' . shellescape(expand("<afile>")) . ".t >" . shellescape(expand("<afile>")) | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau FilterReadPre *.out exe '!rm ' . shellescape(expand("<afile>")) . '.t' | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau FilterReadPost *.out '[,']s/x/X/g | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! test.out " Edit the output file | |
[?25l"test.out" [41;12H[K[41;12H50 lines, 1242 characters[1;6Hstar[1;11H[K[2;1Hstart of testfile[2;18H[K[3;6H2 Abcdefghijklmnopqrstuvwxyz[3;35H[K[4;6H3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[5;6H4 Abcdefghijklmnopqrstuvwxyz[5;35H[K[6;6H5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[7;6H6 Abcdefghijklmnopqrstuvwxyz[7;35H[K[8;6H7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[9;6H8 Abcdefghijklmnopqrstuvwxyz[9;35H[K[10;6H9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 10 Abcdefghijklmnopqrstuvwxyz | |
end of testfile[12;16H[K[13;1H[K[14;1Hstart of test.c[14;16H[K[15;1H/*[15;3H[K[16;1H * Here is a new .c file[16;25H[K[17;1H */[17;4H[K[18;1Hend of test.c[18;14H[K[19;1Hstart of testfile[19;18H[K[20;1Hline 2 Abcdefghijklmnopqrstuvwxyz[20;35H[K[21;1Hline 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[21;39H[K[22;1Hline 4 Abcdefghijklmnopqrstuvwxyz[22;35H[K[23;1Hline 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[23;39H[K[24;1Hline 6 Abcdefghijklmnopqrstuvwxyz[24;35H[K[25;1Hline 7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[25;39H[K[26;1Hline 8 Abcdefghijklmnopqrstuvwxyz[26;35H[K[27;1Hline 9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[27;39H[K[28;1Hline 10 Abcdefghijklmnopqrstuvwxyz[28;35H[K[29;1Hend of testfile[29;16H[K[30;1H[K[31;1H/*[31;3H[K[32;1H * Here is a NEW .c file[32;25H[K[33;1H */[33;4H[K[34;1H/*[34;3H[K[35;1H * Here is a new .c file[35;25H[K[36;1H */[36;4H[K[37;1Hstart of testfile[37;18H[K[38;1Hline 2 Abcdefghijklmnopqrstuvwxyz[38;35H[K[39;1Hline 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[39;39H[K[40;1Hline 4 Abcdefghijklmnopqrstuvwxyz[40;35H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h23,$!cat | |
[?25l[?12l[?25h[?25l:!sed s/e/E/ '/tmp/va0CjMW/1'.t >'/tmp/va0CjMW/1' | |
[?12l[?25h[?25l[m:!rm '/tmp/va0CjMW/1'.t | |
[?12l[?25h[?25l[m218 substitutions on 15 lines | |
28 lines filtered | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25h23,$s/\r$// " remove CR for when sed adds them | |
[?25l[1m[37m[41mE486: Pattern not found: \r$[m[41;30H[K[41;1H | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hau! FileReadPre *.gz exe '!gzip -d ' . shellescape(expand("<afile>")) | |
[?25l[27m[m[H[2J[1;1Hstartstart | |
start of testfile | |
line 2 Abcdefghijklmnopqrstuvwxyz | |
line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 4 Abcdefghijklmnopqrstuvwxyz | |
line 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 6 Abcdefghijklmnopqrstuvwxyz | |
line 7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 8 Abcdefghijklmnopqrstuvwxyz | |
line 9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 10 Abcdefghijklmnopqrstuvwxyz | |
end of testfile | |
start of test.c | |
/* | |
* Here is a new .c file | |
*/ | |
end of test.c | |
start of testfile | |
line 2 Abcdefghijklmnopqrstuvwxyz | |
line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 4 Abcdefghijklmnopqrstuvwxyz | |
linE 5 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
linE 6 AbcdefghijklmnopqrstuvwXyz | |
linE 7 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
linE 8 AbcdefghijklmnopqrstuvwXyz | |
linE 9 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
linE 10 AbcdefghijklmnopqrstuvwXyz | |
End of testfile | |
/* | |
* HEre is a NEW .c file | |
*/ | |
/* | |
* HEre is a new .c file | |
*/ | |
start of tEstfile | |
linE 2 AbcdefghijklmnopqrstuvwXyz | |
linE 3 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
linE 4 AbcdefghijklmnopqrstuvwXyz[23;1H[?12l[?25h[?25l[41;1H:[?12l[?25hau FileReadPre *.gz call rename(expand("<afile>:r"), expand("<afile>")) | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau! FileReadPost *.gz '[,']s/l/L/ | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r Xtestfile.gz " Read compressed file | |
[?25l:!gzip -d 'Xtestfile.gz'[41;30H[K[41;25H | |
[?12l[?25h[?25l[m"Xtestfile.gz"[40;1H"Xtestfile.gz" 11 lines, 357 characters[41;1H[K[41;1H11 substitutions on 11 lines | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw " write it, after filtering | |
[?25l"test.out"[41;30H[K[41;12H61 lines, 1599 characters written | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hau! " remove all autocommands | |
[?25l[1m[37m[41mE216: No such group or event: " remove all autocommands[m | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25he " Edit test.out again | |
[?25l"test.out"[41;18H[K[41;12H61 lines, 1599 characters[27m[m[H[2J[1;1Hstartstart | |
start of testfile | |
line 2 Abcdefghijklmnopqrstuvwxyz | |
line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 4 Abcdefghijklmnopqrstuvwxyz | |
line 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 6 Abcdefghijklmnopqrstuvwxyz | |
line 7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 8 Abcdefghijklmnopqrstuvwxyz | |
line 9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 10 Abcdefghijklmnopqrstuvwxyz | |
end of testfile | |
start of test.c | |
/* | |
* Here is a new .c file | |
*/ | |
end of test.c | |
start of testfile | |
line 2 Abcdefghijklmnopqrstuvwxyz | |
line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | |
line 4 Abcdefghijklmnopqrstuvwxyz | |
linE 5 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
linE 6 AbcdefghijklmnopqrstuvwXyz | |
linE 7 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
linE 8 AbcdefghijklmnopqrstuvwXyz | |
linE 9 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
linE 10 AbcdefghijklmnopqrstuvwXyz | |
End of testfile | |
/* | |
* HEre is a NEW .c file | |
*/ | |
/* | |
* HEre is a new .c file | |
*/ | |
start of tEstfile | |
linE 2 AbcdefghijklmnopqrstuvwXyz | |
linE 3 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
linE 4 AbcdefghijklmnopqrstuvwXyz | |
"test.out" 61 lines, 1599 characters[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nobin ff& " use the default fileformat for writing | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"test.out" 61 lines, 1599 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test12.failed test.ok test.out X* viminfo | |
cp test12.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test12.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test12.in" 52 lines, 1199 characters[1;1HTests for 'directory' option. | |
- ".", in same dir as file | |
- "./dir", in directory relative to file | |
- "dir", in directory relative to current dir | |
STARTTEST | |
:so small.vim | |
:set nocompatible viminfo+=nviminfo | |
:set dir=.,~ | |
:/start of testfile/,/end of testfile/w! Xtest1 | |
:" do an ls of the current dir to find the swap file (should not be there) | |
:if has("unix") | |
: !ls .X*.swp >test.out | |
:else | |
: r !ls X*.swp >test.out | |
:endif | |
:!echo first line >>test.out | |
:e Xtest1 | |
:if has("unix") | |
:" Do an ls of the current dir to find the swap file, remove the leading dot | |
:" to make the result the same for all systems. | |
: r!ls .X*.swp | |
: s/\.*X/X/ | |
: .w >>test.out | |
: undo | |
:else | |
: !ls X*.swp >>test.out | |
:endif | |
:!echo under Xtest1.swp >>test.out | |
:!mkdir Xtest2 | |
:set dir=./Xtest2,.,~ | |
:e Xtest1 | |
:!ls X*.swp >>test.out | |
:!echo under under >>test.out | |
:!ls Xtest2 >>test.out | |
:!echo under Xtest1.swp >>test.out | |
:!mkdir Xtest.je | |
:/start of testfile/,/end of testfile/w! Xtest2/Xtest3 | |
:set dir=Xtest.je,~ | |
:e Xtest2/Xtest3[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[6;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[7;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 40 lines, 965 characters written[7;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[7;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[7M[1;41r[34;1H:swap | |
:!ls Xtest2 >>test.out | |
:!echo under Xtest3 >>test.out | |
:!ls Xtest.je >>test.out | |
:!echo under Xtest3.swp >>test.out | |
:qa! | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nocompatible viminfo+=nviminfo | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset dir=.,~ | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/start of testfile/,/end of testfile/w! Xtest1 | |
[?25l"Xtest1" [41;10H[K[41;10H[New] 4L, 70C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" do an ls of the current dir to find the swap file (should not be there) | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hif has("unix") | |
[?25l | |
: [?12l[?25h: !ls .X*.swp >test.out | |
[?25l:!ls .X*.swp >test.out[?1l>[?12l[?25h[?1049l[?1049h[?1h=[41;1H | |
[?25l: :[?12l[?25helse | |
[?25l: [?12l[?25h: r !ls X*.swp >test.out | |
[?25l: [?12l[?25h:endif | |
[?25l[41;1H[K[41;1H:[?12l[?25h!echo first line >>test.out | |
[?25l[28C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25he Xtest1 | |
[?25l"Xtest1" 4L, 70C[27m[m[H[2J[1;1Hstart of testfile | |
line 2 Abcdefghij | |
line 3 Abcdefghij | |
end of testfile | |
[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [m[41;1H"Xtest1" 4L, 70C[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hif has("unix") | |
[?25l | |
: [?12l[?25h:" Do an ls of the current dir to find the swap file, remove the leading dot | |
[?25l: [?12l[?25h:" to make the result the same for all systems. | |
[?25l: [?12l[?25h: r!ls .X*.swp | |
[m | |
[?25l: [?12l[?25h: s/\.*X/X/ | |
[?25l: [?12l[?25h: .w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1L, 11C appended | |
: [?12l[?25h: undo | |
[?25l1 line less; before #1 0 seconds ago | |
: [?12l[?25h:else | |
[?25l: [?12l[?25h: !ls X*.swp >>test.out | |
[?25l: [?12l[?25h:endif | |
[27m[m[H[2J[?25l[1;1Hstart of testfile | |
line 2 Abcdefghij | |
line 3 Abcdefghij | |
end of testfile | |
[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[41;1H[m:[?12l[?25h!echo under Xtest1.swp >>test.out | |
[?25l[34C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!mkdir Xtest2 | |
[?25l[14C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25hset dir=./Xtest2,.,~ | |
[?25l[27m[m[H[2J[1;1Hstart of testfile | |
line 2 Abcdefghij | |
line 3 Abcdefghij | |
end of testfile | |
[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[41;1H[m:[?12l[?25he Xtest1 | |
[?25l"Xtest1" 4L, 70C[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h!ls X*.swp >>test.out | |
[?25l[22C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!echo under under >>test.out | |
[?25l[29C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!ls Xtest2 >>test.out | |
[?25l[22C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!echo under Xtest1.swp >>test.out | |
[?25l[34C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!mkdir Xtest.je | |
[?25l[16C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h/start of testfile/,/end of testfile/w! Xtest2/Xtest3 | |
[?25l[31msearch hit BOTTOM, continuing at TOP[m[41;37H[K[41;1H"Xtest2/Xtest3" [41;17H[K[41;17H[New] 4L, 70C written[27m[m[H[2J[1;1Hstart of testfile | |
line 2 Abcdefghij | |
line 3 Abcdefghij | |
end of testfile | |
[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [m[41;1H"Xtest2/Xtest3" [New] 4L, 70C written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset dir=Xtest.je,~ | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xtest2/Xtest3 | |
[?25l"Xtest2/Xtest3" 4L, 70C[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hswap | |
[?25lXtest.je/Xtest3.swp[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h!ls Xtest2 >>test.out | |
[?25l[22C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!echo under Xtest3 >>test.out | |
[?25l[30C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!ls Xtest.je >>test.out | |
[?25l[24C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!echo under Xtest3.swp >>test.out | |
[?25l[34C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test13.failed test.ok test.out X* viminfo | |
cp test13.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test13.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test13.in" 58 lines, 1133 characters[1;1HTests for autocommands on :close command | |
Write three files and open them, each in a window. | |
Then go to next window, with autocommand that deletes the previous one. | |
Do this twice, writing the file. | |
Also test deleting the buffer on a Unload event. If this goes wrong there | |
will be the ATTENTION prompt. | |
Also test changing buffers in a BufDel autocommand. If this goes wrong there | |
are ml_line errors and/or a Crash. | |
STARTTEST | |
:so small.vim | |
:/^start of testfile/,/^end of testfile/w! Xtestje1 | |
:/^start of testfile/,/^end of testfile/w! Xtestje2 | |
:/^start of testfile/,/^end of testfile/w! Xtestje3 | |
:e Xtestje1 | |
otestje1[34m^[[m | |
:w | |
:sp Xtestje2 | |
otestje2[34m^[[m | |
:w | |
:sp Xtestje3 | |
otestje3[34m^[[m | |
:w | |
[34m^W^W[m | |
:au WinLeave Xtestje2 bwipe | |
[34m^W^W[m | |
:w! test.out | |
:au WinLeave Xtestje1 bwipe Xtestje3 | |
:close | |
:w >>test.out | |
:e Xtestje1 | |
:bwipe Xtestje2 Xtestje3 test.out | |
:au! | |
:au! BufUnload Xtestje1 bwipe | |
:e Xtestje3 | |
:w >>test.out | |
:e Xtestje2[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[13;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[14;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 38 lines, 631 characters written[14;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[14;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[12M[1;41r[29;1H:sp Xtestje1 | |
:e | |
:w >>test.out | |
:au! | |
:only | |
:e Xtestje1 | |
:bwipe Xtestje2 Xtestje3 test.out test13.in | |
:au BufWipeout Xtestje1 buf Xtestje1 | |
:bwipe | |
:w >>test.out | |
:qa! | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^start of testfile/,/^end of testfile/w! Xtestje1 | |
[?25l"Xtestje1" [41;13H[K[41;12H[New File] 5 lines, 64 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^start of testfile/,/^end of testfile/w! Xtestje2 | |
[?25l"Xtestje2" [41;13H[K[41;12H[New File] 5 lines, 64 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^start of testfile/,/^end of testfile/w! Xtestje3 | |
[?25l"Xtestje3" [41;13H[K[41;12H[New File] 5 lines, 64 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xtestje1 | |
[?25l"Xtestje1" 5 lines, 64 characters[1;1Hstart of testfile | |
contents[2;17H[K[3;1H contents[3;17H[K[4;1H contents[4;17H[K[5;1Hend of testfile | |
[1m[34m~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[2;40r[m[2;1H[L[1;41r[2;1Htestje1[41;1H[K[2;7H[?12l[?25h[3;8H[?25l[41;1H:[?12l[?25hw | |
[?25l"Xtestje1" 6 lines, 72 characters written[3;8H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hsp Xtestje2 | |
[?25l"Xtestje2" [41;12H[K[41;12H5 lines, 64 characters[2;1H contents | |
end of testfile[5;16H[K[6;1H[1m[34m~ [m[20;1H[1m[7mXtestje2 [m[21;1Htestje1[21;8H[K[22;1H contents[22;17H[K[23;1H contents[23;17H[K[24;1H contents[24;17H[K[25;1Hend of testfile[25;16H[K[40;1H[7mXtestje1 [1;1H[?12l[?25h[?25l[2;19r[m[2;1H[L[1;41r[2;1Htestje2[20;10H[1m[7m[+][m[41;1H[K[2;7H[?12l[?25h[3;8H[?25l[41;1H:[?12l[?25hw | |
[?25l"Xtestje2" 6 lines, 72 characters written[20;10H[1m[7m [3;8H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hsp Xtestje3 | |
[?25l"Xtestje3" [41;12H[K[41;12H5 lines, 64 characters[27m[m[H[2J[1;1Hstart of testfile[2;9Hcontents[3;9Hcontents[4;9Hcontents | |
end of testfile | |
[1m[34m~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [m[14;1H[1m[7mXtestje3 [m[15;1Htestje2[16;9Hcontents[17;9Hcontents[18;9Hcontents | |
end of testfile | |
[1m[34m~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [m[27;1H[7mXtestje2 [m[28;9Hcontents[29;9Hcontents[30;9Hcontents | |
end of testfile | |
[1m[34m~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [m[40;1H[7mXtestje1 [1;1H[?12l[?25h[?25l[2;13r[m[2;1H[L[1;41r[2;1Htestje3[14;10H[1m[7m[+][2;7H[?12l[?25h[3;8H[?25l[41;1H[m:[?12l[?25hw | |
[?25l"Xtestje3" 6 lines, 72 characters written[14;10H[1m[7m [3;8H[?12l[?25h[m[14;1H[7mXtestje3[m[1m[7m [m[7m [m[27;1H[1m[7mXtestje2 [16;8H[17;8H[?25l[m[41;1H[K[41;1H:[?12l[?25hau WinLeave Xtestje2 bwipe | |
[?25l[17;8H[?12l[?25h[27m[m[H[2J[?25l[1;1Hstart of testfile | |
testje3[3;9Hcontents[4;9Hcontents[5;9Hcontents | |
end of testfile | |
[1m[34m~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [m[20;1H[7mXtestje3 [m[21;1Htestje1[22;9Hcontents[23;9Hcontents[24;9Hcontents | |
end of testfile | |
[1m[34m~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [m[40;1H[1m[7mXtestje1 [22;8H[?12l[?25h[23;8H[?25l[41;1H[m:[?12l[?25hw! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 6 lines, 72 characters written[23;8H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau WinLeave Xtestje1 bwipe Xtestje3 | |
[?25l[23;8H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hclose | |
[?25l[2;7H1[20;1H[1m[34m~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [40;1H~ [4;8H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H6 lines, 72 characters appended[4;8H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xtestje1 | |
[?25l"Xtestje1" 6 lines, 72 characters[4;9H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe Xtestje2 Xtestje3 test.out | |
[?25l[1m[37m[41mE94: No matching buffer for Xtestje2 Xtestje3 test.out[4;9H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hau! | |
[?25l[4;9H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau! BufUnload Xtestje1 bwipe | |
[?25l[4;9H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xtestje3 | |
[?25l"Xtestje3" 6 lines, 72 characters[2;7H3[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H6 lines, 72 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xtestje2 | |
[?25l"Xtestje2" 6 lines, 72 characters[2;7H2[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hsp Xtestje1 | |
[?25l"Xtestje1" [41;12H[K[41;12H6 lines, 72 characters[2;7H1[20;1H[1m[7mXtestje1 [m[21;1Hstart of testfile[21;18H[K[22;1Htestje2[22;8H[K[23;1H contents[23;17H[K[24;1H contents[24;17H[K[25;1H contents[25;17H[K[26;1Hend of testfile[26;16H[K[40;1H[7mXtestje2 [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25he | |
[?25l[1m[37m[41mE143: Autocommands unexpectedly deleted new buffer Xtestje1[m[2;7H2[20;8H[1m[7m2 [m[41;1H"Xtestje2" line 1 of 6 --16%-- col 1[1m[37m[41mt[m[41;37H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H6 lines, 72 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau! | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25honly | |
[?25l[20;1H[1m[34m~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25he Xtestje1 | |
[?25l"Xtestje1" 6 lines, 72 characters[2;7H1[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe Xtestje2 Xtestje3 test.out test13.in | |
[?25l4 buffers wiped out[41;20H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufWipeout Xtestje1 buf Xtestje1 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe | |
[?25l"Xtestje1" 6 lines, 72 characters[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H6 lines, 72 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test14.failed test.ok test.out X* viminfo | |
cp test14.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test14.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test14.in" 86 lines, 1434 characters[1;1HTests for "vaBiB", end could be wrong. | |
Also test ":s/pat/sub/" with different ~s in sub. | |
Also test for ^Vxff and ^Vo123 in Insert mode. | |
Also test "[m", "]m", "[M" and "]M" | |
Also test search() | |
STARTTEST | |
:so small.vim | |
/Start cursor here | |
vaBiBD:?Bug?,/Piece/-2w! test.out | |
/^- Bug | |
:s/u/~u~/ | |
:s/i/~u~/ | |
:s/o/~~~/ | |
:.w >>test.out | |
:if has("ebcdic") | |
: let tt = "o\<C-V>193\<C-V>xc2\<C-V>o303 \<C-V>90a\<C-V>xfg\<C-V>o578\<Esc>" | |
:else | |
: let tt = "o\<C-V>65\<C-V>x42\<C-V>o103 \<C-V>33a\<C-V>xfg\<C-V>o78\<Esc>" | |
:endif | |
:exe "normal " . tt | |
:unlet tt | |
:.w >>test.out | |
:set vb | |
/^Piece | |
2]maA[34m^[[m:.w >>test.out | |
j]maB[34m^[[m:.w >>test.out | |
]maC[34m^[[m:.w >>test.out | |
[maD[34m^[[m:.w >>test.out | |
k2[maE[34m^[[m:.w >>test.out | |
3[maF[34m^[[m:.w >>test.out | |
]MaG[34m^[[m:.w >>test.out | |
j2]MaH[34m^[[m:.w >>test.out | |
]M]MaI[34m^[[m:.w >>test.out | |
2[MaJ[34m^[[m:.w >>test.out | |
k[MaK[34m^[[m:.w >>test.out | |
3[MaL[34m^[[m:.w >>test.out | |
:" | |
/^foobar | |
:let startline = line('.')[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[7;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[8;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 44 lines, 989 characters written[8;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[8;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[12M[1;41r[29;1H:call search('foobar', 'c') | |
:call append(line('$'), line('.') - startline) | |
j:call search('^$', 'c') | |
:call append(line('$'), line('.') - startline) | |
:call search('^$', 'bc') | |
:call append(line('$'), line('.') - startline) | |
/two | |
:call search('.', 'c') | |
:call append(line('$'), getline('.')[col('.') - 1:]) | |
:/^search()/,$w >>test.out | |
:qa! | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hStart cursor here | |
[?25l[1;40r[1;1H[5M[1;41r[36;1H- Bug in "vPPPP" on this text (Webb):[37;9H{[38;17Hcmd;[39;17H{[40;25Hcmd; /* <-- Start cursor here */[41;1H[K[40;40H[?12l[?25h[?25l[?12l[?25h[?25l[1;40r[1;1H[3M[1;41r[36;17H[7m{ | |
cmd; /* <-- Start cursor here */ | |
{ | |
} | |
[m}[?12l[?25h[?25l[35;1H[7m cmd; | |
[40;17H}[?12l[?25h[?25l[m | |
6 fewer lines[35;1H }[35;10H[K[36;1H[K[37;1HPiece of Java[37;14H[K[38;1H{[38;2H[K[39;1H tt m1 {[39;16H[K[40;1H t1;[35;9H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h?Bug?,/Piece/-2w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 3 lines, 44 characters written[35;9H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^- Bug | |
[?25l[31msearch hit BOTTOM, continuing at TOP[33;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hs/u/~u~/ | |
[?25l[33;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hs/i/~u~/ | |
[?25l[33;7Huuun "vPPPP" on this text (Webb): | |
[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hs/o/~~~/ | |
[?25l[33;20Huuuuuuuuun this text (Webb): | |
[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 48 characters appended[33;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hif has("ebcdic") | |
[?25l | |
: [?12l[?25h: let tt = "o\<C-V>193\<C-V>xc2\<C-V>o303 \<C-V>90a\<C-V>xfg\<C-V>o578\<Esc>" | |
[?25l: [?12l[?25h:else | |
[?25l: [?12l[?25h: let tt = "o\<C-V>65\<C-V>x42\<C-V>o103 \<C-V>33a\<C-V>xfg\<C-V>o78\<Esc>" | |
[?25l: [?12l[?25h:endif | |
[1;1H[4L[?25l[1;1H:unlet tt | |
:.w >>test.out | |
:set vb | |
/^Piece[41;1H[K[33;1H[?12l[?25h[?25l[41;1H:[?12l[?25hexe "normal " . tt | |
[?25l[34;40r[34;1H[L[1;41r[34;1HABC !a[34m^O[mg[34m^G[m8[41;1H[K[34;12H[?12l[?25h[?25l[41;1H:[?12l[?25hunlet tt | |
[?25l[34;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 11 characters appended[34;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset vb | |
[?25l[34;12H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^Piece | |
[?25l[38;1H[?12l[?25h[40;15H[?25l{A[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 10 characters appended[40;16H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;17Ht1;[41;1H[K[40;16H[?12l[?25h[?25l[1;40r[1;1H[3M[1;41r[38;9H} e1[40;9Htt m2 {[?12l[?25h[?25l{B[?12l[?25h[?25l | |
:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 10 characters appended[40;16H[?12l[?25h[?25l[1;40r[1;1H[4M[1;41r[37;17Ht2;[38;9H} e2[40;9Htt m3 {[41;1H[K[40;15H[?12l[?25h[?25l{C[?12l[?25h[?25l | |
:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 10 characters appended[40;16H[?12l[?25h[?25l{DC[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 11 characters appended[40;16H[?12l[?25h[39;1H[32;15H[?25l{EA[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 11 characters appended[32;16H[?12l[?25h[31;1H[?25l{F[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 3 characters appended[31;2H[?12l[?25h[34;9H[?25l}G e1[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 7 characters appended[34;10H[?12l[?25h | |
[?25l[1;40r[1;1H[5M[1;41r[36;17Hif (x)[37;17H{[38;25Ht3;[39;17H}[40;9H} e3[41;1H[K[40;9H[?12l[?25h[?25l}H e3[?12l[?25h[?25l | |
:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 7 characters appended[40;10H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H}[41;1H[K[40;1H[?12l[?25h[?5h[?5l[?25l}I[?12l[?25h[?25l | |
:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 3 characters appended[40;2H[?12l[?25h[39;9H[?25l}JH e3[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 8 characters appended[39;10H[?12l[?25h[38;16H[32;9H[?25l}K e2[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 7 characters appended[32;10H[?12l[?25h[25;1H[?25l{LF[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 4 characters appended[25;2H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[25;2H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^foobar | |
[?25l[1;40r[1;1H[2M[1;41r[40;1Hfoobar[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hlet startline = line('.') | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall search('foobar', 'c') | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall append(line('$'), line('.') - startline) | |
[?25l[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hcall search('^$', 'c') | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall append(line('$'), line('.') - startline) | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall search('^$', 'bc') | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall append(line('$'), line('.') - startline) | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25htwo | |
[?25l[1;40r[1;1H[2M[1;41r[40;1Hone two[41;1H[K[40;5H[?12l[?25h[?25l | |
:[?12l[?25hcall search('.', 'c') | |
[?25l[40;5H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall append(line('$'), getline('.')[col('.') - 1:]) | |
[?25l[40;5H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^search()/,$w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H5 lines, 19 characters appended[40;5H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test15.failed test.ok test.out X* viminfo | |
cp test15.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test15.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test15.in" 136 lines, 2246 characters[1;1HTests for :right on text with embedded TAB. | |
Also test formatting a paragraph. | |
Also test undo after ":%s" and formatting. | |
STARTTEST | |
:so small.vim | |
:set tw=65 | |
:/^\s*test for :left/,/^\s*test for :center/ left | |
:/^\s*test for :center/,/^\s*test for :right/ center | |
:/^\s*test for :right/,/^xxx/-1 right | |
:set fo+=tcroql tw=72 | |
/xxxxxxxx$ | |
0gq6kk | |
:set nocp viminfo+=nviminfo | |
:" undo/redo here to make the next undo only work on the following changes | |
u[34m^R[m | |
:map gg :.,.+2s/^/x/<CR>kk:set tw=3<CR>gqq | |
/^aa | |
ggu | |
:?test for :left?,$w! test.out | |
:qa! | |
ENDTEST[25;9Htest for :left[26;11Ha[13Ca[27;13Hfa[10Ca[28;11Hdfa[11Ca[29;17Hsdfa[12Ca[30;11Hasdfa[9Ca[31;17Hxasdfa[10Ca | |
asxxdfa[9Ca[34;9Htest for :center[35;11Ha[13Ca[36;13Hfa[10Cafd asdf[37;11Hdfa[11Ca[38;17Hsdfa[12Cafd asdf[39;11Hasdfa[9Ca[40;17Hxasdfa[10Casdfasdfasdfasdfasdf[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[5;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 17 lines, 401 characters written[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[6;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[23;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset tw=65 | |
[?25l[24;1H[?12l[?25h[25;8H[?25l[41;1H[K[41;1H:[?12l[?25h/^\s*test for :left/,/^\s*test for :center/ left | |
[?25l[31msearch hit BOTTOM, continuing at TOP[m[41;37H[K[25;1Htest for :left[25;15H[K[26;1Ha[9C a[26;25H[K[27;1Hfa[10C a[27;25H[K[28;1Hdfa[7C a[28;25H[K[29;1Hsdfa[12Ca[29;18H[K[30;1Hasdfa a[30;25H[K[31;1Hxasdfa[10Ca[31;18H[K[34;1Htest for :cente[34;18H[K[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^\s*test for :center/,/^\s*test for :right/ center | |
[?25l[34;1H [8Ctest for :center[35;11H [13C a[14Ca[36;13H [8Cfa [8Cafd asdf[37;11H [11C dfa[12Ca[38;17H sdfa[8C afd asdf[39;11H [9C asdfa[10Ca[40;15Hxasdfa [25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^\s*test for :right/,/^xxx/-1 right | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fo+=tcroql tw=72 | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hxxxxxxxx$ | |
[?25l[27m[m[H[2J[1;39Hasdfaqwer[9Caxxxoi[2;47Ha[9Caxxxoik[3;46Hfa[9Caxxxoik[4;45Hdfa[9Caxxxoik[5;44Hsdfa[9Caxxxoik[6;43Hasdfa[9Caxxxoik[7;42Hxasdfa[9Caxxxoik[8;41Hasxxdfa[9Caxxxoik[9;40Hasxa;ofa[9Caxxxoik[10;39Hasdfaqwer[9Caxxxoik[11;47Ha[9Caxxxoike[12;46Hfa[9Caxxxoike[13;45Hdfa[9Caxxxoike[14;44Hsdfa[9Caxxxoike[15;43Hasdfa[9Caxxxoike[16;42Hxasdfa[9Caxxxoike[17;41Hasxxdfa[9Caxxxoike[18;40Hasxa;ofa[9Caxxxoike[19;39Hasdfaqwer[9Caxxxoike[20;47Ha[9Caxxxoikey[21;46Hfa[9Caxxxoikey[22;45Hdfa[9Caxxxoikey[23;44Hsdfa[9Caxxxoikey[24;43Hasdfa[9Caxxxoikey[25;42Hxasdfa[9Caxxxoikey[26;41Hasxxdfa[9Caxxxoikey[27;40Hasxa;ofa[9Caxxxoikey[28;39Hasdfaqwer[9Caxxxoikey | |
xxxxx xx xxxxxx | |
xxxxxxx xxxxxxxxx xxx xxxx xxxxx xxxxx xxx xx | |
xxxxxxxxxxxxxxxxxx xxxxx xxxx, xxxx xxxx xxxx xxxx xxx xx xx | |
xx xxxxxxx. xxxx xxxx. | |
> xx xx, xxxx xxxx xxx xxxx xxx xxxxx xxx xxx xxxxxxx xxx xxxxx | |
> xxxxxx xxxxxxx: xxxx xxxxxxx, xx xxxxxx xxxx xxxxxxxxxx | |
aa aa aa aa | |
bb bb bb bb | |
cc cc cc cc[36;50H[?12l[?25h | |
[?25l[30;40r[40;1H | |
[1;41r[30;6H xx xxxxxx xxxxxxx xxxxxxxxx xxx xxxx xxxxx xxxxx xxx xx[31;62Hxx xxxxxxx. | |
xxxx xxxx.[32;11H[K[34;65Hxxxxxx[35;9Hx: xxxx xxxxxxx, xx xxxx[7C xxxxxxx[35;51H[K[40;1H[1m[34m~ [35;1H[?12l[?25h[34;1H | |
[?25l[41;1H[m:[?12l[?25hset nocp viminfo+=nviminfo | |
[?25l[35;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" undo/redo here to make the next undo only work on the following changes | |
[?25l[35;1H[?12l[?25h[?25l[41;1H1 more line; before #1 0 seconds ago[41;38H[K[27m[m[H[2J[1;1H:so small.vim | |
:set tw=65 | |
:/^\s*test for :left/,/^\s*test for :center/ left | |
:/^\s*test for :center/,/^\s*test for :right/ center | |
:/^\s*test for :right/,/^xxx/-1 right | |
:set fo+=tcroql tw=72 | |
/xxxxxxxx$ | |
0gq6kk | |
:set nocp viminfo+=nviminfo | |
:" undo/redo here to make the next undo only work on the following changes | |
u[34m^R[m | |
:map gg :.,.+2s/^/x/<CR>kk:set tw=3<CR>gqq | |
/^aa | |
ggu | |
:?test for :left?,$w! test.out | |
:qa! | |
ENDTEST[20;9Htest for :left[21;11Ha[13Ca[22;13Hfa[10Ca[23;11Hdfa[11Ca[24;17Hsdfa[12Ca[25;11Hasdfa[9Ca[26;17Hxasdfa[10Ca | |
asxxdfa[9Ca[29;9Htest for :center[30;11Ha[13Ca[31;13Hfa[10Cafd asdf[32;11Hdfa[11Ca[33;17Hsdfa[12Cafd asdf[34;11Hasdfa[9Ca[35;17Hxasdfa[10Casdfasdfasdfasdfasdf | |
asxxdfa[9Ca[38;9Htest for :right[39;9Ha[15Ca[40;9Hfa[14Ca[20;8H[?12l[?25h[?25l[41;1H1 line less; after #1 0 seconds ago[20;1Htest for :left[20;15H[K[21;1Ha[9C a[21;25H[K[22;1Hfa[10C a[22;25H[K[23;1Hdfa[7C a[23;25H[K[24;1Hsdfa[12Ca[24;18H[K[25;1Hasdfa a[25;25H[K[26;1Hxasdfa[10Ca[26;18H[K[29;9H test for :center[30;11H [13C a[14Ca[31;13H [8Cfa [8Cafd asdf[32;11H [11C dfa[12Ca[33;17H sdfa[8C afd asdf[34;11H [9C asdfa[10Ca[35;15Hxasdfa | |
[9C [7Casxxdfa[9Ca[38;9H [27Ctest for :right[39;9H [15C [29Ca[9Ca[40;9H [14C [28Cfa[9Ca[20;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:[?12l[?25hmap gg :.,.+2s/^/x/<CR>kk:set tw=3<CR>gqq | |
[?25l[21;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^aa | |
[?25l[27m[m[H[2J[1;40Hasxa;ofa[9Caxxxoi[2;39Hasdfaqwer[9Caxxxoi[3;47Ha[9Caxxxoik[4;46Hfa[9Caxxxoik[5;45Hdfa[9Caxxxoik[6;44Hsdfa[9Caxxxoik[7;43Hasdfa[9Caxxxoik[8;42Hxasdfa[9Caxxxoik[9;41Hasxxdfa[9Caxxxoik[10;40Hasxa;ofa[9Caxxxoik[11;39Hasdfaqwer[9Caxxxoik[12;47Ha[9Caxxxoike[13;46Hfa[9Caxxxoike[14;45Hdfa[9Caxxxoike[15;44Hsdfa[9Caxxxoike[16;43Hasdfa[9Caxxxoike[17;42Hxasdfa[9Caxxxoike[18;41Hasxxdfa[9Caxxxoike[19;40Hasxa;ofa[9Caxxxoike[20;39Hasdfaqwer[9Caxxxoike[21;47Ha[9Caxxxoikey[22;46Hfa[9Caxxxoikey[23;45Hdfa[9Caxxxoikey[24;44Hsdfa[9Caxxxoikey[25;43Hasdfa[9Caxxxoikey[26;42Hxasdfa[9Caxxxoikey[27;41Hasxxdfa[9Caxxxoikey[28;40Hasxa;ofa[9Caxxxoikey[29;39Hasdfaqwer[9Caxxxoikey | |
xxxxx xx xxxxxx xxxxxxx xxxxxxxxx xxx xxxx xxxxx xxxxx xxx xx | |
xxxxxxxxxxxxxxxxxx xxxxx xxxx, xxxx xxxx xxxx xxxx xxx xx xx xx xxxxxxx. | |
xxxx xxxx. | |
> xx xx, xxxx xxxx xxx xxxx xxx xxxxx xxx xxx xxxxxxx xxx xxxxx xxxxxx | |
> xxxxxxx: xxxx xxxxxxx, xx xxxxxx xxxx xxxxxxxxxx | |
aa aa aa aa | |
bb bb bb bb | |
cc cc cc cc[38;1H[?12l[?25h[?25l | |
:.,.+2s/^/x/ | |
3 substitutions on 3 lines[38;1Hxaa aa aa aa | |
xbb bb bb bb | |
xcc cc cc cc | |
[?12l[?25h[39;1H[38;1H[?25l[41;1H[K[41;1H:set tw=3 | |
[38;1H[?12l[?25h[?25l | |
3 more lines[1;40r[40;1H | |
[1;41r[37;5H[K[38;1Haa[38;3H[K[39;1Haa[39;3H[K[40;1Haa[41;1H[K[41;1H3 more lines[40;1H[?12l[?25h[?25l | |
3 fewer lines; before #2 0 seconds ago[37;1Haa aa aa aa | |
bb bb bb bb | |
cc cc cc cc | |
[1m[34m~ [37;1H[?12l[?25h | |
[?25l[m[41;1H[K[41;1H:[?12l[?25h?test for :left?,$w! test.out | |
[?25l"test.out"[41;12H[K[41;12H[New] 111L, 2304C written[38;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test17.failed test.ok test.out X* viminfo | |
cp test17.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test17.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test17.in" 141 lines, 2634 characters[1;1HTests for: | |
- "gf" on ${VAR}, | |
- ":checkpath!" with various 'include' settings. | |
STARTTEST | |
:so small.vim | |
:if has("ebcdic") | |
: set isfname=@,240-249,/,.,-,_,+,,,$,:,~,{,} | |
:else | |
: set isfname=@,48-57,/,.,-,_,+,,,$,:,~,{,} | |
:endif | |
:function! DeleteDirectory(dir) | |
: if has("win16") || has("win32") || has("win64") || has("dos16") || has("dos32") | |
: exec "silent !rmdir /Q /S " . a:dir | |
: else | |
: exec "silent !rm -rf " . a:dir | |
: endif | |
:endfun | |
:if has("unix") | |
:let $CDIR = "." | |
/CDIR | |
:else | |
:if has("amiga") | |
:let $TDIR = "/testdir" | |
:else | |
:let $TDIR = "." | |
:endif | |
/TDIR | |
:endif | |
:" Dummy writing for making that sure gf doesn't fail even if the current | |
:" file is modified. It can be occurred when executing the following command | |
:" directly on Windows without fixing the 'fileformat': | |
:" > nmake -f Make_dos.mak test17.out | |
:w! test.out | |
gf | |
:set ff=unix | |
:w! test.out | |
:brewind | |
ENDTEST[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[5;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 33 lines, 771 characters written[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[6;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[39;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hif has("ebcdic") | |
[?25l | |
: [?12l[?25h: set isfname=@,240-249,/,.,-,_,+,,,$,:,~,{,} | |
[?25l: [?12l[?25h:else | |
[?25l: [?12l[?25h: set isfname=@,48-57,/,.,-,_,+,,,$,:,~,{,} | |
[?25l: [?12l[?25h:endif | |
[1;1H[4L[?25l[1;1HTests for: | |
- "gf" on ${VAR}, | |
- ":checkpath!" with various 'include' settings.[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hfunction! DeleteDirectory(dir) | |
[?25l | |
: [?12l[?25h: if has("win16") || has("win32") || has("win64") || has("dos16") || has("dos32") | |
[?25l: [?12l[?25h: exec "silent !rmdir /Q /S " . a:dir | |
[?25l: [?12l[?25h: else | |
[?25l: [?12l[?25h: exec "silent !rm -rf " . a:dir | |
[?25l: [?12l[?25h: endif | |
[?25l: [?12l[?25h:endfun | |
[1;1H[6L[?25l[1;1HTests for: | |
- "gf" on ${VAR}, | |
- ":checkpath!" with various 'include' settings. | |
STARTTEST | |
:so small.vim[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hif has("unix") | |
[?25l | |
: [?12l[?25h:let $CDIR = "." | |
[?25l: [?12l[?25h/CDIR | |
[?25l: [?12l[?25h:else | |
[?25l: [?12l[?25h:if has("amiga") | |
[?25l: [?12l[?25h:let $TDIR = "/testdir" | |
[?25l: [?12l[?25h:else | |
[?25l: [?12l[?25h:let $TDIR = "." | |
[?25l: [?12l[?25h:endif | |
[?25l: [?12l[?25h/TDIR | |
[?25l: [?12l[?25h:endif | |
[1;1H[10L[?25l[1;1H- "gf" on ${VAR}, | |
- ":checkpath!" with various 'include' settings. | |
STARTTEST | |
:so small.vim | |
:if has("ebcdic") | |
: set isfname=@,240-249,/,.,-,_,+,,,$,:,~,{,} | |
:else | |
: set isfname=@,48-57,/,.,-,_,+,,,$,:,~,{,} | |
:endif | |
:function! DeleteDirectory(dir) | |
: if has("win16") || has("win32") || has("win64") || has("dos16") || has("dos32") | |
: exec "silent !rmdir /Q /S " . a:dir[13;39H[K[14;3Hels[14;7H[K[15;3H exec "silent !rm -rf " . a:dir | |
: endif[16;9H[K[17;2Hendfun | |
:if has("unix") | |
:let $CDIR = "." | |
/CDIR[20;6H[K[21;1H:else | |
:if has("amiga") | |
:let $TDIR = "/testdir" | |
:else[24;6H[K[25;2Hlet $TDIR = "." | |
:endif[26;7H[K[27;1H/TDIR[27;6H[K[28;1H:endif | |
:" Dummy writing for making that sure gf doesn't fail even if the current | |
:" file is modified. It can be occurred when executing the following command | |
:" directly on Windows without fixing the 'fileformat':[31;56H[K[32;4H > nmake -f Make_dos.mak test17.out[32;39H[K[33;2Hw! test.out[33;13H[K[34;1Hgf[34;3H[K[35;1H:set ff=unix | |
:w! test.out | |
:brewind[37;9H[K[38;1HENDTEST[38;8H[K[39;1H[K[40;9H${CDIR}/test17a.in[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25h" Dummy writing for making that sure gf doesn't fail even if the current | |
[?25l[40;9H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" file is modified. It can be occurred when executing the following command | |
[?25l[40;9H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" directly on Windows without fixing the 'fileformat': | |
[?25l[40;9H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" > nmake -f Make_dos.mak test17.out | |
[?25l[40;9H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 141 lines, 2634 characters written[40;9H[?12l[?25h[?25l | |
"/sources/vim74/src/testdir/./test17a.in" [41;43H[K[41;43H3 lines, 88 characters[1;1HThis file is just to test "gf" in test 17. | |
The contents is not important.[2;31H[K[3;1HJust testing! | |
[1m[34m~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h | |
[?25l[m[41;1H[K[41;1H:[?12l[?25hset ff=unix | |
[?25l[2;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! test.out | |
[?25l"test.out" [41;12H[K[41;12H3 lines, 88 characters written[2;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbrewind | |
[?25l"test17.in" 141 lines, 2634 characters[1;1H:else[1;6H[K[2;1H:if has("amiga")[2;17H[K[3;1H:let $TDIR = "/testdir" | |
:else[4;6H[K[5;1H:let $TDIR = "."[5;17H[K[6;1H:endif[6;7H[K[7;1H/TDIR[7;6H[K[8;1H:endif[8;7H[K[9;1H:" Dummy writing for making that sure gf doesn't fail even if the current[9;74H[K[10;1H:" file is modified. It can be occurred when executing the following command[10;77H[K[11;1H:" directly on Windows without fixing the 'fileformat':[11;56H[K[12;1H:" > nmake -f Make_dos.mak test17.out[12;39H[K[13;1H:w! test.out[13;13H[K[14;1Hgf[14;3H[K[15;1H:set ff=unix[15;13H[K[16;1H:w! test.out[16;13H[K[17;1H:brewind[17;9H[K[18;1HENDTEST[18;8H[K[19;1H[K[20;1H ${CDIR}/test17a.in[20;27H[K[21;1H $TDIR/test17a.in[21;25H[K[22;1H[K[23;1HSTARTTEST[23;10H[K[24;1H:" check for 'include' without \zs or \ze[24;42H[K[25;1H:lang C[25;8H[K[26;1H:call delete("./Xbase.a")[26;26H[K[27;1H:call DeleteDirectory("Xdir1")[27;31H[K[28;1H:!mkdir Xdir1[28;14H[K[29;1H:!mkdir "Xdir1/dir2"[29;21H[K[30;1H:e! Xdir1/dir2/foo.a[30;21H[K[31;1Hi#include "bar.a"[34m^[[m[31;22H[K[32;1H:w[32;3H[K[33;1H:e Xdir1/dir2/bar.a[33;20H[K[34;1Hi#include "baz.a"[34m^[[m[34;25H[K[35;1H:w[35;3H[K[36;1H:e Xdir1/dir2/baz.a[36;20H[K[37;1Hi#include "foo.a"[34m^[[m[37;31H[K[38;1H:w[38;3H[K[39;1H:e Xbase.a[39;11H[K[40;1H:set path=Xdir1/dir2[40;21H[K[20;8H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[23;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H23 lines, 395 characters written[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[24;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[7M[1;41r[34;1Hi#include <foo.a>[34m^[[m | |
:w | |
:redir! >>test.out | |
:checkpath! | |
:redir END | |
:brewind | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" check for 'include' without \zs or \ze | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hlang C | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall delete("./Xbase.a") | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall DeleteDirectory("Xdir1") | |
[?25l[?1l>[?12l[?25h[?1049l[?1049h[?1h=[40;1H[?25l[41;1H[K[41;1H:[?12l[?25h!mkdir Xdir1 | |
[?25l[13C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!mkdir "Xdir1/dir2" | |
[?25l[20C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25he! Xdir1/dir2/foo.a | |
[?25l"Xdir1/dir2/foo.a" [New File][27m[m[H[2J[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m#include "bar.a"[?12l[?25h[?25l[41;1H:[?12l[?25hw | |
[?25l"Xdir1/dir2/foo.a" [New File] 1 line, 19 characters written[1;18H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xdir1/dir2/bar.a | |
[?25l"Xdir1/dir2/bar.a" [New File][1;1H[K[1;1H[?12l[?25h[?25l#include "baz.a"[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xdir1/dir2/bar.a" [New File] 1 line, 22 characters written[1;21H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xdir1/dir2/baz.a | |
[?25l"Xdir1/dir2/baz.a" [New File][1;1H[K[1;1H[?12l[?25h[?25l#include[12C"foo.a"[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xdir1/dir2/baz.a" [New File] 1 line, 28 characters written[1;27H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xbase.a | |
[?25l"Xbase.a" [New File][1;1H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset path=Xdir1/dir2 | |
[?25l[1;1H[?12l[?25h[?25l#include <foo.a>[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xbase.a" [New File] 1 line, 20 characters written[1;19H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hredir! >>test.out | |
[?25l[1;19H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcheckpath! | |
[?25l[41;1H[K[41;1H[35m--- Included files in path ---[m | |
[34mXdir1/dir2/foo.a[m | |
Xdir1/dir2/foo.a --> | |
[34mXdir1/dir2/bar.a[m | |
Xdir1/dir2/bar.a --> | |
[34mXdir1/dir2/baz.a[m | |
Xdir1/dir2/baz.a --> | |
[34m"foo.a"[m (Already listed) | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hredir END | |
[?25l[1;1H[8L[1;1H#include <foo.a> | |
[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [m[41;1H[K[1;19H[?12l[?25h[?25l[41;1H:[?12l[?25hbrewind | |
[?25l"test17.in" 141 lines, 2634 characters[1;1H:!mkdir "Xdir1/dir2" | |
:e! Xdir1/dir2/foo.a[2;21H[K[3;1Hi#include "bar.a"[34m^[[m[3;22H[K[4;1H:w[4;3H[K[5;1H:e Xdir1/dir2/bar.a[5;20H[K[6;1Hi#include "baz.a"[34m^[[m[6;25H[K[7;1H:w[7;3H[K[8;1H:e Xdir1/dir2/baz.a[8;20H[K[9;1Hi#include "foo.a"[34m^[[m[9;31H[K[10;1H:w[10;3H[K[11;1H:e Xbase.a[11;11H[K[12;1H:set path=Xdir1/dir2[12;21H[K[13;1Hi#include <foo.a>[34m^[[m[13;23H[K[14;1H:w[14;3H[K[15;1H:redir! >>test.out[15;19H[K[16;1H:checkpath![16;12H[K[17;1H:redir END[17;11H[K[18;1H:brewind[18;9H[K[19;1HENDTEST[19;8H[K[20;1H[K[21;1HSTARTTEST[21;10H[K[22;1H:" check for 'include' with \zs and \ze[22;40H[K[23;1H:call delete("./Xbase.b")[23;26H[K[24;1H:call DeleteDirectory("Xdir1")[24;31H[K[25;1H:!mkdir Xdir1[25;14H[K[26;1H:!mkdir "Xdir1/dir2"[26;21H[K[27;1H:let &include='^\s*%inc\s*/\zs[^/]\+\ze'[27;41H[K[28;1H:function! DotsToSlashes()[28;27H[K[29;1H: return substitute(v:fname, '\.', '/', 'g') . '.b'[29;53H[K[30;1H:endfunction[30;13H[K[31;1H:let &includeexpr='DotsToSlashes()'[31;36H[K[32;1H:e! Xdir1/dir2/foo.b[32;21H[K[33;1Hi%inc /bar/[34m^[[m[33;16H[K[34;1H:w[34;3H[K[35;1H:e Xdir1/dir2/bar.b[35;20H[K[36;1Hi%inc /baz/[34m^[[m[36;19H[K[37;1H:w[37;3H[K[38;1H:e Xdir1/dir2/baz.b[38;20H[K[39;1Hi%inc /foo/[34m^[[m[39;25H[K[40;1H:w[40;3H[K[20;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[21;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H27 lines, 531 characters written[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[22;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[9M[1;41r[32;1H:e Xbase.b | |
:set path=Xdir1/dir2 | |
i%inc /foo/[34m^[[m | |
:w | |
:redir! >>test.out | |
:checkpath! | |
:redir END | |
:brewind | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" check for 'include' with \zs and \ze | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall delete("./Xbase.b") | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall DeleteDirectory("Xdir1") | |
[?25l[?1l>[?12l[?25h[?1049l[?1049h[?1h=[40;1H[?25l[41;1H[K[41;1H:[?12l[?25h!mkdir Xdir1 | |
[?25l[13C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!mkdir "Xdir1/dir2" | |
[?25l[20C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25hlet &include='^\s*%inc\s*/\zs[^/]\+\ze' | |
[?25l[27m[m[H[2J[1;1H:e Xbase.a | |
:set path=Xdir1/dir2 | |
i#include <foo.a>[34m^[[m | |
:w | |
:redir! >>test.out | |
:checkpath! | |
:redir END | |
:brewind | |
ENDTEST | |
STARTTEST | |
:" check for 'include' with \zs and \ze | |
:call delete("./Xbase.b") | |
:call DeleteDirectory("Xdir1") | |
:!mkdir Xdir1 | |
:!mkdir "Xdir1/dir2" | |
:let &include='^\s*%inc\s*/\zs[^/]\+\ze' | |
:function! DotsToSlashes() | |
: return substitute(v:fname, '\.', '/', 'g') . '.b' | |
:endfunction | |
:let &includeexpr='DotsToSlashes()' | |
:e! Xdir1/dir2/foo.b | |
i%inc /bar/[34m^[[m | |
:w | |
:e Xdir1/dir2/bar.b | |
i%inc /baz/[34m^[[m | |
:w | |
:e Xdir1/dir2/baz.b | |
i%inc[12C/foo/[34m^[[m | |
:w | |
:e Xbase.b | |
:set path=Xdir1/dir2 | |
i%inc /foo/[34m^[[m | |
:w | |
:redir! >>test.out | |
:checkpath! | |
:redir END | |
:brewind | |
ENDTEST | |
[?12l[?25h[?25l | |
:[?12l[?25hfunction! DotsToSlashes() | |
[?25l | |
: [?12l[?25h: return substitute(v:fname, '\.', '/', 'g') . '.b' | |
[?25l: [?12l[?25h:endfunction | |
[1;1H[2L[?25l[1;1H:e Xbase.a | |
:set path=Xdir1/dir2[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hlet &includeexpr='DotsToSlashes()' | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xdir1/dir2/foo.b | |
[?25l"Xdir1/dir2/foo.b" [New File][1;1H[K[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m%inc /bar/[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xdir1/dir2/foo.b" [New File] 1 line, 13 characters written[1;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xdir1/dir2/bar.b | |
[?25l"Xdir1/dir2/bar.b" [New File][1;1H[K[1;1H[?12l[?25h[?25l%inc /baz/[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xdir1/dir2/bar.b" [New File] 1 line, 16 characters written[1;15H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xdir1/dir2/baz.b | |
[?25l"Xdir1/dir2/baz.b" [New File][1;1H[K[1;1H[?12l[?25h[?25l%inc[12C/foo/[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xdir1/dir2/baz.b" [New File] 1 line, 22 characters written[1;21H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xbase.b | |
[?25l"Xbase.b" [New File][1;1H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset path=Xdir1/dir2 | |
[?25l[1;1H[?12l[?25h[?25l%inc /foo/[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xbase.b" [New File] 1 line, 14 characters written[1;13H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hredir! >>test.out | |
[?25l[1;13H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcheckpath! | |
[?25l[41;1H[K[41;1H[35m--- Included files in path ---[m | |
[34mXdir1/dir2/foo.b[m | |
Xdir1/dir2/foo.b --> | |
[34mXdir1/dir2/bar.b[m | |
Xdir1/dir2/bar.b --> | |
[34mXdir1/dir2/baz.b[m | |
Xdir1/dir2/baz.b --> | |
[34mfoo[m (Already listed) | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hredir END | |
[?25l[1;1H[8L[1;1H%inc /foo/ | |
[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [m[41;1H[K[1;13H[?12l[?25h[?25l[41;1H:[?12l[?25hbrewind | |
[?25l"test17.in" 141 lines, 2634 characters[1;1H:let &includeexpr='DotsToSlashes()' | |
:e! Xdir1/dir2/foo.b[2;21H[K[3;1Hi%inc /bar/[34m^[[m[3;16H[K[4;1H:w[4;3H[K[5;1H:e Xdir1/dir2/bar.b[5;20H[K[6;1Hi%inc /baz/[34m^[[m[6;19H[K[7;1H:w[7;3H[K[8;1H:e Xdir1/dir2/baz.b[8;20H[K[9;1Hi%inc /foo/[34m^[[m[9;25H[K[10;1H:w[10;3H[K[11;1H:e Xbase.b[11;11H[K[12;1H:set path=Xdir1/dir2[12;21H[K[13;1Hi%inc /foo/[34m^[[m[13;17H[K[14;1H:w[14;3H[K[15;1H:redir! >>test.out[15;19H[K[16;1H:checkpath![16;12H[K[17;1H:redir END[17;11H[K[18;1H:brewind[18;9H[K[19;1HENDTEST[19;8H[K[20;1H[K[21;1HSTARTTEST[21;10H[K[22;1H:" check for 'include' with \zs and no \ze[22;43H[K[23;1H:call delete("./Xbase.c")[23;26H[K[24;1H:call DeleteDirectory("Xdir1")[24;31H[K[25;1H:!mkdir Xdir1[25;14H[K[26;1H:!mkdir "Xdir1/dir2"[26;21H[K[27;1H:let &include='^\s*%inc\s*\%([[:upper:]][^[:space:]]*\s\+\)\?\zs\S\+\ze'[27;73H[K[28;1H:function! StripNewlineChar()[28;30H[K[29;1H: if v:fname =~ '\n$'[29;23H[K[30;1H: return v:fname[:-2][30;25H[K[31;1H: endif[31;9H[K[32;1H: return v:fname[32;18H[K[33;1H:endfunction[33;13H[K[34;1H:let &includeexpr='StripNewlineChar()'[34;39H[K[35;1H:e! Xdir1/dir2/foo.c[35;21H[K[36;1Hi%inc bar.c[34m^[[m[36;16H[K[37;1H:w[37;3H[K[38;1H:e Xdir1/dir2/bar.c[38;20H[K[39;1Hi%inc baz.c[34m^[[m[39;19H[K[40;1H:w[40;3H[K[20;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[21;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H39 lines, 743 characters written[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[22;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[21M[1;41r[20;1H:e Xdir1/dir2/baz.c | |
i%inc[12Cfoo.c[34m^[[m | |
:w | |
:e Xdir1/dir2/FALSE.c | |
i%inc[12Cfoo.c[34m^[[m | |
:w | |
:e Xbase.c | |
:set path=Xdir1/dir2 | |
i%inc FALSE.c foo.c[34m^[[m | |
:w | |
:redir! >>test.out | |
:checkpath! | |
:redir END | |
:brewind | |
:" change "\" to "/" for Windows and fix 'fileformat' | |
:e test.out | |
:%s#\\#/#g | |
:set ff& | |
:w | |
:q | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" check for 'include' with \zs and no \ze | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall delete("./Xbase.c") | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall DeleteDirectory("Xdir1") | |
[?25l[?1l>[?12l[?25h[?1049l[?1049h[?1h=[40;1H[?25l[41;1H[K[41;1H:[?12l[?25h!mkdir Xdir1 | |
[?25l[13C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!mkdir "Xdir1/dir2" | |
[?25l[20C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25hlet &include='^\s*%inc\s*\%([[:upper:]][^[:space:]]*\s\+\)\?\zs\S\+\ze' | |
[?25l[27m[m[H[2J[1;1H:call delete("./Xbase.c") | |
:call DeleteDirectory("Xdir1") | |
:!mkdir Xdir1 | |
:!mkdir "Xdir1/dir2" | |
:let &include='^\s*%inc\s*\%([[:upper:]][^[:space:]]*\s\+\)\?\zs\S\+\ze' | |
:function! StripNewlineChar() | |
: if v:fname =~ '\n$' | |
: return v:fname[:-2] | |
: endif | |
: return v:fname | |
:endfunction | |
:let &includeexpr='StripNewlineChar()' | |
:e! Xdir1/dir2/foo.c | |
i%inc bar.c[34m^[[m | |
:w | |
:e Xdir1/dir2/bar.c | |
i%inc baz.c[34m^[[m | |
:w | |
:e Xdir1/dir2/baz.c | |
i%inc[12Cfoo.c[34m^[[m | |
:w | |
:e Xdir1/dir2/FALSE.c | |
i%inc[12Cfoo.c[34m^[[m | |
:w | |
:e Xbase.c | |
:set path=Xdir1/dir2 | |
i%inc FALSE.c foo.c[34m^[[m | |
:w | |
:redir! >>test.out | |
:checkpath! | |
:redir END | |
:brewind | |
:" change "\" to "/" for Windows and fix 'fileformat' | |
:e test.out | |
:%s#\\#/#g | |
:set ff& | |
:w | |
:q | |
ENDTEST | |
[?12l[?25h[?25l | |
:[?12l[?25hfunction! StripNewlineChar() | |
[?25l | |
: [?12l[?25h: if v:fname =~ '\n$' | |
[?25l: [?12l[?25h: return v:fname[:-2] | |
[?25l: [?12l[?25h: endif | |
[?25l: [?12l[?25h: return v:fname | |
[?25l: [?12l[?25h:endfunction | |
[1;1H[5L[?25l[1;1H:call delete("./Xbase.c") | |
:call DeleteDirectory("Xdir1") | |
:!mkdir Xdir1 | |
:!mkdir "Xdir1/dir2" | |
:let &include='^\s*%inc\s*\%([[:upper:]][^[:space:]]*\s\+\)\?\zs\S\+\ze'[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hlet &includeexpr='StripNewlineChar()' | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xdir1/dir2/foo.c | |
[?25l"Xdir1/dir2/foo.c" [New File][1;1H[K[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m%inc bar.c[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xdir1/dir2/foo.c" [New File] 1 line, 13 characters written[1;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xdir1/dir2/bar.c | |
[?25l"Xdir1/dir2/bar.c" [New File][1;1H[K[1;1H[?12l[?25h[?25l%inc baz.c[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xdir1/dir2/bar.c" [New File] 1 line, 16 characters written[1;15H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xdir1/dir2/baz.c | |
[?25l"Xdir1/dir2/baz.c" [New File][1;1H[K[1;1H[?12l[?25h[?25l%inc[12Cfoo.c[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xdir1/dir2/baz.c" [New File] 1 line, 22 characters written[1;21H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xdir1/dir2/FALSE.c | |
[?25l"Xdir1/dir2/FALSE.c" [New File][1;1H[K[1;1H[?12l[?25h[?25l%inc[12Cfoo.c[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xdir1/dir2/FALSE.c" [New File] 1 line, 22 characters written[1;21H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xbase.c | |
[?25l"Xbase.c" [New File][1;1H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset path=Xdir1/dir2 | |
[?25l[1;1H[?12l[?25h[?25l%inc FALSE.c foo.c[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xbase.c" [New File] 1 line, 22 characters written[1;21H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hredir! >>test.out | |
[?25l[1;21H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcheckpath! | |
[?25l[41;1H[K[41;1H[35m--- Included files in path ---[m | |
[34mXdir1/dir2/foo.c[m | |
Xdir1/dir2/foo.c --> | |
[34mXdir1/dir2/bar.c[m | |
Xdir1/dir2/bar.c --> | |
[34mXdir1/dir2/baz.c[m | |
Xdir1/dir2/baz.c --> | |
[34mfoo.c[m (Already listed) | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hredir END | |
[?25l[1;1H[8L[1;1H%inc FALSE.c foo.c | |
[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [m[41;1H[K[1;21H[?12l[?25h[?25l[41;1H:[?12l[?25hbrewind | |
[?25l"test17.in" 141 lines, 2634 characters[1;1H:call delete("./Xbase.c") | |
:call DeleteDirectory("Xdir1")[2;31H[K[3;1H:!mkdir Xdir1[3;14H[K[4;1H:!mkdir "Xdir1/dir2"[4;21H[K[5;1H:let &include='^\s*%inc\s*\%([[:upper:]][^[:space:]]*\s\+\)\?\zs\S\+\ze'[5;73H[K[6;1H:function! StripNewlineChar()[6;30H[K[7;1H: if v:fname =~ '\n$'[7;23H[K[8;1H: return v:fname[:-2][8;25H[K[9;1H: endif[9;9H[K[10;1H: return v:fname[10;18H[K[11;1H:endfunction[11;13H[K[12;1H:let &includeexpr='StripNewlineChar()'[12;39H[K[13;1H:e! Xdir1/dir2/foo.c[13;21H[K[14;1Hi%inc bar.c[34m^[[m[14;16H[K[15;1H:w[15;3H[K[16;1H:e Xdir1/dir2/bar.c[16;20H[K[17;1Hi%inc baz.c[34m^[[m[17;19H[K[18;1H:w[18;3H[K[19;1H:e Xdir1/dir2/baz.c[19;20H[K[20;1Hi%inc foo.c[34m^[[m[20;25H[K[21;1H:w[21;3H[K[22;1H:e Xdir1/dir2/FALSE.c[22;22H[K[23;1Hi%inc foo.c[34m^[[m[23;25H[K[24;1H:w[24;3H[K[25;1H:e Xbase.c[25;11H[K[26;1H:set path=Xdir1/dir2[26;21H[K[27;1Hi%inc FALSE.c foo.c[34m^[[m[27;25H[K[28;1H:w[28;3H[K[29;1H:redir! >>test.out[29;19H[K[30;1H:checkpath![30;12H[K[31;1H:redir END[31;11H[K[32;1H:brewind[32;9H[K[33;1H:" change "\" to "/" for Windows and fix 'fileformat'[33;54H[K[34;1H:e test.out[34;12H[K[35;1H:%s#\\#/#g[35;11H[K[36;1H:set ff&[36;9H[K[37;1H:w[37;3H[K[38;1H:q[38;3H[K[39;1HENDTEST[39;8H[K[40;1H[K[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" change "\" to "/" for Windows and fix 'fileformat' | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he test.out | |
[?25l"test.out" 33 lines, 655 characters[1;1HThis file is just to test "gf" in test 17. | |
The contents is not important. | |
Just testing![4;1H[K[5;1H[K[6;1H--- Included files in path --- | |
Xdir1/dir2/foo.a[7;18H[K[8;1HXdir1/dir2/foo.a -->[8;21H[K[9;1H Xdir1/dir2/bar.a | |
Xdir1/dir2/bar.a --> | |
Xdir1/dir2/baz.a | |
Xdir1/dir2/baz.a -->[12;25H[K[13;1H "foo.a" (Already listed)[14;1H[K[15;1H[K[16;1H--- Included files in path --- | |
Xdir1/dir2/foo.b[17;17H[K[18;1HXdir1/dir2/foo.b --> | |
Xdir1/dir2/bar.b[19;19H[K[20;1H Xdir1/dir2/bar.b -->[20;23H[K[21;1H Xdir1/dir2/baz.b | |
Xdir1/dir2/baz.b --> | |
foo (Already listed)[24;1H[K[25;1H[K[26;1H--- Included files in path --- | |
Xdir1/dir2/foo[27;18H[K[28;1HXdir1/dir2/foo.c --> | |
Xdir1/dir2/bar.c | |
Xdir1/dir2/bar.c --> | |
Xdir1/dir2/baz.c | |
Xdir1/dir2/baz.c --> | |
foo.c (Already listed)[33;30H[K[34;1H[1m[34m~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25h%s#\\#/#g | |
[?25l[1m[37m[41mE486: Pattern not found: \\[1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset ff& | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"test.out" 33 lines, 655 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hq | |
[?25l[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test18.failed test.ok test.out X* viminfo | |
cp test18.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test18.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test18.in" 16 lines, 213 characters[1;1HTests for not doing smart indenting when it isn't set. | |
STARTTEST | |
:so small.vim | |
:set nocin nosi ai | |
/some | |
2cc#test[34m^[[m | |
:?start?,$w! test.out | |
:qa! | |
ENDTEST | |
start text[13;17Hsome test text[14;17Htest text | |
test text[16;17Htest text | |
[1m[34m~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 6 lines, 76 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[10;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[11;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[11;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nocin nosi ai | |
[?25l[11;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hsome | |
[?25l[13;17H[?12l[?25h[?25l[13;40r[40;1H | |
[1;41r[13;17H#test[13;22H[K[40;1H[1m[34m~ [m[41;1H[K[13;21H[?12l[?25h[14;9H[?25l[41;1H:[?12l[?25h?start?,$w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 4 lines, 41 characters written[14;9H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test19.failed test.ok test.out X* viminfo | |
cp test19.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test19.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test19.in" 33 lines, 692 characters[1;1HTests for "r<Tab>" with 'smarttab' and 'expandtab' set/not set. | |
Also test that dv_ works correctly | |
STARTTEST | |
:so small.vim | |
:set smarttab expandtab ts=8 sw=4 | |
:" make sure that backspace works, no matter what termcap is used | |
:set t_kD=[34m^V[mx7f t_kb=[34m^V[mx08 | |
/some | |
r[7C:set noexpandtab | |
/other | |
r | |
:" Test replacing with Tabs and then backspacing to undo it | |
0wR[21C[34m^H^H^H^[[m | |
:" Test replacing with Tabs | |
0wR[21C[34m^[[m | |
:" Test that copyindent works with expandtab set | |
:set expandtab smartindent copyindent ts=8 sw=8 sts=8 | |
o{ | |
x[34m^[[m:set nosol | |
/Second line/ | |
fwdv_:?^start?,$w! test.out | |
:qa! | |
ENDTEST | |
start text[27;17Hsome test text | |
test text[29;17Hother test text | |
a cde | |
f ghi | |
test text | |
Second line beginning with whitespace | |
[1m[34m~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[4;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 19 lines, 447 characters written[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[5;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[24;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset smarttab expandtab ts=8 sw=4 | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" make sure that backspace works, no matter what termcap is used | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset t_kD=^[34m^?[m t_kb=^[34m^H | |
[?25l[27m[m[H[2J[1;1HTests for "r<Tab>" with 'smarttab' and 'expandtab' set/not set. | |
Also test that dv_ works correctly | |
STARTTEST | |
:so small.vim | |
:set smarttab expandtab ts=8 sw=4 | |
:" make sure that backspace works, no matter what termcap is used | |
:set t_kD=[34m^V[mx7f t_kb=[34m^V[mx08 | |
/some | |
r[7C:set noexpandtab | |
/other | |
r | |
:" Test replacing with Tabs and then backspacing to undo it | |
0wR[21C[34m^H^H^H^[[m | |
:" Test replacing with Tabs | |
0wR[21C[34m^[[m | |
:" Test that copyindent works with expandtab set | |
:set expandtab smartindent copyindent ts=8 sw=8 sts=8 | |
o{ | |
x[34m^[[m:set nosol | |
/Second line/ | |
fwdv_:?^start?,$w! test.out | |
:qa! | |
ENDTEST | |
start text[27;17Hsome test text | |
test text[29;17Hother test text | |
a cde | |
f ghi | |
test text | |
Second line beginning with whitespace | |
[1m[34m~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [25;1H[?12l[?25h[?25l[41;1H[m/[?12l[?25hsome | |
[?25l[27;17H[?12l[?25h[?25l ome test text[27;20H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset noexpandtab | |
[?25l[27;20H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hother | |
[?25l[29;17H[?12l[?25h[?25l ther test text[29;20H[?12l[?25h[30;9H[?25l[41;1H[K[41;1H:[?12l[?25h" Test replacing with Tabs and then backspacing to undo it | |
[?25l[30;9H[?12l[?25h | |
[?25l[?12l[?25h | |
[?25l[41;1H[K[41;1H:[?12l[?25h" Test replacing with Tabs | |
[?25l[31;4H[?12l[?25h | |
[?25l [7Chi[?12l[?25h[32;9H[?25l[41;1H[K[41;1H:[?12l[?25h" Test that copyindent works with expandtab set | |
[?25l[32;9H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset expandtab smartindent copyindent ts=8 sw=8 sts=8 | |
[?25l[32;9H[?12l[?25h[?25l[33;40r[33;1H[2L[1;41r[33;1H{[34;9Hx[41;1H[K[34;9H[?12l[?25h[?25l[41;1H:[?12l[?25hset nosol | |
[?25l[34;9H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hSecond line/ | |
[?25l[41;13H[K[41;1H[35;3H[?12l[?25h[22C[?25l | |
with whitespace[35;18H[K[35;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h?^start?,$w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 10 lines, 121 characters written[35;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test20.failed test.ok test.out X* viminfo | |
cp test20.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test20.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test20.in" 22 lines, 361 characters[1;1HTests Blockwise Visual when there are TABs before the text. | |
First test for undo working properly when executing commands from a register. | |
Also test this in an empty buffer. | |
STARTTEST | |
:so tiny.vim | |
G0"ay$k@au | |
:new | |
@auY:quit! | |
GP | |
/start here$ | |
[34m^V[mjjlld | |
:/here$/,$-1w! test.out | |
:qa! | |
ENDTEST | |
test text test tex start here[18;17Hsome text[19;17Htest text | |
test text | |
Ox[34m^[[mjAy[34m^[[mkdd | |
[1m[34m~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[5;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 9 lines, 92 characters written[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[6;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[15;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[16;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso tiny.vim | |
[?25l[16;1H[?12l[?25h[22;1H[21;1H[?25l[21;40r[21;1H[L[1;41r[21;1Hx[41;1H[K[21;1H[?12l[?25h | |
[?25ly[?12l[?25h[21;1H[?25l[21;40r[40;1H | |
[1;41r[40;1H[1m[34m~ [21;1H[?12l[?25h[?25l[m[41;1H2 changes; before #1 0 seconds ago[21;1H[K[21;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:[?12l[?25hnew | |
[?25l[1;1H[K[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [m[20;1H[1m[7m[No Name] [m[21;1H[34m^V[mjjlld | |
:/here$/,$-1w! test.out | |
:qa![23;5H[K[24;1HENDTEST[24;8H[K[25;1H[K[26;1Htest text test tex start here[26;30H[K[27;1H some text[27;26H[K[28;1H test text[28;26H[K[29;1Htest text[29;10H[K[30;1H[K[31;1HOx[34m^[[mjAy[34m^[[mkdd[31;13H[K[40;1H[7mtest20.in [1;1H[?12l[?25h[?25l[1;19r[m[1;1H[L[1;41r[1;1Hx[20;11H[1m[7m[+][m[41;1H[K[1;1H[?12l[?25h | |
[?25ly[?12l[?25h[1;1H[?25l[1;19r[19;1H | |
[1;41r[19;1H[1m[34m~ [1;1H[?12l[?25h[?25l[m[41;1H1 line less; before #1 0 seconds ago[1;1H[K[20;11H[1m[7m [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hquit! | |
[?25l[1;1HTests Blockwise Visual when there are TABs before the text. | |
First test for undo working properly when executing commands from a register.[2;78H[K[3;1HAlso test this in an empty buffer.[3;35H[K[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so tiny.vim[6;13H[K[7;1HG0"ay$k@au[7;11H[K[8;1H:new[8;5H[K[9;1H@auY:quit![9;11H[K[10;1HGP[10;3H[K[11;1H/start here$[11;13H[K[12;1H[34m^V[mjjlld[12;8H[K[13;1H:/here$/,$-1w! test.out[13;24H[K[14;1H:qa![14;5H[K[15;1HENDTEST[15;8H[K[16;1H[K[17;1Htest text test tex start here[17;30H[K[18;1H some text[18;26H[K[19;1H test text[19;26H[K[20;1Htest text[20;10H[K[21;1H[K[22;1HOx[34m^[[mjAy[34m^[[mkdd[22;13H[K[23;1H[1m[34m~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [40;1H~ [22;1H[?12l[?25h[?25l[22;40r[m[22;1H[L[1;41r[41;1H[K[22;1H[?12l[?25h | |
[?25l[41;1H/[?12l[?25hstart here$ | |
[?25l[31msearch hit BOTTOM, continuing at TOP[17;20H[?12l[?25h[?25l[?12l[?25h[?25l[m[7ms[18;20H[?12l[?25h[?25le[19;20H[?12l[?25h[?25l[17;21Ht[18;21H [19;20Ht[?12l[?25h[?25l[17;22Ha[18;22Ht[19;21H [?12l[?25h[?25l[m[17;20Hrt here[17;27H[K[18;20Hext[18;23H[K[19;20Hex[19;23H[K[17;20H[?12l[?25h[18;20H[?25l[41;1H[K[41;1H:[?12l[?25h/here$/,$-1w! test.out | |
[?25l[31msearch hit BOTTOM, continuing at TOP[m | |
"test.out" [41;12H[K[41;12H[New File] 6 lines, 57 characters written[18;20H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test21.failed test.ok test.out X* viminfo | |
cp test21.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test21.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test21.in" 19 lines, 297 characters[1;1HTests for [ CTRL-I with a count and CTRL-W CTRL-I with a count | |
STARTTEST | |
:so small.vim | |
/start | |
6[ :.w! test.out | |
?start here | |
6[34m^W[m :.w >>test.out | |
:qa! | |
ENDTEST | |
#include test21.in | |
/* test text test tex start here[15;17Hsome text[16;17Htest text[17;17Hstart OK if found this line[18;9Hstart found wrong line | |
test text | |
[1m[34m~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 6 lines, 73 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[10;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[11;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[11;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hstart | |
[?25l[14;23H[?12l[?25h[17;17H[?25l[41;1H[K[41;1H:[?12l[?25h.w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 1 line, 30 characters written[17;17H[?12l[?25h[?25l[41;1H[K[41;1H?[?12l[?25hstart here | |
[?25l[14;23H[?12l[?25h[?25l[1;1H6[34m^W[m :.w >>test.ou[1;23H[K[2;1H:qa! | |
ENDTEST[3;8H[K[4;1H[K[5;1H#include test21.in[6;1H[K[7;1H/* test text test tex start here | |
some text | |
[12Ctest text | |
[9Cstart OK if found this line[11;9Hstart found wrong line | |
test text[12;10H[K[13;1H[1m[34m~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [m[20;1H[1m[7mtest21.in [m[21;1H6[34m^W[m :.w >>test.out[21;23H[K[22;1H:qa![22;5H[K[23;1HENDTEST[23;8H[K[24;1H[K[25;1H#include test21.in[25;19H[K[26;1H[K[27;1H/* test text test tex start here[27;33H[K[28;1H some text[28;26H[K[29;1H test text[29;26H[K[30;1H start OK if found this line[30;44H[K[31;1H start found wrong line[31;31H[K[32;1Htest text[32;10H[K[40;1H[7mtest21.in [10;17H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 30 characters appended[10;17H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test22.failed test.ok test.out X* viminfo | |
cp test22.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test22.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test22.in" 13 lines, 197 characters[1;1HTests for file with some lines ending in CTRL-M, some not[34m^M | |
^M[m | |
STARTTEST | |
:set ta tx | |
:e! | |
:$-3,$w! test.out | |
:qa! | |
ENDTEST | |
this lines ends in a[34m^M[m | |
this one doesn't | |
this one does[34m^M[m | |
and the last one doesn't | |
[1m[34m~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 4 lines, 38 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[8;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset ta tx | |
[?25l[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! | |
[?25l"test22.in" 13 lines, 197 characters[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$-3,$w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 4 lines, 79 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test23.failed test.ok test.out X* viminfo | |
cp test23.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test23.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test23.in" 15 lines, 282 characters[1;1HTests for complicated + argument to :edit command | |
STARTTEST | |
:$-1w! Xfile1 | |
:$w! Xfile2 | |
:edit +1|s/|/PIPE/|w Xfile1| e Xfile2|1 | s/\//SLASH/|w | |
:w! test.out | |
:e Xfile1 | |
:w >> test.out | |
:qa! | |
ENDTEST | |
The result should be in Xfile1: "fooPIPEbar", in Xfile2: "fooSLASHbar" | |
foo|bar | |
foo/bar | |
[1m[34m~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 7 lines, 125 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[11;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[12;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$-1w! Xfile1 | |
[?25l"Xfile1" [41;10H[K[41;10H[New File] 1 line, 8 characters written[12;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$w! Xfile2 | |
[?25l"Xfile2" [41;10H[K[41;10H[New File] 1 line, 8 characters written[12;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hedit +1|s/|/PIPE/|w Xfile1| e Xfile2|1 | s/\//SLASH/|w | |
[?25l"Xfile1" [41;10H[K[41;10H1 line, 8 characters | |
foo|bar | |
"Xfile1" 1 line, 11 characters written | |
"Xfile2" 1 line, 8 characters | |
foo/bar | |
"Xfile2" 1 line, 12 characters written | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 1 line, 12 characters written | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25he Xfile1 | |
[?25l"Xfile1" 1 line, 11 characters[1;1H[7L[1;1HfooPIPEbar | |
[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [m[41;1H[K[41;1H"Xfile1" 1 line, 11 characters[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >> test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 11 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test24.failed test.ok test.out X* viminfo | |
cp test24.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test24.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test24.in" 89 lines, 1301 characters[1;1HTests for regexp with backslash and other special characters inside [] | |
Also test backslash for hex/octal numbered character. | |
STARTTEST | |
:set nocompatible viminfo+=nviminfo | |
/[\x] | |
x/[\t\]] | |
x/[]y] | |
x/[\]] | |
x/[y^] | |
x/[$y] | |
x/[\x61] | |
x/[\x60-\x64] | |
xj0/[\x785] | |
x/[\o143] | |
x/[\o140-\o144] | |
x/[\o417] | |
x/\%x42 | |
x/\%o103 | |
x/[\x00] | |
x | |
:s/[\x00-\x10]//g | |
:s/[\x-z]\+// | |
:s/[\u-z]\{2,}// | |
:s/\(a\)\+// | |
:s/\(a*\)\+// | |
:s/\(a*\)*// | |
:s/\(a\)\{2,3}/A/ | |
:s/\(a\)\{-2,3}/A/ | |
:s/\(a\)*\(12\)\@>/A/ | |
:s/\(foo\)\@<!bar/A/[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[4;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 51 lines, 519 characters written[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[5;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[16M[1;41r[26;1H:s/\(an\_s\+\)\@<=file/A/ | |
:s/^\(\h\w*\%(->\|\.\)\=\)\+=/XX/ | |
:s/^\(\h\w*\%(->\|\.\)\=\)\+=/YY/ | |
:s/aaa/xyz/ | |
:s/~/bcd/ | |
:s/~\+/BB/ | |
:" | |
:?start?,$w! test.out | |
:qa! | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nocompatible viminfo+=nviminfo | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h[\x] | |
[?25l[1;40r[1;1H[2M[1;41r[39;1Hstart | |
test \text test text[41;1H[K[40;6H[?12l[?25h[?25ltext test text[40;20H[K[40;6H[?12l[?25h[?25l | |
/[?12l[?25h[\t\]] | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Htest text test text[41;1H[K[40;8H[?12l[?25h[?25ltext test tex[40;20H[K[40;6H[?12l[?25h[?25l | |
/[?12l[?25h[]y] | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Htest text ]test text[41;1H[K[40;11H[?12l[?25h[?25ltest text[40;20H[K[40;11H[?12l[?25h[?25l | |
/[?12l[?25h[\]] | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Htest ]text test text[41;1H[K[40;6H[?12l[?25h[?25ltext test text[40;20H[K[40;6H[?12l[?25h[?25l | |
/[?12l[?25h[y^] | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Htest text te^st text[41;1H[K[40;13H[?12l[?25h[?25lst text[40;20H[K[40;13H[?12l[?25h[?25l | |
/[?12l[?25h[$y] | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Htest te$xt test text[41;1H[K[40;8H[?12l[?25h[?25lxt test text[40;20H[K[40;8H[?12l[?25h[?25l | |
/[?12l[?25h[\x61] | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Htest taext test text x61[41;1H[K[40;7H[?12l[?25h[?25lext test text x61[40;25H[K[40;7H[?12l[?25h[?25l | |
/[?12l[?25h[\x60-\x64] | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Htest tbext test text x60-x64[41;1H[K[40;7H[?12l[?25h[?25lext test text x60-x64[40;29H[K[40;7H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Htest 5text test text x78 5[40;7H[?12l[?25h | |
[?25l | |
/[?12l[?25h[\x785] | |
[?25l[40;6H[?12l[?25h[?25ltext test text x78 5[40;27H[K[40;6H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h[\o143] | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Htestc text test text o143[41;1H[K[40;5H[?12l[?25h[?25l text test text o143[40;26H[K[40;5H[?12l[?25h[?25l | |
/[?12l[?25h[\o140-\o144] | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Htesdt text test text o140-o144[41;1H[K[40;4H[?12l[?25h[?25lt text test text o140-o14[40;31H[K[40;4H[?12l[?25h[?25l | |
/[?12l[?25h[\o417] | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Htest7 text test text o41 7[41;1H[K[40;5H[?12l[?25h[?25l text test text o41 7[40;27H[K[40;5H[?12l[?25h[?25l | |
/[?12l[?25h\%x42 | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Htest text tBest text \%x42[41;1H[K[40;12H[?12l[?25h[?25lest text \%x42[40;27H[K[40;12H[?12l[?25h[?25l | |
/[?12l[?25h\%o103 | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Htest text teCst text \%o103[41;1H[K[40;13H[?12l[?25h[?25lst text \%o103[40;28H[K[40;13H[?12l[?25h[?25l | |
/[?12l[?25h[\x00] | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Htest text [34m^@[mtest text [\x00][41;1H[K[40;11H[?12l[?25h[?25ltest text [\x00][40;28H[K[40;11H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Htest te[34m^@[mxt t[34m^D[mest t[34m^P[mext [\x00-\x10][40;11H[?12l[?25h[?25l | |
:[?12l[?25hs/[\x00-\x10]//g | |
[?25l3 substitutions on 1 line[40;8Hxt test text [\x00-\x10][40;33H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Htest \xyztext test text [\x-z][41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hs/[\x-z]\+// | |
[?25l[40;6Htext test text [\x-z][40;28H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Htest text tev\uyst text [\u-z][41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hs/[\u-z]\{2,}// | |
[?25l[40;13Hst text [\u-z][40;28H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hxx aaaaa xx a[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hs/\(a\)\+// | |
[?25l[40;4H xx [40;10H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hxx aaaaa xx a[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hs/\(a*\)\+// | |
[?25l[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hxx aaaaa xx a[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hs/\(a*\)*// | |
[?25l[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hxx aaaaa xx[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hs/\(a\)\{2,3}/A/ | |
[?25l[40;4HAaa xx[40;10H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hxx aaaaa xx[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hs/\(a\)\{-2,3}/A/ | |
[?25l[40;4HAaaa x[40;11H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hxx aaa12aa xx[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hs/\(a\)*\(12\)\@>/A/ | |
[?25l[40;4HAaa xx[40;10H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hxx foobar xbar xx[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hs/\(foo\)\@<!bar/A/ | |
[?25l[40;12HA xx[40;16H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hxx an file xx[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hs/\(an\_s\+\)\@<=file/A/ | |
[?25l[40;7HA xx[40;12H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hx= 9;[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hs/^\(\h\w*\%(->\|\.\)\=\)\+=/XX/ | |
[?25l[40;1HXX | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hhh= 77;[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hs/^\(\h\w*\%(->\|\.\)\=\)\+=/YY/ | |
[?25l[40;1HYY 77;[40;7H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;2Haaa[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hs/aaa/xyz/ | |
[?25l[40;2Hxyz | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;2Hxyz[41;1H[K[40;2H[?12l[?25h[?25l | |
:[?12l[?25hs/~/bcd/ | |
[?25l[40;2Hbcd | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;2Hbcdbcdbcd[41;1H[K[40;2H[?12l[?25h[?25l | |
:[?12l[?25hs/~\+/BB/ | |
[?25l[40;2HBB[40;4H[K[40;2H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[40;2H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h?start?,$w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New] 32L, 586C written[40;2H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test25.failed test.ok test.out X* viminfo | |
cp test25.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test25.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test25.in" 31 lines, 840 characters[1;1HTest for jumping to a tag with 'hidden' set, with symbolic link in path of tag. | |
This only works for Unix, because of the symbolic link. | |
STARTTEST | |
:so small.vim | |
:set hidden | |
:" Create a link from test25.dir to the current directory. | |
:!rm -f test25.dir | |
:!ln -s . test25.dir | |
:" Create tags.text, with the current directory name inserted. | |
/tags line | |
:r !pwd | |
d$/test | |
hP:.w! tags.test | |
:" Try jumping to a tag in the current file, but with a path that contains a | |
:" symbolic link. When wrong, this will give the ATTENTION message. The next | |
:" space will then be eaten by hit-return, instead of moving the cursor to 'd'. | |
:set tags=tags.test | |
G[34m^][m x:.w! test.out | |
:!rm -f test25.dir tags.test | |
:qa! | |
ENDTEST | |
tags line: | |
SECTION_OFF /test25.dir/test25.in /^#define SECTION_OFF 3$/ | |
/*tx.c*/ | |
#define SECTION_OFF 3 | |
#define NUM_SECTIONS 3 | |
SECTION_OFF | |
[1m[34m~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[4;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 17 lines, 540 characters written[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[5;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[22;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset hidden | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" Create a link from test25.dir to the current directory. | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h!rm -f test25.dir | |
[?25l[18C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!ln -s . test25.dir | |
[?25l[20C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h" Create tags.text, with the current directory name inserted. | |
[?25l[27m[m[H[2J[1;1HTest for jumping to a tag with 'hidden' set, with symbolic link in path of tag. | |
This only works for Unix, because of the symbolic link. | |
STARTTEST | |
:so small.vim | |
:set hidden | |
:" Create a link from test25.dir to the current directory. | |
:!rm -f test25.dir | |
:!ln -s . test25.dir | |
:" Create tags.text, with the current directory name inserted. | |
/tags line | |
:r !pwd | |
d$/test | |
hP:.w! tags.test | |
:" Try jumping to a tag in the current file, but with a path that contains a | |
:" symbolic link. When wrong, this will give the ATTENTION message. The next | |
:" space will then be eaten by hit-return, instead of moving the cursor to 'd'. | |
:set tags=tags.test | |
G[34m^][m x:.w! test.out | |
:!rm -f test25.dir tags.test | |
:qa! | |
ENDTEST | |
tags line: | |
SECTION_OFF /test25.dir/test25.in /^#define SECTION_OFF 3$/ | |
/*tx.c*/ | |
#define SECTION_OFF 3 | |
#define NUM_SECTIONS 3 | |
SECTION_OFF | |
[1m[34m~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [23;1H[?12l[?25h[?25l[41;1H[m/[?12l[?25htags line | |
[?25l[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hr !pwd | |
[?25l[?12l[?25h[27m[m[H[2J[?25l[1;1HTest for jumping to a tag with 'hidden' set, with symbolic link in path of tag. | |
This only works for Unix, because of the symbolic link. | |
STARTTEST | |
:so small.vim | |
:set hidden | |
:" Create a link from test25.dir to the current directory. | |
:!rm -f test25.dir | |
:!ln -s . test25.dir | |
:" Create tags.text, with the current directory name inserted. | |
/tags line | |
:r !pwd | |
d$/test | |
hP:.w! tags.test | |
:" Try jumping to a tag in the current file, but with a path that contains a | |
:" symbolic link. When wrong, this will give the ATTENTION message. The next | |
:" space will then be eaten by hit-return, instead of moving the cursor to 'd'. | |
:set tags=tags.test | |
G[34m^][m x:.w! test.out | |
:!rm -f test25.dir tags.test | |
:qa! | |
ENDTEST | |
tags line: | |
/sources/vim74/src/testdir | |
SECTION_OFF /test25.dir/test25.in /^#define SECTION_OFF 3$/ | |
/*tx.c*/ | |
#define SECTION_OFF 3 | |
#define NUM_SECTIONS 3 | |
SECTION_OFF | |
[1m[34m~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [25;1H[?12l[?25h[?25l[m[25;1H[K[25;1H[?12l[?25h[?25l[41;1H/[?12l[?25htest | |
[?25l[26;18H[?12l[?25h[?25l/sources/vim74/src/testdir/test25.dir/test25.in /^#define SECTION_OFF 3$/[26;42H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w! tags.test | |
[?25l"tags.test" [41;13H[K[41;13H[New File] 1 line, 88 characters written[26;42H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" Try jumping to a tag in the current file, but with a path that contains a | |
[?25l[26;42H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" symbolic link. When wrong, this will give the ATTENTION message. The next | |
[?25l[26;42H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" space will then be eaten by hit-return, instead of moving the cursor to 'd'. | |
[?25l[26;42H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset tags=tags.test | |
[?25l[26;42H[?12l[?25h[32;1H[29;1H#[?25lefine SECTION_OFF 3[29;23H[K[29;2H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 1 line, 23 characters written[29;2H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h!rm -f test25.dir tags.test | |
[?25l[28C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test26.failed test.ok test.out X* viminfo | |
cp test26.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test26.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test26.in" 44 lines, 750 characters[1;1HTest for :execute, :while and :if | |
STARTTEST | |
:so small.vim | |
mt:let i = 0 | |
:while i < 12 | |
: let i = i + 1 | |
: if has("ebcdic") | |
: execute "normal o" . i . "\047" | |
: else | |
: execute "normal o" . i . "\033" | |
: endif | |
: if i % 2 | |
: normal Ax[34m^V^[[m | |
: if i == 9 | |
: break | |
: endif | |
: if i == 5 | |
: continue | |
: else | |
: let j = 9 | |
: while j > 0 | |
:[8Cif has("ebcdic") | |
:[10Cexecute "normal" j . "a" . j . "\x27" | |
:[8Celse | |
:[10Cexecute "normal" j . "a" . j . "\x1b" | |
:[8Cendif | |
:[8Clet j = j - 1 | |
: endwhile | |
: endif | |
: endif | |
: if i == 9 | |
: if has("ebcdic") | |
: execute "normal Az\047" | |
: else | |
: execute "normal Az\033" | |
: endif | |
: endif | |
:endwhile | |
:unlet i j[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 39 lines, 696 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[3M[1;41r[38;1H:'t,$w! test.out | |
:qa! | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hlet i = 0 | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hwhile i < 12 | |
[?25l | |
: [?12l[?25h: let i = i + 1 | |
[?25l: [?12l[?25h: if has("ebcdic") | |
[?25l: [?12l[?25h: execute "normal o" . i . "\047" | |
[?25l: [?12l[?25h: else | |
[?25l: [?12l[?25h: execute "normal o" . i . "\033" | |
[?25l: [?12l[?25h: endif | |
[?25l: [?12l[?25h: if i % 2 | |
[?25l: [?12l[?25h: normal Ax^[34m^[ | |
[m | |
[?25l: [?12l[?25h: if i == 9 | |
[?25l: [?12l[?25h: break | |
[?25l: [?12l[?25h: endif | |
[?25l: [?12l[?25h: if i == 5 | |
[?25l: [?12l[?25h: continue | |
[?25l: [?12l[?25h: else | |
[?25l: [?12l[?25h: let j = 9 | |
[?25l: [?12l[?25h: while j > 0 | |
[?25l:[8C[?12l[?25h: if has("ebcdic") | |
[?25l:[10C[?12l[?25h: execute "normal" j . "a" . j . "\x27" | |
[?25l:[10C[?12l[?25h: else | |
[?25l:[10C[?12l[?25h: execute "normal" j . "a" . j . "\x1b" | |
[?25l:[10C[?12l[?25h: endif | |
[?25l:[8C[?12l[?25h: let j = j - 1 | |
[?25l:[8C[?12l[?25h: endwhile | |
[?25l: [?12l[?25h: endif | |
[?25l: [?12l[?25h: endif | |
[?25l: [?12l[?25h: if i == 9 | |
[?25l: [?12l[?25h: if has("ebcdic") | |
[?25l: [?12l[?25h: execute "normal Az\047" | |
[?25l: [?12l[?25h: else | |
[?25l: [?12l[?25h: execute "normal Az\033" | |
[?25l: [?12l[?25h: endif | |
[?25l: [?12l[?25h: endif | |
[?25l: [?12l[?25h:endwhile | |
[1;1H[33L[?25l[1;1H: normal Ax[34m^V^[[m | |
: if i == 9 | |
: break | |
: endif | |
: if i == 5 | |
: continue | |
: else | |
: let j = 9 | |
: while j > 0 | |
:[8Cif has("ebcdic") | |
:[10Cexecute "normal" j . "a" . j . "\x27" | |
:[8Celse | |
:[10Cexecute "normal" j . "a" . j . "\x1b" | |
:[8Cendif | |
:[8Clet j = j - 1 | |
: endwhile | |
: endif | |
: endif | |
: if i == 9 | |
: if has("ebcdic") | |
: execute "normal Az\047" | |
: else | |
: execute "normal Az\033" | |
: endif | |
: endif | |
:endwhile | |
:unlet i j | |
:'t,$w! test.out | |
:qa! | |
ENDTEST | |
1x999999999888888887777777666666555554444333221 | |
2 | |
3x999999999888888887777777666666555554444333221 | |
4[35;2H[K[36;1H5x[36;3H[K[37;1H6[37;2H[K[38;1H7x999999999888888887777777666666555554444333221 | |
8[39;2H[K[40;1H9x[41;1H[K[40;2H[?12l[?25h[?25l | |
:[?12l[?25hunlet i j | |
[?25l[40;2H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h't,$w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 10 lines, 159 characters written[40;2H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test27.failed test.ok test.out X* viminfo | |
cp test27.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test27.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test27.in" 20 lines, 270 characters[1;1HTest for expanding file names | |
STARTTEST | |
:!mkdir Xdir1 | |
:!mkdir Xdir2 | |
:!mkdir Xdir3 | |
:cd Xdir3 | |
:!mkdir Xdir4 | |
:cd .. | |
:w Xdir1/file | |
:w Xdir3/Xdir4/file | |
:n Xdir?/*/file | |
Go[34m^R[m%[34m^[[m:.w! test.out | |
:n! Xdir?/*/nofile | |
Go[34m^R[m%[34m^[[m:.w >>test.out | |
:e! xx | |
:!rm -rf Xdir1 Xdir2 Xdir3 | |
:qa! | |
ENDTEST | |
[1m[34m~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 15 lines, 220 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[19;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[20;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h!mkdir Xdir1 | |
[?25l[13C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!mkdir Xdir2 | |
[?25l[13C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25h!mkdir Xdir3 | |
[?25l[13C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25hcd Xdir3 | |
[?25l/sources/vim74/src/testdir/Xdir3[27m[m[H[2J[1;1HTest for expanding file names | |
STARTTEST | |
:!mkdir Xdir1 | |
:!mkdir Xdir2 | |
:!mkdir Xdir3 | |
:cd Xdir3 | |
:!mkdir Xdir4 | |
:cd .. | |
:w Xdir1/file | |
:w Xdir3/Xdir4/file | |
:n Xdir?/*/file | |
Go[34m^R[m%[34m^[[m:.w! test.out | |
:n! Xdir?/*/nofile | |
Go[34m^R[m%[34m^[[m:.w >>test.out | |
:e! xx | |
:!rm -rf Xdir1 Xdir2 Xdir3 | |
:qa! | |
ENDTEST | |
[1m[34m~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [20;1H[?12l[?25h[?25l[41;1H[m:[?12l[?25h!mkdir Xdir4 | |
[?25l[13C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25hcd .. | |
[?25l/sources/vim74/src/testdir[27m[m[H[2J[1;1HTest for expanding file names | |
STARTTEST | |
:!mkdir Xdir1 | |
:!mkdir Xdir2 | |
:!mkdir Xdir3 | |
:cd Xdir3 | |
:!mkdir Xdir4 | |
:cd .. | |
:w Xdir1/file | |
:w Xdir3/Xdir4/file | |
:n Xdir?/*/file | |
Go[34m^R[m%[34m^[[m:.w! test.out | |
:n! Xdir?/*/nofile | |
Go[34m^R[m%[34m^[[m:.w >>test.out | |
:e! xx | |
:!rm -rf Xdir1 Xdir2 Xdir3 | |
:qa! | |
ENDTEST | |
[1m[34m~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [20;1H[?12l[?25h[?25l[41;1H[m:[?12l[?25hw Xdir1/file | |
[?25l"Xdir1/file" [New File] 20 lines, 270 characters written[20;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw Xdir3/Xdir4/file | |
[?25l"Xdir3/Xdir4/file" [New File] 20 lines, 270 characters written[20;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hn Xdir?/*/file | |
[?25l"Xdir3/Xdir4/file" 20 lines, 270 characters[1;1H[?12l[?25h[20;1H[?25l | |
Xdir3/Xdir4/file[21;17H[K[21;16H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 1 line, 17 characters written[21;16H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hn! Xdir?/*/nofile | |
[?25l"Xdir?/*/nofile" [New DIRECTORY][1;1H[K[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [1;1H[?12l[?25h[?25l[m | |
Xdir?/*/nofile[2;15H[K[2;14H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 15 characters appended[2;14H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! xx | |
[?25l"xx" [New File][2;1H[1m[34m~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25h!rm -rf Xdir1 Xdir2 Xdir3 | |
[?25l[26C[?1l>[?12l[?25h[?1049l[?1049h[?1h=[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test28.failed test.ok test.out X* viminfo | |
cp test28.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test28.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test28.in" 23 lines, 364 characters[1;1HTest for sourcing a file with CTRL-V's at the end of the line | |
STARTTEST | |
:/firstline/+1,/lastline/-1w! Xtestfile | |
:so Xtestfile | |
Gmm__1[34m^[^[[m__2[34m^[[m__3[34m^[^[[m__4[34m^[[m__5[34m^[[m:'m,$s/[34m^@[m/0/g | |
:'m,$w! test.out | |
:qa! | |
ENDTEST | |
firstline | |
map __1 afirst | |
map __2 asecond | |
map __3 athird | |
map __4 afourth | |
map __5 afifth | |
map __1 asd[34m^V[m | |
map __2 asd[34m^V^V[m | |
map __3 asd[34m^V^V[m | |
map __4 asd[34m^V^V^V[m | |
map __5 asd[34m^V^V^V[m | |
lastline | |
[1m[34m~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 5 lines, 114 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[9;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[10;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/firstline/+1,/lastline/-1w! Xtestfile | |
[?25l"Xtestfile" [41;13H[K[41;13H[New File] 10 lines, 148 characters written[10;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso Xtestfile | |
[?25l[10;1H[?12l[?25h[23;1H[24;12H[?25l[23;1Hsd | |
map __2 asd[34m^[[m[24;14H[K[24;12H[?12l[?25h[?25l[2Csecond[?12l[?25hd [?25lsd[34m^[[?12l[?25h^[[m [13C[?25l[24;24Hsd[34m^@[mmap __5 asd[34m^@[?12l[?25h[?25l[m[2Cfifth[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h'm,$s/[34m^@[m/0/g | |
[?25l[24;26H0map __5 asd0fifth[24;44H[K[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h'm,$w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 2 lines, 45 characters written[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test29.failed test.ok test.out X* viminfo | |
cp test29.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test29.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test29.in" 202 lines, 3656 characters[1;1HTest for joining lines and marks in them | |
in compatible and nocompatible modes | |
and with 'joinspaces' set or not | |
and with 'cpoptions' flag 'j' set or not | |
STARTTEST | |
:so small.vim | |
:set nocompatible viminfo+=nviminfo | |
:set nojoinspaces | |
:set cpoptions-=j | |
/firstline/ | |
j"td/^STARTTEST/-1 | |
PJjJjJjJjJjJjJjJjJjJjJjJjJjJj05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions+=j | |
j05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions-=j joinspaces | |
j"tpJjJjJjJjJjJjJjJjJjJjJjJjJjJj05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions+=j | |
j05lmx2j06lmy2k4Jy3l$p`xyl$p`yy2l$p:set cpoptions-=j nojoinspaces compatible | |
j"tpJjJjJjJjJjJjJjJjJjJjJjJjJjJj4Jy3l$pjd/STARTTEST/-2 | |
ENDTEST | |
firstline | |
asdfasdf. | |
asdf | |
asdfasdf. | |
asdf | |
asdfasdf. | |
asdf | |
asdfasdf. | |
asdf | |
asdfasdf. | |
asdf | |
asdfasdf. | |
asdf | |
asdfasdf. | |
asdf | |
asdfasdf | |
asdf | |
asdfasdf | |
asdf | |
asdfasdf | |
asdf[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[6;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[7;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 11 lines, 478 characters written[7;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[7;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[18;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[19;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[19;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nocompatible viminfo+=nviminfo | |
[?25l[19;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nojoinspaces | |
[?25l[19;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cpoptions-=j | |
[?25l[19;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hfirstline/ | |
[?25l[41;11H[K[41;1H[20;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H/[?12l[?25h^STARTTEST/-1 | |
[?25l[12C+-1 | |
37 fewer lines[41;15H[K[21;1HSTARTTEST | |
/^{/+1 | |
:set comments=s1:/*,mb:*,ex:*/,:// | |
:set nojoinspaces fo=j | |
:set backspace=eol,start | |
:.,+3join | |
j4J[27;4H[K[28;1H:.,+2join | |
j3J[29;4H[K[30;1H:.,+2join | |
j3J[31;4H[K[32;1H:.,+2join | |
jj3J[33;5H[K[34;1HENDTEST[35;1H[K[36;1H{[36;2H[K[37;1H[K[38;1H/*[38;3H[K[39;1H * Make sure the previous comment leader is not removed. | |
*/[40;4H[K[21;1H[?12l[?25h[?25l[41;4Hmore lines[41;14H[K[21;1Hasdfasdf. | |
asdf[22;5H[K[23;1Hasdfasdf. [23;11H[K[24;1Hasdf[24;6H[K[25;1Hasdfasdf. [25;12H[K[26;1Hasdf[26;5H[K[27;1Hasdfasdf. | |
asdf[28;5H[K[29;1Hasdfasdf. | |
asdf[30;5H[K[31;1Hasdfasdf. | |
asdf[32;5H[K[33;1Hasdfasdf. | |
asdf[34;5H[K[35;1Hasdfasdf | |
asdf | |
asdfasdf | |
asdf | |
asdfasdf [39;11H[K[40;1Hasdf[21;1H[?12l[?25h[?25l[21;40r[40;1H | |
[1;41r[21;5Hasdf. asdf[40;1Hasdfasdf[41;1H[K[21;10H[?12l[?25h[22;10H[?25l[22;40r[40;1H | |
[1;41r[22;5Hasdf. asdf[40;1Hasdf[22;11H[?12l[?25h[23;11H[?25l[23;40r[40;1H | |
[1;41r[23;5Hasdf. asdf[40;1Hasdfasdf[23;12H[?12l[?25h[24;16H[?25l[24;40r[40;1H | |
[1;41r[24;5Hasdf.[7Casdf[40;1Hasdf[24;17H[?12l[?25h[25;16H[?25l[25;40r[40;1H | |
[1;41r[25;5Hasdf.[7Casdf[40;1Hasdfasdf[25;17H[?12l[?25h[26;17H[?25l[26;40r[40;1H | |
[1;41r[26;5Hasdf.[8Casdf[40;1Hasdf[26;18H[?12l[?25h[27;24H[?25l[27;40r[40;1H | |
[1;41r[27;5Hasdf.[15Casdf[40;1Hasdfasdf[27;25H[?12l[?25h[28;8H[?25l[28;40r[40;1H | |
[1;41r[28;5Hasdf asdf[40;1Hasdf[28;9H[?12l[?25h[29;9H[?25l[29;40r[40;1H | |
[1;41r[29;5Hasdf asdf[40;1Hzx cvn.[29;10H[?12l[?25h[30;10H[?25l[30;40r[40;1H | |
[1;41r[30;5Hasdf asdf[40;1Has dfg?[30;11H[?12l[?25h[31;16H[?25l[31;40r[40;1H | |
[1;41r[31;5Hasdf[8Casdf[40;1Hhjkl iop![31;17H[?12l[?25h[32;17H[?25l[32;40r[40;1H | |
[1;41r[32;5Hasdf[9Casdf[40;1Hert[32;18H[?12l[?25h[33;16H[?25l[33;40r[40;1H | |
[1;41r[33;5Hasdf[8Casdf[40;1Hzx cvn.[33;17H[?12l[?25h[34;24H[?25l[34;40r[40;1H | |
[1;41r[34;5Hasdf[16Casdf[40;1Has dfg?[34;25H[?12l[?25h[35;7H | |
zx cv[37;6H | |
hjkl i[35;7H[?25l[35;40r[35;1H[3M[1;41r[35;1Hzx cvn. as dfg? hjkl iop! ert | |
hjkl iop! | |
ert[35;26H[?12l[?25h er[?25lt er[?12l[?25h | |
zx cv[26C[?25lrn[?12l[?25h[35;23H[10C[?25lnop[?12l[?25h[?25l[41;1H:[?12l[?25hset cpoptions+=j | |
[?25l[35;35H[?12l[?25h[36;7H | |
zx cv[38;6H | |
hjkl i[36;7H[?25l. as dfg? hjkl iop! ert[37;1H[K[38;1HSTARTTEST | |
/^{/+1 | |
:set comments=s1:/*,mb:*,ex:*/,://[36;26H[?12l[?25h er[?25lt er[?12l[?25h | |
zx cv[26C[?25lrn[?12l[?25h[36;23H[10C[?25lnop[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cpoptions-=j joinspaces | |
[?25l[36;35H[?12l[?25h | |
[?25l[41;1H37 more lines[41;14H[K[38;1Hasdfasdf. | |
asdf[39;5H[K[40;1Hasdfasdf. [40;11H[K[38;1H[?12l[?25h[?25l[11Casdf | |
asdfasdf.[40;5H[K[38;10H[?12l[?25h[39;10H[?25l asdf | |
asdfasdf.[39;11H[?12l[?25h[40;11H[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf.[41;1H[K[40;16H[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf. [?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf.[7C[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf.[14C[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf[?12l[?25h[?25lf asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf [?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf[7C[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf[8C[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf[7C[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf[15C[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hzx cvn.[?12l[?25h | |
zx cv[?25l[1;40r[1;1H[2M[1;41r[39;1Has dfg? | |
hjkl iop![?12l[?25h | |
hjkl i[38;7H[?25l. as dfg? hjkl iop! ert | |
zx cvn. | |
as dfg?[40;8H[K[38;28H[?12l[?25h er[?25lt e[?12l[?25h | |
zx cv[29C[?25len[?12l[?25h[38;25H[11C[?25lnop[?12l[?25h[?25l | |
:[?12l[?25hset cpoptions+=j | |
[?25l[38;38H[?12l[?25h[39;7H | |
zx cv[?25l[1;40r[40;1H | |
[1;41r[40;1Hhjkl iop![41;1H[K[40;6H[?12l[?25h | |
hjkl i[38;7H[?25l. as dfg? hjkl iop! ert[39;1H[K[40;1HSTARTTEST[38;27H[?12l[?25h er[?25lt er[?12l[?25h | |
zx cv[27C[?25lrn[?12l[?25h[38;24H[10C[?25lnop[?12l[?25h[?25l | |
:[?12l[?25hset cpoptions-=j nojoinspaces compatible | |
[?25l[38;36H[?12l[?25h | |
[?25l | |
37 more lines[41;14H[K[40;1Hasdfasdf. | |
[?12l[?25h[?25l[11Casdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf.[41;1H[K[40;10H[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf. [?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf. [?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf. [?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf.[7C[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf.[14C[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf[?12l[?25h[?25lf asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf [?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf[7C[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf[8C[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf[7C[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hasdfasdf[15C[?12l[?25h[?25l asdf[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hzx cvn.[?12l[?25h[?25l. as dfg? hjkl iop! ert[40;8H[?12l[?25h[22C[?25lt a[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hzx cvn.[?12l[?25h[?25l | |
/[?12l[?25hSTARTTEST/-2 | |
[?25l[11C+-2 | |
4 fewer lines[41;14H[K[40;1H[K[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[1;40r[40;1H | |
[1;41r[40;1HSTARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H/^{/+1 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H12 lines, 147 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[12M[1;41r[29;1H:set comments=s1:/*,mb:*,ex:*/,:// | |
:set nojoinspaces fo=j | |
:set backspace=eol,start | |
:.,+3join | |
j4J | |
:.,+2join | |
j3J | |
:.,+2join | |
j3J | |
:.,+2join | |
jj3J | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^{/+1 | |
[?25l[1;40r[1;1H[2M[1;41r[39;1H{[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hset comments=s1:/*,mb:*,ex:*/,:// | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nojoinspaces fo=j | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset backspace=eol,start | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.,+3join | |
[?25l[40;1H/* Make sure the previous comment leader is not removed. */ | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[41;1H[K[40;1H[?12l[?25h[?25l/* Make sure the previous comment leader is not removed. */ | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:[?12l[?25h.,+2join | |
[?25l[40;1H// Should the next comment leader be left alone? Yes. | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[41;1H[K[40;1H[?12l[?25h[?25l// Should the next comment leader be left alone? Yes. | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:[?12l[?25h.,+2join | |
[?25l[40;1H/* Here the comment leader should be left intact. */ // And so should this one. | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[41;1H[K[40;1H[?12l[?25h[?25l/* Here the comment leader should be left intact. */ // And so should this one. | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:[?12l[?25h.,+2join | |
[?25l[40;1Hif (condition) // Remove the next comment leader! OK, I will. | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Haction();[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25lif (condition) // Remove the next comment leader! OK, I will. | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;5Haction(); | |
[?12l[?25h[?25l | |
/^STARTTEST | |
[1;40r[1;1H[3M[1;41r[38;1H} | |
STARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H/^{/+1 | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H21 lines, 356 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST[41;10H[K[41;1H[27m[m[H[2J[1;1H:set comments+=s1:/*,mb:*,ex:*/,:// | |
:set comments+=s1:>#,mb:#,ex:#<,:< | |
:set cpoptions-=j joinspaces fo=j | |
:set backspace=eol,start | |
:.,+3join | |
j4J | |
:.,+8join | |
j9J | |
:.,+2join | |
j3J | |
:.,+2join | |
j3J | |
:.,+2join | |
jj3J | |
j:.,+2join | |
jj3J | |
j:.,+5join | |
j6J | |
oSome code![34m^M[m// Make sure backspacing does not remove this comment leader.[34m^[[m0i[34m^H^[[m | |
ENDTEST | |
{ | |
/* | |
* Make sure the previous comment leader is not removed. | |
*/ | |
/* | |
* Make sure the previous comment leader is not removed. | |
*/ | |
/* List: | |
* - item1 | |
* foo bar baz | |
* foo bar baz | |
* - item2 | |
* foo bar baz | |
* foo bar baz | |
*/[20;1H[?12l[?25h | |
[?25l[41;1H:so! Xdotest | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^{/+1 | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset comments=sO:*\ -,mO:*\ \ ,exO:*/ | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset comments+=s1:/*,mb:*,ex:*/,:// | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset comments+=s1:>#,mb:#,ex:#<,:< | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cpoptions-=j joinspaces fo=j | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset backspace=eol,start | |
[?25l[23;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.,+3join | |
[?25l[23;40r[23;1H[3M[1;41r[23;1H/* Make sure the previous comment leader is not removed. */[38;1H/* List: | |
* - item1 | |
* foo bar baz[41;1H[K[23;1H[?12l[?25h | |
[?25l[24;40r[24;1H[3M[1;41r[24;1H/* Make sure the previous comment leader is not removed. */[38;2H* foo bar baz | |
* - item2 | |
* foo bar baz[24;1H[?12l[?25h | |
[?25l[41;1H:[?12l[?25h.,+8join | |
[?25l[25;40r[25;1H[8M[1;41r[25;1H/* List: item1 foo bar baz foo bar baz item2 foo bar baz foo bar baz */[33;2H* foo bar baz | |
*/ | |
// Should the next comment leader be left alone? | |
// Yes. | |
// Should the next comment leader be left alone? | |
// Yes.[41;1H[K[25;1H[?12l[?25h | |
[?25l[26;40r[26;1H[8M[1;41r[26;1H/* List: item1 foo bar baz foo bar baz item2 foo bar baz foo bar baz */[34;1H/* Here the comment leader should be left intact. */ | |
// And so should this one. | |
/* Here the comment leader should be left intact. */ | |
// And so should this one. | |
if (condition) // Remove the next comment leader![26;1H[?12l[?25h | |
[?25l[41;1H:[?12l[?25h.,+2join | |
[?25l[27;40r[27;1H[2M[1;41r[27;4HShould the next comment leader be left alone? Yes.[39;16H// OK, I will. | |
action();[41;1H[K[27;1H[?12l[?25h | |
[?25l[28;40r[28;1H[2M[1;41r[28;4HShould the next comment leader be left alone? Yes.[40;1Hif (condition) // Remove the next comment leader![28;1H[?12l[?25h | |
[?25l[41;1H:[?12l[?25h.,+2join | |
[?25l[29;40r[29;1H[2M[1;41r[29;2H* Here the comment leader should be left intact. */ // And so should this one.[39;16H// OK, I will. | |
action();[41;1H[K[29;1H[?12l[?25h | |
[?25l[30;40r[30;1H[2M[1;41r[30;2H* Here the comment leader should be left intact. */ // And so should this one.[40;1Hint i = 7 /* foo *// 3[30;1H[?12l[?25h | |
[?25l[41;1H:[?12l[?25h.,+2join | |
[?25l[31;40r[31;1H[2M[1;41r[31;1Hif (condition) // Remove the next comment leader! OK, I will.[39;2H// comment | |
;[41;1H[K[31;1H[?12l[?25h | |
[?25l[33;40r[33;1H[2M[1;41r[33;1Hif (condition) // Remove the next comment leader! OK, I will.[40;1Hint i = 7 /* foo *// 3[33;1H[?12l[?25h | |
[?25l[41;1H:[?12l[?25h.,+2join | |
[?25l[35;40r[35;1H[2M[1;41r[35;1Hint i = 7 /* foo *// 3 // comment[39;2H// comment | |
;[41;1H[K[35;1H[?12l[?25h | |
[?25lint i = 7 /* foo *// 3 // comment | |
;[38;3H[K[39;2H[K[40;1H># Note that the last character of the ending comment leader (left angle[37;1H[?12l[?25h | |
[?25l | |
:[?12l[?25h.,+5join | |
[?25l[39;1H># Note that the last character of the ending comment leader (left angle bracket) is a comment leader itself. Make sure that this comment leaderr[40;1H is not removed from the next line #< < On this line a new comment is opened which spans 2 lines. This comment should retain its comment leader.[39;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[41;1H[K[40;1H[?12l[?25h[?25l># Note that the last character of the ending comment leader (left angle bracket) is a comment leader itself. Make sure that this comment leader[40;1H[1m[34m@ [1;40r[m[40;1H | |
[1;41r[39;1H># Note that the last character of the ending comment leader (left angle bracket) is a comment leader itself. Make sure that this comment leaderr[40;1H is not removed from the next line #< < On this line a new comment is opened which spans 2 lines. This comment should retain its comment leader.[39;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1HSome code! | |
// Make sure backspacing does not remove this comment leader.[?12l[?25h | |
[?25l[39;11H// Make sure backspacing does not remove this comment leader. | |
}[40;2H[K[39;10H[?12l[?25h | |
[?25l | |
/^STARTTEST | |
[1;40r[1;1H[2M[1;41r[40;1HSTARTTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:g/^STARTTEST/.,/^ENDTEST/d | |
[?12l[?25h[?25l | |
:set ff=unix cpo-=A | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H3 lines, 61 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[40;1H[?12l[?25h[?25l | |
/ENDTEST[41;10H[K[41;1H[40;19H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H:?firstline?+1,$w! test.out[41;1H[K[40;19H[?12l[?25h | |
[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hg/^STARTTEST/.,/^ENDTEST/d | |
[?25l55 fewer lines[41;15H[K[1;1H[K[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25h?firstline?+1,$w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 88 lines, 2789 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test30.failed test.ok test.out X* viminfo | |
cp test30.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test30.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test30.in" 222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option | |
Note: This test will fail if "cat" is not available. | |
STARTTEST | |
:so small.vim | |
:" first write three test files, one in each format | |
:set fileformat=unix | |
:set fileformats= | |
:/^1/w! XX1 | |
:/^2/w! XX2 | |
:/^3/w! XX3 | |
:/^4/w! XX4 | |
:/^5/w! XX5 | |
:/^6/w! XX6 | |
:/^7/w! XX7 | |
:/^8/w! XX8 | |
:/^9/w! XX9 | |
:/^10/w! XX10 | |
:/^unix/;/eof/-1w! XXUnix | |
:/^dos/;/eof/-1w! XXDos | |
:set bin noeol | |
:$w! XXMac | |
:set nobin eol | |
:bwipe XXUnix XXDos XXMac | |
:" create mixed format files | |
:if has("vms") | |
: !copy XXUnix,XXDos XXUxDs. | |
: !copy XXUnix,XXMac XXUxMac. | |
: !copy XXDos,XXMac XXDosMac. | |
: !copy XXUnix,XXDos,XXMac XXUxDsMc. | |
:elseif has("win32") | |
: !copy /b XXUnix+XXDos XXUxDs | |
: !copy /b XXUnix+XXMac XXUxMac | |
: !copy /b XXDos+XXMac XXDosMac | |
: !copy /b XXUnix+XXDos+XXMac XXUxDsMc | |
:else | |
: !cat XXUnix XXDos >XXUxDs | |
: !cat XXUnix XXMac >XXUxMac | |
: !cat XXDos XXMac >XXDosMac[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[5;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 195 lines, 3271 characters written[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[6;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[27m[m[H[2J[1;1H:$r XXtt33 | |
Go4[34m^[[m:$r XXtt41 | |
:$r XXtt42 | |
:$r XXtt43 | |
Go5[34m^[[m:$r XXtt51 | |
:$r XXtt52 | |
:$r XXtt53 | |
Go6[34m^[[m:$r XXtt61 | |
:$r XXtt62 | |
:$r XXtt63 | |
Go7[34m^[[m:$r XXtt71 | |
Go8[34m^[[m:$r XXtt81 | |
Go9[34m^[[m:$r XXtt91 | |
:$r XXtt92 | |
:$r XXtt93 | |
Go10[34m^[[m:$r XXUnix | |
:set nobinary ff& | |
:w | |
:qa! | |
ENDTEST | |
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
unix | |
unix | |
eof | |
dos[34m^M[m | |
dos[34m^M[m | |
eof[20;1H[?12l[?25h | |
[?25l[41;1H:so! Xdotest | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" first write three test files, one in each format | |
[?25l[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformat=unix | |
[?25l[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformats= | |
[?25l[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^1/w! XX1 | |
[?25l"XX1" [41;7H[K[41;7H[New File] 1 line, 2 characters written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^2/w! XX2 | |
[?25l"XX2" [41;7H[K[41;7H[New File] 1 line, 2 characters written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^3/w! XX3 | |
[?25l"XX3" [41;7H[K[41;7H[New File] 1 line, 2 characters written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^4/w! XX4 | |
[?25l"XX4" [41;7H[K[41;7H[New File] 1 line, 2 characters written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^5/w! XX5 | |
[?25l"XX5" [41;7H[K[41;7H[New File] 1 line, 2 characters written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^6/w! XX6 | |
[?25l"XX6" [41;7H[K[41;7H[New File] 1 line, 2 characters written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^7/w! XX7 | |
[?25l"XX7" [41;7H[K[41;7H[New File] 1 line, 2 characters written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^8/w! XX8 | |
[?25l"XX8" [41;7H[K[41;7H[New File] 1 line, 2 characters written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^9/w! XX9 | |
[?25l"XX9" [41;7H[K[41;7H[New File] 1 line, 2 characters written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^10/w! XX10 | |
[?25l"XX10" [41;8H[K[41;8H[New File] 1 line, 3 characters written[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^unix/;/eof/-1w! XXUnix | |
[?25l"XXUnix" [41;10H[K[41;10H[New File] 2 lines, 10 characters written[33;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^dos/;/eof/-1w! XXDos | |
[?25l"XXDos" [41;9H[K[41;9H[New File] 2 lines, 10 characters written[37;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset bin noeol | |
[?25l[37;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$w! XXMac | |
[?25l"XXMac" [41;9H[K[41;9H[New File][Incomplete last line] 1 line, 8 characters written[37;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nobin eol | |
[?25l[37;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUnix XXDos XXMac | |
[?25l3 buffers wiped out[41;21H[K[37;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" create mixed format files | |
[?25l[37;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hif has("vms") | |
[?25l | |
: [?12l[?25h: !copy XXUnix,XXDos XXUxDs. | |
[?25l: [?12l[?25h: !copy XXUnix,XXMac XXUxMac. | |
[?25l: [?12l[?25h: !copy XXDos,XXMac XXDosMac. | |
[?25l: [?12l[?25h: !copy XXUnix,XXDos,XXMac XXUxDsMc. | |
[?25l: [?12l[?25h:elseif has("win32") | |
[?25l: [?12l[?25h: !copy /b XXUnix+XXDos XXUxDs | |
[?25l: [?12l[?25h: !copy /b XXUnix+XXMac XXUxMac | |
[?25l: [?12l[?25h: !copy /b XXDos+XXMac XXDosMac | |
[?25l: [?12l[?25h: !copy /b XXUnix+XXDos+XXMac XXUxDsMc | |
[?25l: [?12l[?25h:else | |
[?25l: [?12l[?25h: !cat XXUnix XXDos >XXUxDs | |
[?25l:!cat XXUnix XXDos >XXUxDs[?1l>[?12l[?25h[?1049l[?1049h[?1h=[41;1H | |
[?25l: :[?12l[?25h !cat XXUnix XXMac >XXUxMac | |
[?25l:!cat XXUnix XXMac >XXUxMac[?1l>[?12l[?25h[?1049l[?1049h[?1h=[41;1H | |
[?25l: :[?12l[?25h !cat XXDos XXMac >XXDosMac | |
[?25l:!cat XXDos XXMac >XXDosMac[?1l>[?12l[?25h[?1049l[?1049h[?1h=[41;1H | |
[?25l: :[?12l[?25h !cat XXUnix XXDos XXMac >XXUxDsMc | |
[?25l:!cat XXUnix XXDos XXMac >XXUxDsMc[?1l>[?12l[?25h[?1049l[?1049h[?1h=[41;1H | |
[?25l: :[?12l[?25hendif | |
[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[27m[m[H[2J[1;1H:$r XXtt33 | |
Go4[34m^[[m:$r XXtt41 | |
:$r XXtt42 | |
:$r XXtt43 | |
Go5[34m^[[m:$r XXtt51 | |
:$r XXtt52 | |
:$r XXtt53 | |
Go6[34m^[[m:$r XXtt61 | |
:$r XXtt62 | |
:$r XXtt63 | |
Go7[34m^[[m:$r XXtt71 | |
Go8[34m^[[m:$r XXtt81 | |
Go9[34m^[[m:$r XXtt91 | |
:$r XXtt92 | |
:$r XXtt93 | |
Go10[34m^[[m:$r XXUnix | |
:set nobinary ff& | |
:w | |
:qa! | |
ENDTEST | |
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
unix | |
unix | |
eof | |
dos[34m^M[m | |
dos[34m^M[m | |
eof[37;1H[?12l[?25h[?25l[41;1H:[?12l[?25h" try reading and writing with 'fileformats' empty | |
[?25l[37;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformat=unix | |
[?25l[37;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUnix | |
[?25l"XXUnix" [41;10H[K[41;10H2 lines, 10 characters[1;1Hunix[1;5H[K[2;1Hunix[2;5H[K[3;1H[1m[34m~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 2 lines, 10 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXDos | |
[?25l"XXDos" [41;9H[K[41;9H2 lines, 10 characters[1;1Hdos[34m^M[m | |
dos[34m^M[1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt01 | |
[?25l"XXtt01" [41;10H[K[41;10H[New File] 2 lines, 10 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXMac | |
[?25l"XXMac" [41;9H[K[41;9H[Incomplete last line] 1 line, 8 characters[1;1Hmac[2Cmac[34m^M[m | |
[1m[34m~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt02 | |
[?25l"XXtt02" [41;10H[K[41;10H[New File] 1 line, 9 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUnix XXDos XXMac | |
[?25l"test30.in" [41;13H[K[41;13H222 lines, 3463 characters | |
3 buffers wiped out | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset fileformat=dos | |
[?25l[1;1H[2L[1;1HGo4[34m^[[m:$r XXtt41 | |
:$r XXtt42 | |
:$r XXtt43[3;11H[K[4;1HGo5[34m^[[m:$r XXtt51[4;16H[K[5;1H:$r XXtt52[5;11H[K[6;1H:$r XXtt53[6;11H[K[7;1HGo6[34m^[[m:$r XXtt61[7;16H[K[8;1H:$r XXtt62[8;11H[K[9;1H:$r XXtt63[9;11H[K[10;1HGo7[34m^[[m:$r XXtt71[10;16H[K[11;1HGo8[34m^[[m:$r XXtt81[11;16H[K[12;1HGo9[34m^[[m:$r XXtt91[12;16H[K[13;1H:$r XXtt92[13;11H[K[14;1H:$r XXtt93[14;11H[K[15;1HGo10[34m^[[m:$r XXUnix[15;17H[K[16;1H:set nobinary ff&[16;18H[K[17;1H:w[17;3H[K[18;1H:qa![18;5H[K[19;1HENDTEST[19;8H[K[20;1H[K[21;1H1[21;2H[K[22;1H2[22;2H[K[23;1H3[23;2H[K[24;1H4[24;2H[K[25;1H5[25;2H[K[26;1H6[26;2H[K[27;1H7[27;2H[K[28;1H8[28;2H[K[29;1H9[29;2H[K[30;1H10[30;3H[K[31;1H[K[32;1Hunix[32;5H[K[33;1Hunix[33;5H[K[34;1Heof[34;4H[K[35;1H[K[36;1Hdos[34m^M[m[36;6H[K[37;1Hdos[34m^M[m[37;6H[K[38;1Heof[38;4H[K[39;1H[K[40;1Hmac[34m^M[mmac[34m^M[m[40;11H[K[41;1H[K[36;1H[?12l[?25h[?25l[41;1H:[?12l[?25he! XXUnix | |
[?25l"XXUnix" [41;10H[K[41;10H[CR missing][dos format] 2 lines, 10 characters[1;1Hunix[1;5H[K[2;1Hunix[2;5H[K[3;1H[1m[34m~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt11 | |
[?25l"XXtt11" [41;10H[K[41;10H[New File][dos format] 2 lines, 12 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXDos | |
[?25l"XXDos" [41;9H[K[41;9H[dos format] 2 lines, 10 characters[1;1Hdos[1;4H[K[2;1Hdos[2;4H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! XXtt12 | |
[?25l"XXtt12" [41;10H[K[41;10H[New File][dos format] 2 lines, 10 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXMac | |
[?25l"XXMac" [41;9H[K[41;9H[Incomplete last line][dos format] 1 line, 8 characters[1;1Hmac[34m^M[mmac[34m^M[m | |
[1m[34m~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt13 | |
[?25l"XXtt13" [41;10H[K[41;10H[New File][dos format] 1 line, 10 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUnix XXDos XXMac | |
[?25l"test30.in" [41;13H[K[41;13H[CR missing][dos format] 222 lines, 3463 characters | |
3 buffers wiped out | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset fileformat=mac | |
[?25l[1;1H[2L[1;1HGo4[34m^[[m:$r XXtt41 | |
:$r XXtt42 | |
:$r XXtt43[3;11H[K[4;1HGo5[34m^[[m:$r XXtt51[4;16H[K[5;1H:$r XXtt52[5;11H[K[6;1H:$r XXtt53[6;11H[K[7;1HGo6[34m^[[m:$r XXtt61[7;16H[K[8;1H:$r XXtt62[8;11H[K[9;1H:$r XXtt63[9;11H[K[10;1HGo7[34m^[[m:$r XXtt71[10;16H[K[11;1HGo8[34m^[[m:$r XXtt81[11;16H[K[12;1HGo9[34m^[[m:$r XXtt91[12;16H[K[13;1H:$r XXtt92[13;11H[K[14;1H:$r XXtt93[14;11H[K[15;1HGo10[34m^[[m:$r XXUnix[15;17H[K[16;1H:set nobinary ff&[16;18H[K[17;1H:w[17;3H[K[18;1H:qa![18;5H[K[19;1HENDTEST[19;8H[K[20;1H[K[21;1H1[21;2H[K[22;1H2[22;2H[K[23;1H3[23;2H[K[24;1H4[24;2H[K[25;1H5[25;2H[K[26;1H6[26;2H[K[27;1H7[27;2H[K[28;1H8[28;2H[K[29;1H9[29;2H[K[30;1H10[30;3H[K[31;1H[K[32;1Hunix[32;5H[K[33;1Hunix[33;5H[K[34;1Heof[34;4H[K[35;1H[K[36;1Hdos[36;4H[K[37;1Hdos[37;4H[K[38;1Heof[38;4H[K[39;1H[K[40;1Hmac[34m^J[mmac[40;9H[K[41;1H[K[36;1H[?12l[?25h[?25l[41;1H:[?12l[?25he! XXUnix | |
[?25l"XXUnix" [41;10H[K[41;10H[Incomplete last line][mac format] 1 line, 10 characters[1;1Hunix[34m^J[munix[34m^J[m[1;13H[K[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt21 | |
[?25l"XXtt21" [41;10H[K[41;10H[New File][mac format] 1 line, 11 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXDos | |
[?25l"XXDos" [41;9H[K[41;9H[Incomplete last line][mac format] 3 lines, 10 characters[1;1Hdos[1;4H[K[2;1H[34m^J[mdos[2;6H[K[3;1H[34m^J[m[3;3H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! XXtt22 | |
[?25l"XXtt22" [41;10H[K[41;10H[New File][mac format] 3 lines, 11 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXMac | |
[?25l"XXMac" [41;9H[K[41;9H[mac format] 2 lines, 8 characters[1;1Hmac | |
mac[2;4H[K[3;1H[1m[34m~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt23 | |
[?25l"XXtt23" [41;10H[K[41;10H[New File][mac format] 2 lines, 8 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUnix XXDos XXMac | |
[?25l"test30.in" [41;13H[K[41;13H[Incomplete last line][mac format] 5 lines, 3463 characters | |
3 buffers wiped out | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[1;1H[2L[1;1HTest for a lot of variations of the 'fileformats' option[34m^J^J[mNote: This test will fail if "cat" is not available.[34m^J^J[mSTARTTEST[34m^J[m:so small.vim[34m^J[m:""[2;1H first write three test files, one in each format[34m^J[m:set fileformat=unix[34m^J[m:set fileformats=[34m^J[m:/^1/w! XX1[34m^J[m:/^2/w! XX2[34m^J[m:/^3/w! XX3[34m^J[m:/^4/w! XX4[34m^JJ[m[3;1H:/^5/w! XX5[34m^J[m:/^6/w! XX6[34m^J[m:/^7/w! XX7[34m^J[m:/^8/w! XX8[34m^J[m:/^9/w! XX9[34m^J[m:/^10/w! XX10[34m^J[m:/^unix/;/eof/-1w! XXUnix[34m^J[m:/^dos/;/eof/-1w! XXDos[34m^J[m:set bin noee[4;1Hol[34m^J[m:$w! XXMac[34m^J[m:set nobin eol[34m^J[m:bwipe XXUnix XXDos XXMac[34m^J[m:" create mixed format files[34m^J[m:if has("vms")[34m^J[m: !copy XXUnix,XXDos XXUxDs.[34m^J[m: !copy XX[5;1HXUnix,XXMac XXUxMac.[34m^J[m: !copy XXDos,XXMac XXDosMac.[34m^J[m: !copy XXUnix,XXDos,XXMac XXUxDsMc.[34m^J[m:elseif has("win32")[34m^J[m: !copy /b XXUnix+XXDos XXUxDss[6;1H[34m^J[m: !copy /b XXUnix+XXMac XXUxMac[34m^J[m: !copy /b XXDos+XXMac XXDosMac[34m^J[m: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[34m^J[m:else[34m^J[m: !cat XXUnix XXDos >XXUxDs[34m^JJ[m[7;1H: !cat XXUnix XXMac >XXUxMac[34m^J[m: !cat XXDos XXMac >XXDosMac[34m^J[m: !cat XXUnix XXDos XXMac >XXUxDsMc[34m^J[m:endif[34m^J[m:"[34m^J[m:" try reading and writing with 'fii[8;1Hleformats' empty[34m^J[m:set fileformat=unix[34m^J[m:e! XXUnix[34m^J[m:w! test.out[34m^J[m:e! XXDos[34m^J[m:w! XXtt01[34m^J[m:e! XXMac[34m^J[m:w! XXtt02[34m^J[m:bwipe XXUnix XXDos XXMac[34m^J[m:set [9;1Hfileformat=dos[34m^J[m:e! XXUnix[34m^J[m:w! XXtt11[34m^J[m:e! XXDos[34m^J[m:w! XXtt12[34m^J[m:e! XXMac[34m^J[m:w! XXtt13[34m^J[m:bwipe XXUnix XXDos XXMac[34m^J[m:set fileformat=mac[34m^J[m:e! XXUnixx[10;1H[34m^J[m:w! XXtt21[34m^J[m:e! XXDos[34m^J[m:w! XXtt22[34m^J[m:e! XXMac[34m^J[m:w! XXtt23[34m^J[m:bwipe XXUnix XXDos XXMac[34m^J[m:"[34m^J[m:" try reading and writing with 'fileformats' set to [11;1Hone format[34m^J[m:set fileformats=unix[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt31[34m^J[m:bwipe XXUxDsMc[34m^J[m:set fileformats=dos[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt32[34m^J[m:bwipe XXUxDsMc[34m^J[m::[12;1Hset fileformats=mac[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt33[34m^J[m:bwipe XXUxDsMc[34m^J[m:"[34m^J[m:" try reading and writing with 'fileformats' set to two formats[34m^J[m:set fileff[13;1Hormats=unix,dos[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt41[34m^J[m:bwipe XXUxDsMc[34m^J[m:e! XXUxMac[34m^J[m:w! XXtt42[34m^J[m:bwipe XXUxMac[34m^J[m:e! XXDosMac[34m^J[m:w! XXtt43[34m^J[m:bwipe XXDosMac[34m^JJ[m[14;1H:set fileformats=unix,mac[34m^J[m:e! XXUxDs[34m^J[m:w! XXtt51[34m^J[m:bwipe XXUxDs[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt52[34m^J[m:bwipe XXUxDsMc[34m^J[m:e! XXDosMac[34m^J[m:w! XXtt53[34m^J[m:bwipe XXX[15;1HDosMac[34m^J[m:set fileformats=dos,mac[34m^J[m:e! XXUxDs[34m^J[m:w! XXtt61[34m^J[m:bwipe XXUxDs[34m^J[m:e! XXUxMac[34m^J[m:w! XXtt62[34m^J[m:bwipe XXUxMac[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt63[34m^J[m:bwii[16;1Hpe XXUxDsMc[34m^J[m:"[34m^J[m:" try reading and writing with 'fileformats' set to three formats[34m^J[m:set fileformats=unix,dos,mac[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt71[34m^J[m:bb[17;1Hwipe XXUxDsMc[34m^J[m:set fileformats=mac,dos,unix[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt81[34m^J[m:bwipe XXUxDsMc[34m^J[m:" try with 'binary' set[34m^J[m:set fileformats=mac,unix,doss[18;1H[34m^J[m:set binary[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt91[34m^J[m:bwipe XXUxDsMc[34m^J[m:set fileformats=mac[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt92[34m^J[m:bwipe XXUxDsMc[34m^J[m:set fileformats=dos[34m^^[19;1HJ[m:e! XXUxDsMc[34m^J[m:w! XXtt93[34m^J[m:"[34m^J[m:" Append "END" to each file so that we can see what the last written char was.[34m^J[m:set fileformat=unix nobin[34m^J[mggdGG[20;1HaEND[34m^[[m:w >>XXtt01[34m^J[m:w >>XXtt02[34m^J[m:w >>XXtt11[34m^J[m:w >>XXtt12[34m^J[m:w >>XXtt13[34m^J[m:w >>XXtt21[34m^J[m:w >>XXtt22[34m^J[m:w >>XXtt23[34m^J[m:w >>XXtt31[34m^J[m:w >>XXtt32[34m^J[m:w >>XXtt[21;1Ht33[34m^J[m:w >>XXtt41[34m^J[m:w >>XXtt42[34m^J[m:w >>XXtt43[34m^J[m:w >>XXtt51[34m^J[m:w >>XXtt52[34m^J[m:w >>XXtt53[34m^J[m:w >>XXtt61[34m^J[m:w >>XXtt62[34m^J[m:w >>XXtt63[34m^J[m:w >>XXtt71[34m^J[m:w >>XXttt[22;1H81[34m^J[m:w >>XXtt91[34m^J[m:w >>XXtt92[34m^J[m:w >>XXtt93[34m^J[m:"[34m^J[m:" Concatenate the results.[34m^J[m:" Make fileformat of test.out the native fileformat.[34m^J[m:" Add a newll[23;1Hine at the end.[34m^J[m:set binary[34m^J[m:e! test.out[34m^J[m:$r XXtt01[34m^J[m:$r XXtt02[34m^J[mGo1[34m^[[m:$r XXtt11[34m^J[m:$r XXtt12[34m^J[m:$r XXtt13[34m^J[mGo2[34m^[[m:$r XXtt21[34m^J[m:$r XXtt22[34m^J[m:$r XXX[24;1Htt23[34m^J[mGo3[34m^[[m:$r XXtt31[34m^J[m:$r XXtt32[34m^J[m:$r XXtt33[34m^J[mGo4[34m^[[m:$r XXtt41[34m^J[m:$r XXtt42[34m^J[m:$r XXtt43[34m^J[mGo5[34m^[[m:$r XXtt51[34m^J[m:$r XXtt52[34m^J[m:$r XXtt53[34m^J[mGo6[34m^[[m:$r XXtt611[25;1H[34m^J[m:$r XXtt62[34m^J[m:$r XXtt63[34m^J[mGo7[34m^[[m:$r XXtt71[34m^J[mGo8[34m^[[m:$r XXtt81[34m^J[mGo9[34m^[[m:$r XXtt91[34m^J[m:$r XXtt92[34m^J[m:$r XXtt93[34m^J[mGo10[34m^[[m:$r XXUnix[34m^J[m:set nobinary ff&[34m^J[m:w[34m^J[m:qq[26;1Ha![34m^J[mENDTEST[34m^J^J[m1[34m^J[m2[34m^J[m3[34m^J[m4[34m^J[m5[34m^J[m6[34m^J[m7[34m^J[m8[34m^J[m9[34m^J[m10[34m^J^J[munix[34m^J[munix[34m^J[meof[34m^J^J[mdos[26;71H[K[27;1H[34m^J[mdos[27;6H[K[28;1H[34m^J[meof[34m^J^J[mmac[28;13H[K[29;1Hmac[29;4H[K[30;1H[34m^J[m[30;3H[K[41;1H[K[30;1H[?12l[?25h[?25l[41;1H:[?12l[?25h" try reading and writing with 'fileformats' set to one format | |
[?25l[30;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformats=unix | |
[?25l[30;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxDsMc | |
[?25l"XXUxDsMc" [41;12H[K[41;12H[Incomplete last line] 5 lines, 28 characters[1;1Hunix[1;6H[K[2;1Hunix[2;5H[K[3;1Hdos[34m^M[m[3;6H[K[4;1Hdos[34m^M[m[4;6H[K[5;1Hmac[34m^M[mmac[34m^M[m[5;11H[K[6;1H[1m[34m~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt31 | |
[?25l"XXtt31" [41;10H[K[41;10H[New File] 5 lines, 29 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxDsMc | |
[?25l"test30.in" [41;13H[K[41;13H222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformats=dos | |
[?25l[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxDsMc | |
[?25l"XXUxDsMc" [41;12H[K[41;12H[Incomplete last line][CR missing][dos format] 5 lines, 28 characters[1;1Hunix[1;6H[K[2;1Hunix | |
dos[3;4H[K[4;1Hdos | |
mac[34m^M[mmac[34m^M[m | |
[1m[34m~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt32 | |
[?25l"XXtt32" [41;10H[K[41;10H[New File][dos format] 5 lines, 32 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxDsMc | |
[?25l"test30.in" [41;13H[K[41;13H[CR missing][dos format] 222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformats=mac | |
[?25l[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxDsMc | |
[?25l"XXUxDsMc" [41;12H[K[41;12H[mac format] 4 lines, 28 characters[1;1Hunix[34m^J[munix[34m^J[mdos[1;16H[K[2;1H[34m^J[mdos | |
[34m^J[mmac[3;7H[K[4;1Hmac | |
[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt33 | |
[?25l"XXtt33" [41;10H[K[41;10H[New File][mac format] 4 lines, 28 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxDsMc | |
[?25l"test30.in" [41;13H[K[41;13H[Incomplete last line][mac format] 5 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[34m^J^J[mNote: This test will fail if "cat" is not available.[34m^J^J[mSTARTTEST[34m^J[m:so small.vim[34m^J[m:""[2;1H first write three test files, one in each format[34m^J[m:set fileformat=unix[34m^J[m:set fileformats=[34m^J[m:/^1/w! XX1[34m^J[m:/^2/w! XX2[34m^J[m:/^3/w! XX3[34m^J[m:/^4/w! XX4[34m^JJ[m[3;1H:/^5/w! XX5[34m^J[m:/^6/w! XX6[34m^J[m:/^7/w! XX7[34m^J[m:/^8/w! XX8[34m^J[m:/^9/w! XX9[34m^J[m:/^10/w! XX10[34m^J[m:/^unix/;/eof/-1w! XXUnix[34m^J[m:/^dos/;/eof/-1w! XXDos[34m^J[m:set bin noee[4;1Hol[34m^J[m:$w! XXMac[34m^J[m:set nobin eol[34m^J[m:bwipe XXUnix XXDos XXMac[34m^J[m:" create mixed format files[34m^J[m:if has("vms")[34m^J[m: !copy XXUnix,XXDos XXUxDs.[34m^J[m: !copy XX[5;1HXUnix,XXMac XXUxMac.[34m^J[m: !copy XXDos,XXMac XXDosMac.[34m^J[m: !copy XXUnix,XXDos,XXMac XXUxDsMc.[34m^J[m:elseif has("win32")[34m^J[m: !copy /b XXUnix+XXDos XXUxDss[6;1H[34m^J[m: !copy /b XXUnix+XXMac XXUxMac[34m^J[m: !copy /b XXDos+XXMac XXDosMac[34m^J[m: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[34m^J[m:else[34m^J[m: !cat XXUnix XXDos >XXUxDs[34m^JJ[m[7;1H: !cat XXUnix XXMac >XXUxMac[34m^J[m: !cat XXDos XXMac >XXDosMac[34m^J[m: !cat XXUnix XXDos XXMac >XXUxDsMc[34m^J[m:endif[34m^J[m:"[34m^J[m:" try reading and writing with 'fii[8;1Hleformats' empty[34m^J[m:set fileformat=unix[34m^J[m:e! XXUnix[34m^J[m:w! test.out[34m^J[m:e! XXDos[34m^J[m:w! XXtt01[34m^J[m:e! XXMac[34m^J[m:w! XXtt02[34m^J[m:bwipe XXUnix XXDos XXMac[34m^J[m:set [9;1Hfileformat=dos[34m^J[m:e! XXUnix[34m^J[m:w! XXtt11[34m^J[m:e! XXDos[34m^J[m:w! XXtt12[34m^J[m:e! XXMac[34m^J[m:w! XXtt13[34m^J[m:bwipe XXUnix XXDos XXMac[34m^J[m:set fileformat=mac[34m^J[m:e! XXUnixx[10;1H[34m^J[m:w! XXtt21[34m^J[m:e! XXDos[34m^J[m:w! XXtt22[34m^J[m:e! XXMac[34m^J[m:w! XXtt23[34m^J[m:bwipe XXUnix XXDos XXMac[34m^J[m:"[34m^J[m:" try reading and writing with 'fileformats' set to [11;1Hone format[34m^J[m:set fileformats=unix[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt31[34m^J[m:bwipe XXUxDsMc[34m^J[m:set fileformats=dos[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt32[34m^J[m:bwipe XXUxDsMc[34m^J[m::[12;1Hset fileformats=mac[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt33[34m^J[m:bwipe XXUxDsMc[34m^J[m:"[34m^J[m:" try reading and writing with 'fileformats' set to two formats[34m^J[m:set fileff[13;1Hormats=unix,dos[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt41[34m^J[m:bwipe XXUxDsMc[34m^J[m:e! XXUxMac[34m^J[m:w! XXtt42[34m^J[m:bwipe XXUxMac[34m^J[m:e! XXDosMac[34m^J[m:w! XXtt43[34m^J[m:bwipe XXDosMac[34m^JJ[m[14;1H:set fileformats=unix,mac[34m^J[m:e! XXUxDs[34m^J[m:w! XXtt51[34m^J[m:bwipe XXUxDs[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt52[34m^J[m:bwipe XXUxDsMc[34m^J[m:e! XXDosMac[34m^J[m:w! XXtt53[34m^J[m:bwipe XXX[15;1HDosMac[34m^J[m:set fileformats=dos,mac[34m^J[m:e! XXUxDs[34m^J[m:w! XXtt61[34m^J[m:bwipe XXUxDs[34m^J[m:e! XXUxMac[34m^J[m:w! XXtt62[34m^J[m:bwipe XXUxMac[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt63[34m^J[m:bwii[16;1Hpe XXUxDsMc[34m^J[m:"[34m^J[m:" try reading and writing with 'fileformats' set to three formats[34m^J[m:set fileformats=unix,dos,mac[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt71[34m^J[m:bb[17;1Hwipe XXUxDsMc[34m^J[m:set fileformats=mac,dos,unix[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt81[34m^J[m:bwipe XXUxDsMc[34m^J[m:" try with 'binary' set[34m^J[m:set fileformats=mac,unix,doss[18;1H[34m^J[m:set binary[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt91[34m^J[m:bwipe XXUxDsMc[34m^J[m:set fileformats=mac[34m^J[m:e! XXUxDsMc[34m^J[m:w! XXtt92[34m^J[m:bwipe XXUxDsMc[34m^J[m:set fileformats=dos[34m^^[19;1HJ[m:e! XXUxDsMc[34m^J[m:w! XXtt93[34m^J[m:"[34m^J[m:" Append "END" to each file so that we can see what the last written char was.[34m^J[m:set fileformat=unix nobin[34m^J[mggdGG[20;1HaEND[34m^[[m:w >>XXtt01[34m^J[m:w >>XXtt02[34m^J[m:w >>XXtt11[34m^J[m:w >>XXtt12[34m^J[m:w >>XXtt13[34m^J[m:w >>XXtt21[34m^J[m:w >>XXtt22[34m^J[m:w >>XXtt23[34m^J[m:w >>XXtt31[34m^J[m:w >>XXtt32[34m^J[m:w >>XXtt[21;1Ht33[34m^J[m:w >>XXtt41[34m^J[m:w >>XXtt42[34m^J[m:w >>XXtt43[34m^J[m:w >>XXtt51[34m^J[m:w >>XXtt52[34m^J[m:w >>XXtt53[34m^J[m:w >>XXtt61[34m^J[m:w >>XXtt62[34m^J[m:w >>XXtt63[34m^J[m:w >>XXtt71[34m^J[m:w >>XXttt[22;1H81[34m^J[m:w >>XXtt91[34m^J[m:w >>XXtt92[34m^J[m:w >>XXtt93[34m^J[m:"[34m^J[m:" Concatenate the results.[34m^J[m:" Make fileformat of test.out the native fileformat.[34m^J[m:" Add a newll[23;1Hine at the end.[34m^J[m:set binary[34m^J[m:e! test.out[34m^J[m:$r XXtt01[34m^J[m:$r XXtt02[34m^J[mGo1[34m^[[m:$r XXtt11[34m^J[m:$r XXtt12[34m^J[m:$r XXtt13[34m^J[mGo2[34m^[[m:$r XXtt21[34m^J[m:$r XXtt22[34m^J[m:$r XXX[24;1Htt23[34m^J[mGo3[34m^[[m:$r XXtt31[34m^J[m:$r XXtt32[34m^J[m:$r XXtt33[34m^J[mGo4[34m^[[m:$r XXtt41[34m^J[m:$r XXtt42[34m^J[m:$r XXtt43[34m^J[mGo5[34m^[[m:$r XXtt51[34m^J[m:$r XXtt52[34m^J[m:$r XXtt53[34m^J[mGo6[34m^[[m:$r XXtt611[25;1H[34m^J[m:$r XXtt62[34m^J[m:$r XXtt63[34m^J[mGo7[34m^[[m:$r XXtt71[34m^J[mGo8[34m^[[m:$r XXtt81[34m^J[mGo9[34m^[[m:$r XXtt91[34m^J[m:$r XXtt92[34m^J[m:$r XXtt93[34m^J[mGo10[34m^[[m:$r XXUnix[34m^J[m:set nobinary ff&[34m^J[m:w[34m^J[m:qq[26;1Ha![34m^J[mENDTEST[34m^J^J[m1[34m^J[m2[34m^J[m3[34m^J[m4[34m^J[m5[34m^J[m6[34m^J[m7[34m^J[m8[34m^J[m9[34m^J[m10[34m^J^J[munix[34m^J[munix[34m^J[meof[34m^J^J[mdos[26;71H[K[27;1H[34m^J[mdos[27;6H[K[28;1H[34m^J[meof[34m^J^J[mmac[28;13H[K[29;1Hmac[29;4H[K[30;1H[34m^J[m[30;3H[K[30;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[30;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" try reading and writing with 'fileformats' set to two formats | |
[?25l[30;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformats=unix,dos | |
[?25l[30;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxDsMc | |
[?25l"XXUxDsMc" [41;12H[K[41;12H[Incomplete last line] 5 lines, 28 characters[1;1Hunix[1;6H[K[2;1Hunix[2;5H[K[3;1Hdos[34m^M[m[3;6H[K[4;1Hdos[34m^M[m[4;6H[K[5;1Hmac[34m^M[mmac[34m^M[m[5;11H[K[6;1H[1m[34m~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt41 | |
[?25l"XXtt41" [41;10H[K[41;10H[New File] 5 lines, 29 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxDsMc | |
[?25l"test30.in" [41;13H[K[41;13H222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxMac | |
[?25l"XXUxMac" [41;11H[K[41;11H[Incomplete last line] 3 lines, 18 characters[1;1Hunix[1;6H[K[2;1Hunix | |
mac[34m^M[mmac[34m^M[m[3;12H[K[4;1H[1m[34m~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt42 | |
[?25l"XXtt42" [41;10H[K[41;10H[New File] 3 lines, 19 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxMac | |
[?25l"test30.in" [41;13H[K[41;13H222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXDosMac | |
[?25l"XXDosMac" [41;12H[K[41;12H[Incomplete last line][dos format] 3 lines, 18 characters[1;1Hdo[1;4H[K[2;1Hdos | |
mac[34m^M[mmac[34m^M[m[3;12H[K[4;1H[1m[34m~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt43 | |
[?25l"XXtt43" [41;10H[K[41;10H[New File][dos format] 3 lines, 20 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXDosMac | |
[?25l"test30.in" [41;13H[K[41;13H222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformats=unix,mac | |
[?25l[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxDs | |
[?25l"XXUxDs" [41;10H[K[41;10H4 lines, 20 characters[1;1Hunix[1;6H[K[2;1Hunix | |
dos[34m^M[m[3;7H[K[4;1Hdos[34m^M[m | |
[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt51 | |
[?25l"XXtt51" [41;10H[K[41;10H[New File] 4 lines, 20 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxDs | |
[?25l"test30.in" [41;13H[K[41;13H222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxDsMc | |
[?25l"XXUxDsMc" [41;12H[K[41;12H[Incomplete last line] 5 lines, 28 characters[1;1Hunix[1;6H[K[2;1Hunix | |
dos[34m^M[m[3;7H[K[4;1Hdos[34m^M[m | |
mac[34m^M[mmac[34m^M[m | |
[1m[34m~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt52 | |
[?25l"XXtt52" [41;10H[K[41;10H[New File] 5 lines, 29 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxDsMc | |
[?25l"test30.in" [41;13H[K[41;13H222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXDosMac | |
[?25l"XXDosMac" [41;12H[K[41;12H[mac format] 4 lines, 18 characters[1;1Hdo[1;4H[K[2;1H[34m^J[mdos | |
[34m^J[mmac[3;7H[K[4;1Hmac | |
[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt53 | |
[?25l"XXtt53" [41;10H[K[41;10H[New File][mac format] 4 lines, 18 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXDosMac | |
[?25l"test30.in" [41;13H[K[41;13H222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformats=dos,mac | |
[?25l[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxDs | |
[?25l"XXUxDs" [41;10H[K[41;10H[CR missing][dos format] 4 lines, 20 characters[1;1Hunix[1;6H[K[2;1Hunix | |
dos[3;4H[K[4;1Hdos | |
[1m[34m~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt61 | |
[?25l"XXtt61" [41;10H[K[41;10H[New File][dos format] 4 lines, 22 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxDs | |
[?25l"test30.in" [41;13H[K[41;13H[CR missing][dos format] 222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxMac | |
[?25l"XXUxMac" [41;11H[K[41;11H[Incomplete last line][CR missing][dos format] 3 lines, 18 characters[1;1Hunix[1;6H[K[2;1Hunix | |
mac[34m^M[mmac[34m^M[m[3;12H[K[4;1H[1m[34m~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt62 | |
[?25l"XXtt62" [41;10H[K[41;10H[New File][dos format] 3 lines, 22 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxMac | |
[?25l"test30.in" [41;13H[K[41;13H[CR missing][dos format] 222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxDsMc | |
[?25l"XXUxDsMc" [41;12H[K[41;12H[Incomplete last line][CR missing][dos format] 5 lines, 28 characters[1;1Hunix[1;6H[K[2;1Hunix | |
dos[3;4H[K[4;1Hdos | |
mac[34m^M[mmac[34m^M[m | |
[1m[34m~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt63 | |
[?25l"XXtt63" [41;10H[K[41;10H[New File][dos format] 5 lines, 32 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxDsMc | |
[?25l"test30.in" [41;13H[K[41;13H[CR missing][dos format] 222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" try reading and writing with 'fileformats' set to three formats | |
[?25l[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformats=unix,dos,mac | |
[?25l[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxDsMc | |
[?25l"XXUxDsMc" [41;12H[K[41;12H[Incomplete last line] 5 lines, 28 characters[1;1Hunix[1;6H[K[2;1Hunix | |
dos[34m^M[m[3;7H[K[4;1Hdos[34m^M[m | |
mac[34m^M[mmac[34m^M[m | |
[1m[34m~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt71 | |
[?25l"XXtt71" [41;10H[K[41;10H[New File] 5 lines, 29 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxDsMc | |
[?25l"test30.in" [41;13H[K[41;13H222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformats=mac,dos,unix | |
[?25l[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxDsMc | |
[?25l"XXUxDsMc" [41;12H[K[41;12H[Incomplete last line] 5 lines, 28 characters[1;1Hunix[1;6H[K[2;1Hunix | |
dos[34m^M[m[3;7H[K[4;1Hdos[34m^M[m | |
mac[34m^M[mmac[34m^M[m | |
[1m[34m~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt81 | |
[?25l"XXtt81" [41;10H[K[41;10H[New File] 5 lines, 29 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxDsMc | |
[?25l"test30.in" [41;13H[K[41;13H222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" try with 'binary' set | |
[?25l[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformats=mac,unix,dos | |
[?25l[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset binary | |
[?25l[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxDsMc | |
[?25l"XXUxDsMc" [41;12H[K[41;12H[Incomplete last line] 5 lines, 28 characters[1;1Hunix[1;6H[K[2;1Hunix | |
dos[34m^M[m[3;7H[K[4;1Hdos[34m^M[m | |
mac[34m^M[mmac[34m^M[m | |
[1m[34m~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt91 | |
[?25l"XXtt91" [41;10H[K[41;10H[New File][Incomplete last line] 5 lines, 28 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxDsMc | |
[?25l"test30.in" [41;13H[K[41;13H222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformats=mac | |
[?25l[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxDsMc | |
[?25l"XXUxDsMc" [41;12H[K[41;12H[Incomplete last line] 5 lines, 28 characters[1;1Hunix[1;6H[K[2;1Hunix | |
dos[34m^M[m[3;7H[K[4;1Hdos[34m^M[m | |
mac[34m^M[mmac[34m^M[m | |
[1m[34m~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt92 | |
[?25l"XXtt92" [41;10H[K[41;10H[New File][Incomplete last line] 5 lines, 28 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hbwipe XXUxDsMc | |
[?25l"test30.in" [41;13H[K[41;13H222 lines, 3463 characters[1;1HTest for a lot of variations of the 'fileformats' option[2;1H[K[3;1HNote: This test will fail if "cat" is not available.[4;1H[K[5;1HSTARTTEST[5;10H[K[6;1H:so small.vim[6;14H[K[7;1H:" first write three test files, one in each format[7;52H[K[8;1H:set fileformat=unix[8;21H[K[9;1H:set fileformats=[9;18H[K[10;1H:/^1/w! XX1[10;12H[K[11;1H:/^2/w! XX2[11;12H[K[12;1H:/^3/w! XX3[12;12H[K[13;1H:/^4/w! XX4[13;12H[K[14;1H:/^5/w! XX5[14;12H[K[15;1H:/^6/w! XX6[15;12H[K[16;1H:/^7/w! XX7[16;12H[K[17;1H:/^8/w! XX8[17;12H[K[18;1H:/^9/w! XX9[18;12H[K[19;1H:/^10/w! XX10[19;14H[K[20;1H:/^unix/;/eof/-1w! XXUnix[20;26H[K[21;1H:/^dos/;/eof/-1w! XXDos[21;24H[K[22;1H:set bin noeol[22;15H[K[23;1H:$w! XXMac[23;11H[K[24;1H:set nobin eol[24;15H[K[25;1H:bwipe XXUnix XXDos XXMac[25;26H[K[26;1H:" create mixed format files[26;29H[K[27;1H:if has("vms")[27;15H[K[28;1H: !copy XXUnix,XXDos XXUxDs.[28;29H[K[29;1H: !copy XXUnix,XXMac XXUxMac.[29;30H[K[30;1H: !copy XXDos,XXMac XXDosMac.[30;31H[K[31;1H: !copy XXUnix,XXDos,XXMac XXUxDsMc.[31;37H[K[32;1H:elseif has("win32")[32;21H[K[33;1H: !copy /b XXUnix+XXDos XXUxDs[33;31H[K[34;1H: !copy /b XXUnix+XXMac XXUxMac[34;32H[K[35;1H: !copy /b XXDos+XXMac XXDosMac[35;32H[K[36;1H: !copy /b XXUnix+XXDos+XXMac XXUxDsMc[36;39H[K[37;1H:else[37;6H[K[38;1H: !cat XXUnix XXDos >XXUxDs[38;28H[K[39;1H: !cat XXUnix XXMac >XXUxMac[39;29H[K[40;1H: !cat XXDos XXMac >XXDosMac[40;29H[K[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformats=dos | |
[?25l[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! XXUxDsMc | |
[?25l"XXUxDsMc" [41;12H[K[41;12H[Incomplete last line] 5 lines, 28 characters[1;1Hunix[1;6H[K[2;1Hunix | |
dos[34m^M[m[3;7H[K[4;1Hdos[34m^M[m | |
mac[34m^M[mmac[34m^M[m | |
[1m[34m~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw! XXtt93 | |
[?25l"XXtt93" [41;10H[K[41;10H[New File][Incomplete last line] 5 lines, 28 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" Append "END" to each file so that we can see what the last written char was. | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileformat=unix nobin | |
[?25l[1;1H[?12l[?25h[?25l[1;1H[K[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [m[41;1H--No lines in buffer--[41;23H[K[1;1H[?12l[?25h[?25lEND[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt01 | |
[?25l"XXtt01" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt02 | |
[?25l"XXtt02" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt11 | |
[?25l"XXtt11" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt12 | |
[?25l"XXtt12" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt13 | |
[?25l"XXtt13" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt21 | |
[?25l"XXtt21" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt22 | |
[?25l"XXtt22" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt23 | |
[?25l"XXtt23" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt31 | |
[?25l"XXtt31" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt32 | |
[?25l"XXtt32" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt33 | |
[?25l"XXtt33" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt41 | |
[?25l"XXtt41" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt42 | |
[?25l"XXtt42" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt43 | |
[?25l"XXtt43" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt51 | |
[?25l"XXtt51" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt52 | |
[?25l"XXtt52" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt53 | |
[?25l"XXtt53" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt61 | |
[?25l"XXtt61" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt62 | |
[?25l"XXtt62" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt63 | |
[?25l"XXtt63" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt71 | |
[?25l"XXtt71" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt81 | |
[?25l"XXtt81" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt91 | |
[?25l"XXtt91" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt92 | |
[?25l"XXtt92" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XXtt93 | |
[?25l"XXtt93" [41;10H[K[41;10H1 line, 4 characters appended[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" Concatenate the results. | |
[?25l[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" Make fileformat of test.out the native fileformat. | |
[?25l[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" Add a newline at the end. | |
[?25l[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset binary | |
[?25l[1;3H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! test.out | |
[?25l"test.out" [41;12H[K[41;12H2 lines, 10 characters[1;1Hunix | |
unix[2;5H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r XXtt01 | |
[?25l"XXtt01" [41;10H[K[41;10H3 lines, 14 characters[3;1Hdos[34m^M[m[3;6H[K[4;1Hdos[34m^M[m[4;6H[K[5;1HEND[5;4H[K[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r XXtt02 | |
[?25l"XXtt02" [41;10H[K[41;10H2 lines, 13 characters[6;1Hmac[34m^M[mmac[34m^M[m[6;11H[K[7;1HEND[7;4H[K[6;1H[?12l[?25h | |
[?25l | |
1[8;2H[K[8;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r XXtt11 | |
[?25l"XXtt11" [41;10H[K[41;10H3 lines, 16 characters[9;1Hunix[34m^M[m[9;7H[K[10;1Hunix[34m^M[m[10;7H[K[11;1HEND[11;4H[K[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r XXtt12 | |
[?25l"XXtt12" [41;10H[K[41;10H3 lines, 14 characters[12;1Hdos[34m^M[m[12;6H[K[13;1Hdos[34m^M[m[13;6H[K[14;1HEND[14;4H[K[12;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r XXtt13 | |
[?25l"XXtt13" [41;10H[K[41;10H2 lines, 14 characters[15;1Hmac[34m^M[mmac[34m^M^M[m[15;13H[K[16;1HEND[16;4H[K[15;1H[?12l[?25h | |
[?25l | |
2[17;2H[K[17;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r XXtt21 | |
[?25l"XXtt21" [41;10H[K[41;10H3 lines, 15 characters[18;1Hunix[18;5H[K[19;1Hunix[19;5H[K[20;1H[34m^M[mEND[20;6H[K[18;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r XXtt22 | |
[?25l"XXtt22" [41;10H[K[41;10H3 lines, 15 characters[21;1Hdos[34m^M[m[21;6H[K[22;1Hdos[34m^M[m[22;6H[K[23;1H[34m^M[mEND[23;6H[K[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r XXtt23 | |
[?25l"XXtt23" [41;10H[K[41;10H1 line, 12 characters[24;1Hmac[34m^M[mmac[34m^M[mEND[24;14H[K[24;1H[?12l[?25h[?25l | |
3[25;2H[K[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r XXtt31 | |
[?25l"XXtt31" [41;10H[K[41;10H6 lines, 33 characters[26;1Hunix[26;5H[K[27;1Hunix[27;5H[K[28;1Hdos[34m^M[m[28;6H[K[29;1Hdos[34m^M[m[29;6H[K[30;1Hmac[34m^M[mmac[34m^M[m[30;11H[K[31;1HEND[31;4H[K[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r XXtt32 | |
[?25l"XXtt32" [41;10H[K[41;10H6 lines, 36 characters[32;1Hunix[34m^M[m[32;7H[K[33;1Hunix[34m^M[m[33;7H[K[34;1Hdos[34m^M[m[34;6H[K[35;1Hdos[34m^M[m[35;6H[K[36;1Hmac[34m^M[mmac[34m^M^M[m[36;13H[K[37;1HEND[37;4H[K[32;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r XXtt33 | |
[?25l"XXtt33" [41;10H[K[41;10H5 lines, 32 characters[38;1Hunix[38;5H[K[39;1Hunix[39;5H[K[40;1Hdos[34m^M[m[40;6H[K[38;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hdos[34m^M[m | |
mac[34m^M[mmac[34m^M[mEND[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H4[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt41 | |
[?25l"XXtt41" [41;10H[K[41;10H6 lines, 33 characters[1;40r[40;1H | |
[1;41r[40;1Hunix[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt42 | |
[?25l"XXtt42" [41;10H[K[41;10H4 lines, 23 characters[1;40r[1;1H[6M[1;41r[35;1Hunix | |
dos[34m^M[m | |
dos[34m^M[m | |
mac[34m^M[mmac[34m^M[m | |
END | |
unix[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt43 | |
[?25l"XXtt43" [41;10H[K[41;10H4 lines, 24 characters[1;40r[1;1H[4M[1;41r[37;1Hunix | |
mac[34m^M[mmac[34m^M[m | |
END | |
dos[34m^M[m[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[1;1H[3M[1;41r[38;1Hdos[34m^M[m | |
mac[34m^M[mmac[34m^M^M[m | |
END | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H5[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt51 | |
[?25l"XXtt51" [41;10H[K[41;10H5 lines, 24 characters[1;40r[40;1H | |
[1;41r[40;1Hunix[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt52 | |
[?25l"XXtt52" [41;10H[K[41;10H6 lines, 33 characters[1;40r[1;1H[5M[1;41r[36;1Hunix | |
dos[34m^M[m | |
dos[34m^M[m | |
END | |
unix[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt53 | |
[?25l"XXtt53" [41;10H[K[41;10H3 lines, 22 characters[1;40r[1;1H[6M[1;41r[35;1Hunix | |
dos[34m^M[m | |
dos[34m^M[m | |
mac[34m^M[mmac[34m^M[m | |
END | |
dos[34m^M[m[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[1;1H[2M[1;41r[39;1Hdos[34m^M[m | |
mac[34m^M[mmac[34m^M[mEND | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H6[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt61 | |
[?25l"XXtt61" [41;10H[K[41;10H5 lines, 26 characters[1;40r[40;1H | |
[1;41r[40;1Hunix[34m^M[m[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt62 | |
[?25l"XXtt62" [41;10H[K[41;10H4 lines, 26 characters[1;40r[1;1H[5M[1;41r[36;1Hunix[34m^M[m | |
dos[34m^M[m | |
dos[34m^M[m | |
END | |
unix[34m^M[m[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt63 | |
[?25l"XXtt63" [41;10H[K[41;10H6 lines, 36 characters[1;40r[1;1H[4M[1;41r[37;1Hunix[34m^M[m | |
mac[34m^M[mmac[34m^M^M[m | |
END | |
unix[34m^M[m[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[1;1H[5M[1;41r[36;1Hunix[34m^M[m | |
dos[34m^M[m | |
dos[34m^M[m | |
mac[34m^M[mmac[34m^M^M[m | |
END | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H7[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt71 | |
[?25l"XXtt71" [41;10H[K[41;10H6 lines, 33 characters[1;40r[40;1H | |
[1;41r[40;1Hunix[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[1;1H[5M[1;41r[36;1Hunix | |
dos[34m^M[m | |
dos[34m^M[m | |
mac[34m^M[mmac[34m^M[m | |
END | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H8[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt81 | |
[?25l"XXtt81" [41;10H[K[41;10H6 lines, 33 characters[1;40r[40;1H | |
[1;41r[40;1Hunix[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[1;1H[5M[1;41r[36;1Hunix | |
dos[34m^M[m | |
dos[34m^M[m | |
mac[34m^M[mmac[34m^M[m | |
END | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H9[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt91 | |
[?25l"XXtt91" [41;10H[K[41;10H5 lines, 32 characters[1;40r[40;1H | |
[1;41r[40;1Hunix[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt92 | |
[?25l"XXtt92" [41;10H[K[41;10H5 lines, 32 characters[1;40r[1;1H[5M[1;41r[36;1Hunix | |
dos[34m^M[m | |
dos[34m^M[m | |
mac[34m^M[mmac[34m^M[mEND | |
unix[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25h$r XXtt93 | |
[?25l"XXtt93" [41;10H[K[41;10H5 lines, 32 characters[1;40r[1;1H[5M[1;41r[36;1Hunix | |
dos[34m^M[m | |
dos[34m^M[m | |
mac[34m^M[mmac[34m^M[mEND | |
unix[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[1;1H[4M[1;41r[37;1Hunix | |
dos[34m^M[m | |
dos[34m^M[m | |
mac[34m^M[mmac[34m^M[mEND | |
[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H10[?12l[?25h[?25l | |
:[?12l[?25h$r XXUnix | |
[?25l"XXUnix" [41;10H[K[41;10H2 lines, 10 characters[1;40r[40;1H | |
[1;41r[40;1Hunix[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hset nobinary ff& | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"test.out" 121 lines, 664 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test31.failed test.ok test.out X* viminfo | |
cp test31.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test31.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test31.in" 75 lines, 1545 characters[1;1HTest for commands that close windows and/or buffers: | |
:quit | |
:close | |
:hide | |
:only | |
:sall | |
:all | |
:ball | |
:buf | |
:edit | |
STARTTEST | |
:so tiny.vim | |
GA 1[34m^[[m:$w! Xtest1 | |
$r2:$w! Xtest2 | |
$r3:$w! Xtest3 | |
:n! Xtest1 Xtest2 | |
A 1[34m^[[m:set hidden | |
:" test for working :n when hidden set; write "testtext 2" | |
:n | |
:w! test.out | |
:" test for failing :rew when hidden not set; write "testtext 2 2" | |
:set nohidden | |
A 2[34m^[[m:rew | |
:w >>test.out | |
:" test for working :rew when hidden set; write "testtext 1 1" | |
:set hidden | |
:rew | |
:w >>test.out | |
:" test for :all keeping a buffer when it's modified; write "testtext 1 1 1" | |
:set nohidden | |
A 1[34m^[[m:sp | |
:n Xtest2 Xtest3 | |
:all | |
:1wincmd w | |
:w >>test.out | |
:" test abandoning changed buffer, should be unloaded even when 'hidden' set | |
:" write "testtext 2 2" twice | |
:set hidden | |
A 1[34m^[[m:q![1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[12;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[13;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 60 lines, 1410 characters written[13;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[13;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[33M[1;41r[8;1H:w >>test.out | |
:unhide | |
:w >>test.out | |
:" test ":hide" hides anyway when 'hidden' not set; write "testtext 3" | |
:set nohidden | |
A 2[34m^[[m:hide | |
:w >>test.out | |
:" test ":edit" failing in modified buffer when 'hidden' not set | |
:" write "testtext 3 3" | |
A 3[34m^[[m:e Xtest1 | |
:w >>test.out | |
:" test ":edit" working in modified buffer when 'hidden' set; write "testtext 1" | |
:set hidden | |
:e Xtest1 | |
:w >>test.out | |
:" test ":close" not hiding when 'hidden' not set in modified buffer; | |
:" write "testtext 3 3 3" | |
:sp Xtest3 | |
:set nohidden | |
A 3[34m^[[m:close | |
:w >>test.out | |
:" test ":close!" does hide when 'hidden' not set in modified buffer; | |
:" write "testtext 1" | |
A 3[34m^[[m:close! | |
:w >>test.out | |
:set nohidden | |
:" test ":all!" hides changed buffer; write "testtext 2 2 2" | |
:sp Xtest4 | |
GA 4[34m^[[m:all! | |
:1wincmd w | |
:w >>test.out | |
:qa! | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso tiny.vim | |
[?25l[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Htesttext[41;1H[K[40;1H[?12l[?25h[?25l[9C1[?12l[?25h[?25l | |
:[?12l[?25h$w! Xtest1 | |
[?25l"Xtest1" [41;10H[K[41;10H[New File] 1 line, 11 characters written[40;10H[?12l[?25h[?25l2[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$w! Xtest2 | |
[?25l"Xtest2" [41;10H[K[41;10H[New File] 1 line, 11 characters written[40;10H[?12l[?25h[?25l3[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$w! Xtest3 | |
[?25l"Xtest3" [41;10H[K[41;10H[New File] 1 line, 11 characters written[40;10H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hn! Xtest1 Xtest2 | |
[?25l"Xtest1" [41;10H[K[41;10H1 line, 11 characters[1;1Htesttext 1[1;11H[K[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[11C1[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset hidden | |
[?25l[1;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" test for working :n when hidden set; write "testtext 2" | |
[?25l[1;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hn | |
[?25l"Xtest2" 1 line, 11 characters[1;10H2[1;12H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 1 line, 11 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" test for failing :rew when hidden not set; write "testtext 2 2" | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nohidden | |
[?25l[1;1H[?12l[?25h[?25l[11C2[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hrew | |
[?25l[1m[37m[41mE37: No write since last change (add ! to override)[1;12H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 13 characters appended[1;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" test for working :rew when hidden set; write "testtext 1 1" | |
[?25l[1;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset hidden | |
[?25l[1;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hrew | |
[?25l"Xtest1" [Modified] line 1 of 1 --100%-- col 1 (file 1 of 2)[1;10H1 1 | |
[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 13 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" test for :all keeping a buffer when it's modified; write "testtext 1 1 1" | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nohidden | |
[?25l[1;1H[?12l[?25h[?25l[13C1[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hsp | |
[?25l[20;1H[1m[7mXtest1 [+] [m[21;1Htesttext 1 1 1[21;15H[K[40;1H[7mXtest1 [+] [1;14H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hn Xtest2 Xtest3 | |
[?25l"Xtest2" [Modified] line 1 of 1 --100%-- col 1 (file 1 of 2)[1;10H2 2[1;14H[K[20;6H[1m[7m2 [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hall | |
[?25l"Xtest3" 1 line, 11 characters[27m[m[H[2J[1;1Htesttext 1 1 1 | |
[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [m[13;1H[7mXtest1 [+] [m[14;1Htesttext 2 2 | |
[1m[34m~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [m[26;1H[1m[7mXtest2 [+] [m[27;1Htesttext 3 | |
[1m[34m~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [m[40;1H[7mXtest3 [14;1H[?12l[?25h[?25l[41;1H[m:[?12l[?25h1wincmd w | |
[?25l[13;1H[1m[7mXtest1 [+] [m[26;1H[7mXtest2 [+][m[1m[7m [m[7m [1;14H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 15 characters appended[1;14H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" test abandoning changed buffer, should be unloaded even when 'hidden' set | |
[?25l[1;14H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" write "testtext 2 2" twice | |
[?25l[1;14H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset hidden | |
[?25l[1;14H[?12l[?25h[?25l1 1[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hq! | |
[?25l[27m[m[H[2J[1;1Htesttext 2 2 | |
[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [m[20;1H[1m[7mXtest2 [+] [m[21;1Htesttext 3 | |
[1m[34m~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [m[40;1H[7mXtest3 [1;1H[?12l[?25h[?25l[41;1H[m:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 13 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hunhide | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 13 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" test ":hide" hides anyway when 'hidden' not set; write "testtext 3" | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nohidden | |
[?25l[1;1H[?12l[?25h[?25l[13C2[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hhide | |
[?25l[1;10H3[1;12H[K[20;1H[1m[34m~ [21;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 11 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" test ":edit" failing in modified buffer when 'hidden' not set | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" write "testtext 3 3" | |
[?25l[1;1H[?12l[?25h[?25l[11C3[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xtest1 | |
[?25l[1m[37m[41mE37: No write since last change (add ! to override)[1;12H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 13 characters appended[1;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" test ":edit" working in modified buffer when 'hidden' set; write "testtext 1" | |
[?25l[1;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset hidden | |
[?25l[1;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he Xtest1 | |
[?25l"Xtest1" 1 line, 11 characters[1;10H1[1;12H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 11 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" test ":close" not hiding when 'hidden' not set in modified buffer; | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" write "testtext 3 3 3" | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hsp Xtest3 | |
[?25l"Xtest3" [Modified] line 1 of 1 --100%-- col 1 (file 2 of 2)[1;10H3 3[20;1H[1m[7mXtest3 [+] [m[21;1Htesttext 1[21;11H[K[40;1H[7mXtest1 [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset nohidden | |
[?25l[1;1H[?12l[?25h[?25l[13C3[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hclose | |
[?25l[1m[37m[41mE37: No write since last change (add ! to override)[1;14H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 15 characters appended[1;14H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" test ":close!" does hide when 'hidden' not set in modified buffer; | |
[?25l[1;14H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" write "testtext 1" | |
[?25l[1;14H[?12l[?25h[?25l3 3[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hclose! | |
[?25l[1;10H1[1;12H[K[20;1H[1m[34m~ [21;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 11 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nohidden | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" test ":all!" hides changed buffer; write "testtext 2 2 2" | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hsp Xtest4 | |
[?25l"Xtest4" [New File][1;1H[K[20;1H[1m[7mXtest4 [m[21;1Htesttext 1[21;11H[K[40;1H[7mXtest1 [1;1H[?12l[?25h[?25l[m 4[20;8H[1m[7m[+][1;2H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hall! | |
[?25l"Xtest2" [Modified] line 1 of 1 --100%-- col 1 (file 1 of 2) | |
"Xtest3" [Modified] line 1 of 1 --100%-- col 1 (file 2 of 2) | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25h1wincmd w | |
[?25l[1;1H[2L[1;1Htesttext 2 2 2 | |
[1m[34m~ [m[20;6H[1m[7m2 [m[21;10H3 3 3 3[40;6H[7m3 [+][m[41;1H[K[1;1H[?12l[?25h[?25l[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 15 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test32.failed test.ok test.out X* viminfo | |
cp test32.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test32.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test32.in" 57 lines, 1242 characters[1;1HTest for insert expansion | |
:se cpt=.,w | |
* add-expands (word from next line) from other window | |
* add-expands (current buffer first) | |
* Local expansion, ends in an empty line (unless it becomes a global expansion) | |
* starts Local and switches to global add-expansion | |
:se cpt=.,w,i | |
* i-add-expands and switches to local | |
* add-expands lines (it would end in an empty line if it didn't ignored it self) | |
:se cpt=kXtestfile | |
* checks k-expansion, and file expansion (use Xtest11 instead of test11, | |
* because TEST11.OUT may match first on DOS) | |
:se cpt=w | |
* checks make_cyclic in other window | |
:se cpt=u nohid | |
* checks unloaded buffer expansion | |
* checks adding mode abortion | |
:se cpt=t,d | |
* tag expansion, define add-expansion interrupted | |
* t-expansion | |
STARTTEST | |
:so small.vim | |
:se nocp viminfo+=nviminfo cpt=.,w ff=unix | $-2,$w!Xtestfile | set ff& | |
:se cot= | |
[34m^W[mnO#include "Xtestfile" | |
ru[34m^N^N^X^N^[^A[m | |
O[34m^P^X^N | |
^X^P^P^P^P^P | |
^X^P^P^X^X^N^X^N^N^[[m | |
:se cpt=.,w,i | |
kOM[34m^N^X^N^X^N^X^X^X^P | |
^X^L^X^L^P^P^[[m | |
:se cpt=kXtestfile | |
:w Xtest11.one | |
:w Xtest11.two | |
O[34m^N^[[mIX[34m^[[mA[34m^X^F^N^[[m | |
:se cpt=w | |
OST[34m^N^P^P^P^P^[[1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[23;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 24 lines, 384 characters written[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[24;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[8M[1;41r[33;1H:se cpt=u nohid | |
[34m^W[moOEN[34m^N[m | |
unl[34m^N^X^X^P^[[m | |
:se cpt=t,d def=^\\k* tags=Xtestfile notagbsearch | |
O[34m^X^]^X^D^X^D^X^X^D^X^D^X^D^X^D[m | |
a[34m^N^[[m | |
:wq! test.out | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hse nocp viminfo+=nviminfo cpt=.,w ff=unix | $-2,$w!Xtestfile | set ff& | |
[?25l"Xtestfile" [41;13H[K[41;13H[New] 3L, 57C written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hse cot= | |
[?25l[40;1H[?12l[?25h[?25l[1;1H[K[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [m[20;1H[1m[7m[No Name] [m[21;8H[34mX^X^N^X^N^N^[[m | |
:se cpt=.,w,i[22;14H[K[23;1HkOM[34m^N^X^N^X^N^X^X^X^P | |
^X^L^X^L^P^P^[[m[24;15H[K[25;1H:se cpt=kXtestfile | |
:w Xtest11.one[26;15H[K[27;12Htwo | |
O[34m^N^[[mIX[34m^[[mA[34m^X^F^N^[[m | |
:se cpt=w[29;10H[K[30;1HOST[34m^N^P^P^P^P^[[m | |
:se cpt=u nohid | |
[34m^W[moOEN[34m^N[m[32;9H[K[33;1Hunl[34m^N^X^X^P^[[m | |
:se cpt=t,d def=^\\k* tags=Xtestfile notagbsearch | |
O[34m^X^]^X^D^X^D^X^X^D^X^D^X^D^X^D[m[35;32H[K[36;1Ha[1C[34mN^[[m[36;6H[K[37;1H:wq! test.out | |
ENDTEST[38;8H[K[39;1H[K[40;1H[7mtest32.in [1;1H[?12l[?25h[?25l[m[41;1H[1m-- INSERT -- | |
-- Keyword completion (^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1mo[m[41;20H[K[41;1Hmatch in file test32.in | |
[1m-- Keyword completion (^N^P) [m[32mmatch 1 of 4[2;3H[m[41;29H[K[41;1Hmatch in file test32.in[1m^[m[41;24H[K[41;1H[1m-- Keyword completion (^N^P) [m[32mmatch 2 of 4[2;5H[m[41;29H[K[41;1H[K[41;1H[1m-- INSERT -- | |
-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1mAdding Keyword completion (^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1mo[m[41;20H[K[41;1Hmatch in file test32.in | |
[1m-- Adding Keyword completion (^N^P) Word from other line[2;10H[1;19r[m[1;1H[2L[1;41r[1;1H#include "Xtestfile" | |
run1 run2[20;11H[1m[7m[+][2;10H[?12l[?25h[m[41;1H[K[?25l[41;1H[1m-- Adding Keyword completion (^N^P) Word from other line[m[41;1H[K[41;1H[1m-- INSERT --[m[41;1H[K[2;9H[?12l[?25h[?25l3[?12l[?25h | |
[?25l[41;1H[1m-- INSERT -- | |
-- Keyword completion (^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1mo[m[41;20H[K[41;1H[1m-- Keyword completion (^N^P) [m[32mmatch 1 of 103[3;5H[m[41;29H[K[41;1H[K[41;1H[1m-- INSERT -- | |
-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1mAdding Keyword completion (^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1mo[m[41;20H[K[41;1H[1m-- Adding Keyword completion (^N^P) Word from other line[3;10H[m[41;1H[K[41;1H[1m-- INSERT -- | |
-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1mKeyword Local completion (^N^P) -- Searching...[m[41;36H[32mmatch 1 of 4[m[1m.[m[41;48H[K[4;5H[41;35H[K[41;35H[1m [m[32mmatch 2 of 4[4;5H[m[41;35H[K[41;35H[1m [m[32mmatch 3 of 4[4;10H[m[41;35H[K[41;35H[1m [m[32mmatch 4 of 4[4;8H[m[41;35H[K[41;35H[1m [m[31mBack at original[4;1H[m[41;1H[K[41;1H[1m-- INSERT -- | |
-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1mKeyword Local completion (^N^P) -- Searching...[m[41;36H[32mmatch 1 of 4[m[1m.[m[41;48H[K[5;5H[41;35H[K[41;35H[1m [m[32mmatch 2 of 4[5;5H[m[41;35H[K[41;1H[K[41;1H[1m-- INSERT -- | |
-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1m^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1mKeyword completion (^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1mo[m[41;20H[K[41;1H[1m-- Keyword completion (^N^P) The only match[5;5H[m[41;29H[K[41;1H[K[41;1H[1m-- INSERT -- | |
-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1mAdding Keyword completion (^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1mo[m[41;20H[K[41;1H[1m-- Adding Keyword completion (^N^P) [m[32mmatch 1 of 2[5;10H[m[41;36H[K[41;1Hmatch in file test32.in[1me[m[41;24H[K[41;1H[1m-- Adding Keyword completion (^N^P) Word from other line[5;10H[3;19r[m[3;1H[3L[1;41r[3;1Hrun3 run3 | |
run1 run2[?12l[?25h[41;1H[K[?25l[41;1H[1m-- Adding Keyword completion (^N^P) Word from other line[m[41;1H[K[41;1H[1m-- INSERT --[m[41;1H[K[5;9H[?12l[?25h | |
[?25l[41;1H:[?12l[?25hse cpt=.,w,i | |
[?25l[6;1H[?12l[?25h[5;9H[?25l[41;1H[1m-- INSERT --[m[41;13H[K[41;4H[1mKeyword completion (^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1mo[m[41;20H[K[41;9H[32m included file: Xtestfile[m | |
match in file test32.in[41;24H[K[41;1H[1m-- Keyword completion (^N^P) The only match[5;9H[m[41;29H[K[41;1H[K[41;1H[1m-- INSERT -- | |
-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1mAdding Keyword completion (^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1mo[m[41;20H[K[41;9H[32m included file: Xtestfile[m | |
match in file test32.in[41;24H[K[41;1H[1m-- Adding Keyword completion (^N^P) The only match[5;19H[m[41;36H[K[41;1H[K[41;1H[1m-- INSERT -- | |
-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1mAdding Keyword completion (^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1mo[m[41;20H[K[41;9H[32m included file: Xtestfile[m | |
match in file test32.in[41;24H[K[41;1H[1m-- Adding Keyword completion (^N^P) The only match[5;28H[m[41;36H[K[41;1H[K[41;1H[1m-- INSERT -- | |
-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1m^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1m^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1mKeyword Local completion (^N^P) -- Searching...[m[41;36H[32mmatch 1 of 3[m[1m.[m[41;48H[K[5;29H[41;1H[K[41;1H[1m-- INSERT -- | |
-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- Whole line completion (^L^N^P)^ U-- Searching...[m | |
[32mScanning: test32.in[m[1me[m[41;20H[K[41;1H[1m-- Whole line completion (^L^N^P) [m[32mmatch 1 of 54[6;29H[m[41;4H[1mINSERT --e[m[41;13H[K[41;1H[K[41;1H[1m-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) [m[32mmatch 1 of 54[m[41;4H[1mAddinge Whole line completion (^L^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1me[m[41;20H[K[41;1H[1m-- Adding Whole line completion (^L^N^P) The only match[7;29H[m[41;41H[K[41;41H[1m [m[31mBack at original[7;1H[m[41;41H[K[41;41H[1m The only match[7;29H[5;19r[m[5;1H[3L[1;41r[5;1HMakefile[8Cto run3 | |
Makefile[8Cto run3 | |
Makefile[8Cto run3[?12l[?25h[41;1H[K[?25l[41;1H[1m-- INSERT --[m[41;1H[K[7;28H[?12l[?25h[8;9H[?25l[41;1H:[?12l[?25hse cpt=kXtestfile | |
[?25l[8;9H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw Xtest11.one | |
[?25l"Xtest11.one" [New] 9L, 104C written[20;1H[1m[7mXtest11.one+ [8;9H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hw Xtest11.two | |
[?25l"Xtest11.two" [New] 9L, 104C written[8;9H[?12l[?25h[?25l[41;1H[1m-- INSERT --[m[41;13H[K[41;4H[1mKeyword completion (^N^P) -- Searching...[m | |
[32mScanning dictionary: Xtestfile[m[1m-[m[41;31H[K[41;1Hmatch in file Xtestfile[41;24H[K[41;1H[1m-- Keyword completion (^N^P) [m[32mmatch 1 of 9[8;7H[8;19r[m[8;1H[L[1;41r[8;1Htest11[20;13H[1m[7m[+][8;7H[mI[?12l[?25h [41;1H[K[?25l[41;1H[1m-- Keyword completion (^N^P) [m[32mmatch 1 of 9[m[41;1H[K[41;1H[1m-- INSERT --[m[41;1H[K[8;6H[?12l[?25h[?25l[41;1H[1m-- INSERT --[m[41;1H[K[8;1HXtest11 | |
[?12l[?25h[?25l[41;1H[1m-- INSERT -- | |
-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- File name completion (^F^N^P)s ^-- Searching...[m[41;34H[32mmatch 1 of 2[m[1m.[m[41;46H[K[8;12H[41;33H[K[41;33H[1m [m[32mmatch 2 of 2[8;12H[m.two[?12l[?25h[41;1H[K[?25l[41;1H[1m-- INSERT --[m[41;1H[K[8;11H[?12l[?25h[9;9H[?25l[41;1H:[?12l[?25hse cpt=w | |
[?25l[9;9H[?12l[?25h[?25l[41;1H[1m-- INSERT -- | |
-- Keyword completion (^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1mo[m[41;20H[K[41;1Hmatch in file test32.in | |
[1m-- Keyword completion (^N^P) The only match[9;10H[m[41;29H[K[41;29H[1m [m[31mBack at original[9;3H[m[41;29H[K[41;1Hmatch in file test32.in[1m^[m[41;24H[K[41;1H[1m-- Keyword completion (^N^P) The only match[9;10H[m[41;29H[K[41;29H[1m [m[31mBack at original[9;3H[m[41;29H[K[41;1Hmatch in file test32.in[1m^[m[41;24H[K[41;1H[1m-- Keyword completion (^N^P) The only match[9;10H[9;19r[m[9;1H[L[1;41r[9;1HSTARTTEST[?12l[?25h[41;1H[K[?25l[41;1H[1m-- Keyword completion (^N^P) The only match[m[41;1H[K[41;1H[1m-- INSERT --[m[41;1H[K[9;9H[?12l[?25h[10;9H[?25l[41;1H:[?12l[?25hse cpt=u nohid | |
[?25l[10;9H[?12l[?25h[?25l[20;1H[1m[34m~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [10;9H[?12l[?25h[?25l[m[41;1H[1m-- INSERT --[m[41;13H[K[41;4H[1mKeyword completion (^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1mo[m[41;20H[K[41;1Hmatch in file test32.in | |
[1m-- Keyword completion (^N^P) The only match[10;8H[m[41;1H[K[41;1H[1m-- INSERT -- | |
-- Keyword completion (^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1mo[m[41;20H[K[41;1Hmatch in file test32.in | |
[1m-- Keyword completion (^N^P) [m[32mmatch 1 of 3[11;7H[m[41;29H[K[41;1H[K[41;1H[1m-- INSERT -- | |
-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1m^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- INSERTe --^[m[41;13H[K[41;4H[1mKeyword completion (^N^P) -- Searching...[m | |
[32mScanning: test32.in[m[1mo[m[41;20H[K[41;1Hmatch in file test32.in | |
[1m-- Keyword completion (^N^P) The only match[11;7H[10;40r[m[10;1H[2L[1;41r[10;1HENDTEST | |
unless[?12l[?25h[41;1H[K[?25l[41;1H[1m-- Keyword completion (^N^P) The only match[m[41;1H[K[41;1H[1m-- INSERT --[m[41;1H[K[11;6H[?12l[?25h[12;6H[?25l[41;1H:[?12l[?25hse cpt=t,d def=^\\k* tags=Xtestfile notagbsearch | |
[?25l[12;6H[?12l[?25h[?25l[41;1H[1m-- INSERT --[m[41;13H[K[41;4H[1m^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- Tag completion (^]^N^P)^ N-- Searching...[m[41;28H[32mmatch 1 of 3[m[1m.[m[41;40H[K[12;7H[41;4H[1mINSERTm --e[m[41;13H[K[41;1H[K[41;1H[1m-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) [m[32mmatch 1 of 3[m[41;4H[1mDefinition completion (^D^N^P)^ U-- Searching...[m[41;50H[K[41;1H[32mScanning included file: Xtestfile[m[1m [m[41;34H[K[41;1Hmatch in file Xtestfile[41;24H[K[41;1H[1m-- Definition completion (^D^N^P) The only match[12;11H[41;4HINSERTt --n[m[41;13H[K[41;1H[K[41;1H[1m-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) The only match | |
-- Addinge Definition completion (^D^N^P) -- Searching...[m | |
[32mScanning included file: Xtestfile[m[1m^[m[41;34H[K[41;1Hmatch in file Xtestfile[41;24H[K[41;1H[1m-- Adding Definition completion (^D^N^P) The only match[12;20H[41;4HINSERT --f[m[41;13H[K[41;1H[K[41;1H[1m-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) The only match | |
-- INSERTe --^[m[41;13H[K[41;4H[1m^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) | |
-- Definition completion (^D^N^P)^ U-- Searching...[m | |
[32mScanning included file: Xtestfile[m[1m [m[41;34H[K[41;1Hmatch in file Xtestfile[41;24H[K[41;1H[1m-- Definition completion (^D^N^P) The only match[12;25H[41;4HINSERTt --n[m[41;13H[K[41;1H[K[41;1H[1m-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) The only match | |
-- Addinge Definition completion (^D^N^P) -- Searching...[m | |
[32mScanning included file: Xtestfile[m[1m^[m[41;34H[K[41;1Hmatch in file Xtestfile[41;24H[K[41;1H[1m-- Adding Definition completion (^D^N^P) The only match[12;37H[41;4HINSERT --f[m[41;13H[K[41;1H[K[41;1H[1m-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) The only match | |
-- Addinge Definition completion (^D^N^P) -- Searching...[m | |
[32mScanning included file: Xtestfile[m[1m^[m[41;34H[K[41;1Hmatch in file Xtestfile[41;24H[K[41;1H[1m-- Adding Definition completion (^D^N^P) The only match[12;38H[41;4HINSERT --f[m[41;13H[K[41;1H[K[41;1H[1m-- ^X mode (^]^D^E^F^I^K^L^N^O^Ps^U^V^Y) The only match | |
-- Addinge Definition completion (^D^N^P) -- Searching...[m | |
[32mScanning included file: Xtestfile[m[1m^[m[41;34H[K[41;1Hmatch in file Xtestfile[41;24H[K[41;1H[1m-- Adding Definition completion (^D^N^P) Word from other line[12;42H[41;4HINSERT --f[m[41;13H[K[41;1H[K[41;1H[1m-- Keyword completion (^N^P) -- Searching...[m | |
[32mScanning tags.[m[1mp[m[41;15H[K[41;10H[32mincluded file: Xtestfile[m | |
[1m-- Keyword completion (^N^P) The only match[13;4H[12;40r[m[12;1H[2L[1;41r[12;1Htest11file 36Gepeto[8C/Tag/ asd | |
asd[?12l[?25h[41;1H[K[?25l[41;1H[1m-- Keyword completion (^N^P) The only match[m[41;1H[K[41;1H[1m-- INSERT --[m[41;1H[K[13;3H[?12l[?25h | |
ru[?25l[41;1H:[?12l[?25hwq! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New] 15L, 175C written | |
[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test33.failed test.ok test.out X* viminfo | |
cp test33.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test33.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test33.in" 34 lines, 616 characters[1;1HTest for 'lisp' | |
If the lisp feature is not enabled, this will fail! | |
STARTTEST | |
:so small.vim | |
:set lisp | |
/^(defun | |
=G:/^(defun/,$w! test.out | |
:q! | |
ENDTEST | |
(defun html-file (base) | |
(format nil "~(~A~).html" base)) | |
(defmacro page (name title &rest body) | |
(let ((ti (gensym))) | |
`(with-open-file (*standard-output* | |
(html-file ,name) | |
:direction :output | |
:if-exists :supersede) | |
(let ((,ti ,title)) | |
(as title ,ti) | |
(with center | |
(as h2 (string-upcase ,ti))) | |
(brs 3) | |
,@body)))) | |
;;; Utilities for generating links | |
(defmacro with-link (dest &rest body) | |
`(progn | |
(format t "<a href=\"~A\">" (html-file ,dest)) | |
,@body | |
(princ "</a>"))) | |
[1m[34m~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[4;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 5 lines, 63 characters written[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[5;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[10;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[11;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[11;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset lisp | |
[?25l[11;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^(defun | |
[?25l[12;1H[?12l[?25h[?25l[41;1H22 lines to indent... | |
23[7Cindented [41;19H[K[13;1H (format nil "~(~A~).html" base)) | |
(let ((ti (gensym))) | |
`(with-open-file (*standard-output* | |
[8C(html-file ,name) | |
[7C:direction :output | |
:if-exists :supersede) | |
(let ((,ti ,title)) | |
[15C(as title ,ti) | |
[17C(with center | |
[7C(as h2 (string-upcase ,ti))) | |
[22C(brs 3) | |
[19C,@body))))[31;1H `(progn | |
(format t "<a href=\"~A\">" (html-file ,dest)) | |
,@body | |
(princ "</a>")))[12;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^(defun/,$w! test.out | |
[?25l[31msearch hit BOTTOM, continuing at TOP[m | |
"test.out" [41;12H[K[41;12H[New File] 23 lines, 544 characters written[12;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hq! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test34.failed test.ok test.out X* viminfo | |
cp test34.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test34.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test34.in" 76 lines, 1435 characters[1;1HTest for user functions. | |
Also test an <expr> mapping calling a function. | |
Also test that a builtin function cannot be replaced. | |
STARTTEST | |
:so small.vim | |
:function Table(title, ...) | |
: let ret = a:title | |
: let idx = 1 | |
: while idx <= a:0 | |
: exe "let ret = ret . a:" . idx | |
: let idx = idx + 1 | |
: endwhile | |
: return ret | |
:endfunction | |
:function Compute(n1, n2, divname) | |
: if a:n2 == 0 | |
: return "fail" | |
: endif | |
: exe "let g:" . a:divname . " = ". a:n1 / a:n2 | |
: return "ok" | |
:endfunction | |
:func Expr1() | |
: normal! v | |
: return "111" | |
:endfunc | |
:func Expr2() | |
: call search('XX', 'b') | |
: return "222" | |
:endfunc | |
:func ListItem() | |
: let g:counter += 1 | |
: return g:counter . '. ' | |
:endfunc | |
:func ListReset() | |
: let g:counter = 0 | |
: return '' | |
:endfunc | |
:func FuncWithRef(a) | |
: unlet g:FuncRef[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[5;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 68 lines, 1283 characters written[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[6;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[34M[1;41r[7;1H: return a:a | |
:endfunc | |
:let g:FuncRef=function("FuncWithRef") | |
:let counter = 0 | |
:inoremap <expr> ( ListItem() | |
:inoremap <expr> [ ListReset() | |
:imap <expr> + Expr1() | |
:imap <expr> * Expr2() | |
:let retval = "nop" | |
/^here | |
C[34m^R[m=Table("xxx", 4, "asdf") | |
[34m^R[m=Compute(45, 0, "retval") | |
[34m^R[m=retval | |
[34m^R[m=Compute(45, 5, "retval") | |
[34m^R[m=retval | |
[34m^R[m=g:FuncRef(333) | |
XX+-XX | |
---*--- | |
(one | |
(two | |
[(one again[34m^[[m:call append(line('$'), max([1, 2, 3])) | |
:call extend(g:, {'max': function('min')}) | |
:call append(line('$'), max([1, 2, 3])) | |
:$-7,$w! test.out | |
:delfunc Table | |
:delfunc Compute | |
:delfunc Expr1 | |
:delfunc Expr2 | |
:delfunc ListItem | |
:delfunc ListReset | |
:unlet retval counter | |
:q! | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hfunction Table(title, ...) | |
[?25l | |
: [?12l[?25h: let ret = a:title | |
[?25l: [?12l[?25h: let idx = 1 | |
[?25l: [?12l[?25h: while idx <= a:0 | |
[?25l: [?12l[?25h: exe "let ret = ret . a:" . idx | |
[?25l: [?12l[?25h: let idx = idx + 1 | |
[?25l: [?12l[?25h: endwhile | |
[?25l: [?12l[?25h: return ret | |
[?25l: [?12l[?25h:endfunction | |
[1;1H[8L[?25l[1;1H: let g:counter = 0 | |
: return '' | |
:endfunc | |
:func FuncWithRef(a) | |
: unlet g:FuncRef | |
: return a:a | |
:endfunc | |
:let g:FuncRef=function("FuncWithRef")[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hfunction Compute(n1, n2, divname) | |
[?25l | |
: [?12l[?25h: if a:n2 == 0 | |
[?25l: [?12l[?25h: return "fail" | |
[?25l: [?12l[?25h: endif | |
[?25l: [?12l[?25h: exe "let g:" . a:divname . " = ". a:n1 / a:n2 | |
[?25l: [?12l[?25h: return "ok" | |
[?25l: [?12l[?25h:endfunction | |
[1;1H[6L[?25l[1;1H: let g:counter = 0 | |
: return '' | |
:endfunc | |
:func FuncWithRef(a) | |
: unlet g:FuncRef | |
: return a:a[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hfunc Expr1() | |
[?25l | |
: [?12l[?25h: normal! v | |
[?25l: [?12l[?25h: return "111" | |
[?25l: [?12l[?25h:endfunc | |
[1;1H[3L[?25l[1;1H: let g:counter = 0 | |
: return '' | |
:endfunc[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hfunc Expr2() | |
[?25l | |
: [?12l[?25h: call search('XX', 'b') | |
[?25l: [?12l[?25h: return "222" | |
[?25l: [?12l[?25h:endfunc | |
[1;1H[3L[?25l[1;1H: let g:counter = 0 | |
: return '' | |
:endfunc[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hfunc ListItem() | |
[?25l | |
: [?12l[?25h: let g:counter += 1 | |
[?25l: [?12l[?25h: return g:counter . '. ' | |
[?25l: [?12l[?25h:endfunc | |
[1;1H[3L[?25l[1;1H: let g:counter = 0 | |
: return '' | |
:endfunc[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hfunc ListReset() | |
[?25l | |
: [?12l[?25h: let g:counter = 0 | |
[?25l: [?12l[?25h: return '' | |
[?25l: [?12l[?25h:endfunc | |
[1;1H[3L[?25l[1;1H: let g:counter = 0 | |
: return '' | |
:endfunc[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hfunc FuncWithRef(a) | |
[?25l | |
: [?12l[?25h: unlet g:FuncRef | |
[?25l: [?12l[?25h: return a:a | |
[?25l: [?12l[?25h:endfunc | |
[1;1H[3L[?25l[1;1H: let g:counter = 0 | |
: return '' | |
:endfunc[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hlet g:FuncRef=function("FuncWithRef") | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hlet counter = 0 | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hinoremap <expr> ( ListItem() | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hinoremap <expr> [ ListReset() | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25himap <expr> + Expr1() | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25himap <expr> * Expr2() | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hlet retval = "nop" | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^here | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Hhere[41;1H[K[40;1H[?12l[?25h[?25lher$ | |
=[?12l[?25hTable("xxx", 4, "asdf") | |
[?25l[41;1H[K[41;1H=[?12l[?25hCompute(45, 0, "retval") | |
[?25l[41;1H[K[41;1H=[?12l[?25hretval | |
[?25l[41;1H[K[41;1H=[?12l[?25hCompute(45, 5, "retval") | |
[?25l[41;1H[K[41;1H=[?12l[?25hretval | |
[?25l[41;1H[K[41;1H=[?12l[?25hg:FuncRef(333) | |
[?25l[1m[37m[41mError detected while processing function Expr1:[m | |
[33mline 1:[m | |
[1m[37m[41mE523: Not allowed here[m | |
[32mPress ENTER or type command to continue[?12l[?25h[m[1;1H[4L[?25l[1;1H:endfunc | |
:let g:FuncRef=function("FuncWithRef") | |
:let counter = 0 | |
:inoremap <expr> ( ListItem() | |
:inoremap <expr> [ ListReset() | |
:imap <expr> + Expr1() | |
:imap <expr> * Expr2()[7;23H[K[8;6Hretval = "nop" | |
/^he[9;7H[K[10;1HC[34m^R[m=Table("xxx", 4, "asdf")[10;28H[K[11;1H [34m^R[m=Compute(45, 0, "retval") | |
[34m^R[m=retval[12;11H[K[13;1H [34m^R[m=Compute(45, 5, "retval") | |
[34m^R[m=retval | |
[3Cg:FuncRef(333)[15;19H[K[16;2H[K[17;1HXX+-XX[17;7H[K[18;1H---*---[18;8H[K[19;1H(one[19;5H[K[20;1H(two[20;5H[K[21;1H[(one again[34m^[[m:call append(line('$'), max([1, 2, 3])) | |
:call extend(g:, {'max': function('min')}) | |
:call append(line('$'), max([1, 2, 3])) | |
:$-7,$w! test.out | |
:delfunc Table | |
:delfunc Compute[26;17H[K[27;2Hdelfunc Expr1[27;15H[K[28;2Hdelfunc Expr2[28;15H[K[29;2Hdelfunc ListItem[30;10HListReset | |
:unlet retval counter | |
:q![32;4H[K[33;1HENDTEST[33;8H[K[34;1H[K[35;1Hxxx4asdf fail nop ok 9 333 | |
XX111-XX[36;9H[K[37;1H---222--- | |
1. one[38;7H[K[39;1H2. two[40;1H[K[41;1H[K[40;1H[?12l[?25h[?25l1. one again[?12l[?25h[?25l | |
:[?12l[?25hcall append(line('$'), max([1, 2, 3])) | |
[?25l[40;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hcall extend(g:, {'max': function('min')}) | |
[?25l[1m[37m[41mE704: Funcref variable name must start with a capital: max[40;12H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hcall append(line('$'), max([1, 2, 3])) | |
[?25l[40;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$-7,$w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 8 lines, 77 characters written[40;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hdelfunc Table | |
[?25l[40;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hdelfunc Compute | |
[?25l[40;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hdelfunc Expr1 | |
[?25l[40;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hdelfunc Expr2 | |
[?25l[40;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hdelfunc ListItem | |
[?25l[40;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hdelfunc ListReset | |
[?25l[40;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hunlet retval counter | |
[?25l[40;12H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hq! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test35.failed test.ok test.out X* viminfo | |
cp test35.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test35.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test35.in" 21 lines, 448 characters[1;1HTest Ctrl-A and Ctrl-X, which increment and decrement decimal, hexadecimal, | |
and octal numbers. | |
STARTTEST | |
/^start-here | |
:set nrformats=octal,hex | |
j[34m^A[m102[34m^X^A[ml[34m^X[ml[34m^A[m64[34m^A[m128[34m^X[m$[34m^X[m | |
:set nrformats=octal | |
0[34m^A[m102[34m^X^A[ml[34m^X[m2[34m^A[mw65[34m^A[m129[34m^X[mblx6lD | |
:set nrformats=hex | |
0101[34m^X[ml257[34m^X^A[mTxldt [34m^A[m [34m^X[m [34m^X[m | |
:set nrformats= | |
0200[34m^X[ml100[34m^X[mw78[34m^X^A[mk | |
:$-3,$wq! test.out | |
ENDTEST | |
start-here | |
100 0x100 077 0 | |
100 0x100 077 | |
100 0x100 077 0xfF 0xFf | |
100 0x100 077 | |
[1m[34m~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[4;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 10 lines, 200 characters written[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[5;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[15;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[16;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^start-here | |
[?25l[17;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nrformats=octal,hex | |
[?25l[17;1H[?12l[?25h | |
[?25l101[?12l[?25h[?25l | |
-1 0x100 077 0[18;27H[K[18;2H[?12l[?25h[?25l0 0x100 077 0[18;26H[K[18;1H[?12l[?25h0[?25l[7C0ff[?12l[?25hf[?25l 0100 0[18;20H[?12l[?25h[?25l20[?12l[?25h[?25l00[?12l[?25h0 [?25l-1[?12l[?25h[19;26H[?25l[41;1H[K[41;1H:[?12l[?25hset nrformats=octal | |
[?25l[19;26H[?12l[?25h | |
[?25l101[?12l[?25h[?25l | |
-1 0x100 077 | |
-[?12l[?25h[?25l0 0x100 077 | |
[?12l[?25h0[?25l -1x100 077[19;8H[?12l[?25h[?25l1x100 077 [19;7H[?12l[?25h[10C[?25l0200[?12l[?25h[?25l37777777777[?12l[?25h[19;17H0[?25l7[9C [19;18H[?12l[?25h777777[?25l[19;24H[K[19;23H[?12l[?25h[20;23H[?25l[41;1H[K[41;1H:[?12l[?25hset nrformats=hex | |
[?25l[20;23H[?12l[?25h | |
[?25l-1 0x100 077 0xfF 0xFf[20;39H[K[20;2H[?12l[?25h1[?25l[7Cffffffff 077 0xfF 0xFf[20;17H[?12l[?25h[?25l[20;10H00000000[?12l[?25h[20;10H0[?25l 077 0xfF 0xFf[20;40H[K[20;11H[?12l[?25h[?25l[7C8[?12l[?25h8[?25l[7CFE[?12l[?25hE[?25l[7Cfe[?12l[?25h[21;26H[?25l[41;1H[K[41;1H:[?12l[?25hset nrformats= | |
[?25l[21;26H[?12l[?25h | |
[?25l-100 0x100 077 | |
-10[?12l[?25h0[?25l -100x100 077[21;13H[?12l[?25h[10C[?25l-001[?12l[?25h[?25l000 [?12l[?25h[20;25H[21;25H[?25l[41;1H[K[41;1H:[?12l[?25h$-3,$wq! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 4 lines, 120 characters written | |
[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test36.failed test.ok test.out X* viminfo | |
cp test36.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test36.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test36.in" 105 lines, 1950 characters[1;1HTest character classes in regexp using regexpengine 0, 1, 2. | |
STARTTEST | |
/^start-here/+1 | |
Y:s/\%#=0\d//g | |
p:s/\%#=1\d//g | |
p:s/\%#=2\d//g | |
p:s/\%#=0[0-9]//g | |
p:s/\%#=1[0-9]//g | |
p:s/\%#=2[0-9]//g | |
p:s/\%#=0\D//g | |
p:s/\%#=1\D//g | |
p:s/\%#=2\D//g | |
p:s/\%#=0[^0-9]//g | |
p:s/\%#=1[^0-9]//g | |
p:s/\%#=2[^0-9]//g | |
p:s/\%#=0\o//g | |
p:s/\%#=1\o//g | |
p:s/\%#=2\o//g | |
p:s/\%#=0[0-7]//g | |
p:s/\%#=1[0-7]//g | |
p:s/\%#=2[0-7]//g | |
p:s/\%#=0\O//g | |
p:s/\%#=1\O//g | |
p:s/\%#=2\O//g | |
p:s/\%#=0[^0-7]//g | |
p:s/\%#=1[^0-7]//g | |
p:s/\%#=2[^0-7]//g | |
p:s/\%#=0\x//g | |
p:s/\%#=1\x//g | |
p:s/\%#=2\x//g | |
p:s/\%#=0[0-9A-Fa-f]//g | |
p:s/\%#=1[0-9A-Fa-f]//g | |
p:s/\%#=2[0-9A-Fa-f]//g | |
p:s/\%#=0\X//g | |
p:s/\%#=1\X//g | |
p:s/\%#=2\X//g | |
p:s/\%#=0[^0-9A-Fa-f]//g | |
p:s/\%#=1[^0-9A-Fa-f]//g | |
p:s/\%#=2[^0-9A-Fa-f]//g[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 98 lines, 1775 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[27m[m[H[2J[1;1Hp:s/\%#=1\a//g | |
p:s/\%#=2\a//g | |
p:s/\%#=0[A-Za-z]//g | |
p:s/\%#=1[A-Za-z]//g | |
p:s/\%#=2[A-Za-z]//g | |
p:s/\%#=0\A//g | |
p:s/\%#=1\A//g | |
p:s/\%#=2\A//g | |
p:s/\%#=0[^A-Za-z]//g | |
p:s/\%#=1[^A-Za-z]//g | |
p:s/\%#=2[^A-Za-z]//g | |
p:s/\%#=0\l//g | |
p:s/\%#=1\l//g | |
p:s/\%#=2\l//g | |
p:s/\%#=0[a-z]//g | |
p:s/\%#=1[a-z]//g | |
p:s/\%#=2[a-z]//g | |
p:s/\%#=0\L//g | |
p:s/\%#=1\L//g | |
p:s/\%#=2\L//g | |
p:s/\%#=0[^a-z]//g | |
p:s/\%#=1[^a-z]//g | |
p:s/\%#=2[^a-z]//g | |
p:s/\%#=0\u//g | |
p:s/\%#=1\u//g | |
p:s/\%#=2\u//g | |
p:s/\%#=0[A-Z]//g | |
p:s/\%#=1[A-Z]//g | |
p:s/\%#=2[A-Z]//g | |
p:s/\%#=0\U//g | |
p:s/\%#=1\U//g | |
p:s/\%#=2\U//g | |
p:s/\%#=0[^A-Z]//g | |
p:s/\%#=1[^A-Z]//g | |
p:s/\%#=2[^A-Z]//g | |
:/^start-here/+1,$wq! test.out | |
ENDTEST | |
start-here[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[37;1H[?12l[?25h | |
[?25l | |
:so! Xdotest | |
[38;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^start-here/+1 | |
[?25l[40;8H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hs/\%#=0\d//g | |
[?25l10 substitutions on 1 line[40;29H:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;87H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\d//g | |
[?25l10 substitutions on 1 line[40;29H:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;87H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\d//g | |
[?25l10 substitutions on 1 line[40;29H:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;87H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[0-9]//g | |
[?25l10 substitutions on 1 line[40;29H:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;87H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[0-9]//g | |
[?25l10 substitutions on 1 line[40;29H:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;87H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[0-9]//g | |
[?25l10 substitutions on 1 line[40;29H:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;87H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\D//g | |
[?25l72 substitutions on 1 line[40;1H0123456789[40;11H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\D//g | |
[?25l72 substitutions on 1 line[40;1H0123456789[40;11H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\D//g | |
[?25l72 substitutions on 1 line[40;1H0123456789[40;11H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[^0-9]//g | |
[?25l72 substitutions on 1 line[40;1H0123456789[40;11H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[^0-9]//g | |
[?25l72 substitutions on 1 line[40;1H0123456789[40;11H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[^0-9]//g | |
[?25l72 substitutions on 1 line[40;1H0123456789[40;11H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\o//g | |
[?25l8 substitutions on 1 line[40;29H89:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;89H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\o//g | |
[?25l8 substitutions on 1 line[40;29H89:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;89H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\o//g | |
[?25l8 substitutions on 1 line[40;29H89:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;89H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[0-7]//g | |
[?25l8 substitutions on 1 line[40;29H89:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;89H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[0-7]//g | |
[?25l8 substitutions on 1 line[40;29H89:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;89H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[0-7]//g | |
[?25l8 substitutions on 1 line[40;29H89:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;89H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\O//g | |
[?25l74 substitutions on 1 line[40;1H01234567[40;9H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\O//g | |
[?25l74 substitutions on 1 line[40;1H01234567[40;9H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\O//g | |
[?25l74 substitutions on 1 line[40;1H01234567[40;9H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[^0-7]//g | |
[?25l74 substitutions on 1 line[40;1H01234567[40;9H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[^0-7]//g | |
[?25l74 substitutions on 1 line[40;1H01234567[40;9H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[^0-7]//g | |
[?25l74 substitutions on 1 line[40;1H01234567[40;9H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\x//g | |
[?25l22 substitutions on 1 line[40;29H:;<=>?@GHIXYZ[\]^_`ghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;75H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\x//g | |
[?25l22 substitutions on 1 line[40;29H:;<=>?@GHIXYZ[\]^_`ghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;75H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\x//g | |
[?25l22 substitutions on 1 line[40;29H:;<=>?@GHIXYZ[\]^_`ghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;75H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[0-9A-Fa-f]//g | |
[?25l22 substitutions on 1 line[40;29H:;<=>?@GHIXYZ[\]^_`ghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;75H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[0-9A-Fa-f]//g | |
[?25l22 substitutions on 1 line[40;29H:;<=>?@GHIXYZ[\]^_`ghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;75H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[0-9A-Fa-f]//g | |
[?25l22 substitutions on 1 line[40;29H:;<=>?@GHIXYZ[\]^_`ghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;75H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\X//g | |
[?25l60 substitutions on 1 line[40;1H0123456789ABCDEFabcdef[40;23H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\X//g | |
[?25l60 substitutions on 1 line[40;1H0123456789ABCDEFabcdef[40;23H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\X//g | |
[?25l60 substitutions on 1 line[40;1H0123456789ABCDEFabcdef[40;23H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[^0-9A-Fa-f]//g | |
[?25l60 substitutions on 1 line[40;1H0123456789ABCDEFabcdef[40;23H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[^0-9A-Fa-f]//g | |
[?25l60 substitutions on 1 line[40;1H0123456789ABCDEFabcdef[40;23H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[^0-9A-Fa-f]//g | |
[?25l60 substitutions on 1 line[40;1H0123456789ABCDEFabcdef[40;23H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\w//g | |
[?25l36 substitutions on 1 line[40;29H:;<=>?@[\]^`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;61H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\w//g | |
[?25l36 substitutions on 1 line[40;29H:;<=>?@[\]^`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;61H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\w//g | |
[?25l36 substitutions on 1 line[40;29H:;<=>?@[\]^`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;61H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[0-9A-Za-z_]//g | |
[?25l36 substitutions on 1 line[40;29H:;<=>?@[\]^`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;61H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[0-9A-Za-z_]//g | |
[?25l36 substitutions on 1 line[40;29H:;<=>?@[\]^`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;61H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[0-9A-Za-z_]//g | |
[?25l36 substitutions on 1 line[40;29H:;<=>?@[\]^`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;61H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\W//g | |
[?25l46 substitutions on 1 line[40;1H0123456789ABCDEFGHIXYZ_abcdefghiwxyz[40;37H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\W//g | |
[?25l46 substitutions on 1 line[40;1H0123456789ABCDEFGHIXYZ_abcdefghiwxyz[40;37H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\W//g | |
[?25l46 substitutions on 1 line[40;1H0123456789ABCDEFGHIXYZ_abcdefghiwxyz[40;37H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[^0-9A-Za-z_]//g | |
[?25l46 substitutions on 1 line[40;1H0123456789ABCDEFGHIXYZ_abcdefghiwxyz[40;37H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[^0-9A-Za-z_]//g | |
[?25l46 substitutions on 1 line[40;1H0123456789ABCDEFGHIXYZ_abcdefghiwxyz[40;37H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[^0-9A-Za-z_]//g | |
[?25l46 substitutions on 1 line[40;1H0123456789ABCDEFGHIXYZ_abcdefghiwxyz[40;37H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\h//g | |
[?25l26 substitutions on 1 line[40;46H[\]^`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;71H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\h//g | |
[?25l26 substitutions on 1 line[40;46H[\]^`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;71H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\h//g | |
[?25l26 substitutions on 1 line[40;46H[\]^`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;71H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[A-Za-z_]//g | |
[?25l26 substitutions on 1 line[40;46H[\]^`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;71H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[A-Za-z_]//g | |
[?25l26 substitutions on 1 line[40;46H[\]^`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;71H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[A-Za-z_]//g | |
[?25l26 substitutions on 1 line[40;46H[\]^`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;71H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\H//g | |
[?25l56 substitutions on 1 line[40;1HABCDEFGHIXYZ_abcdefghiwxyz[40;27H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\H//g | |
[?25l56 substitutions on 1 line[40;1HABCDEFGHIXYZ_abcdefghiwxyz[40;27H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\H//g | |
[?25l56 substitutions on 1 line[40;1HABCDEFGHIXYZ_abcdefghiwxyz[40;27H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[^A-Za-z_]//g | |
[?25l56 substitutions on 1 line[40;1HABCDEFGHIXYZ_abcdefghiwxyz[40;27H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[^A-Za-z_]//g | |
[?25l56 substitutions on 1 line[40;1HABCDEFGHIXYZ_abcdefghiwxyz[40;27H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[^A-Za-z_]//g | |
[?25l56 substitutions on 1 line[40;1HABCDEFGHIXYZ_abcdefghiwxyz[40;27H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\a//g | |
[?25l25 substitutions on 1 line[40;46H[\]^_`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;72H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\a//g | |
[?25l25 substitutions on 1 line[40;46H[\]^_`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;72H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\a//g | |
[?25l25 substitutions on 1 line[40;46H[\]^_`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;72H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[A-Za-z]//g | |
[?25l25 substitutions on 1 line[40;46H[\]^_`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;72H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[A-Za-z]//g | |
[?25l25 substitutions on 1 line[40;46H[\]^_`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;72H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[A-Za-z]//g | |
[?25l25 substitutions on 1 line[40;46H[\]^_`{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;72H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\A//g | |
[?25l57 substitutions on 1 line[40;1HABCDEFGHIXYZabcdefghiwxyz[40;26H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\A//g | |
[?25l57 substitutions on 1 line[40;1HABCDEFGHIXYZabcdefghiwxyz[40;26H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\A//g | |
[?25l57 substitutions on 1 line[40;1HABCDEFGHIXYZabcdefghiwxyz[40;26H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[^A-Za-z]//g | |
[?25l57 substitutions on 1 line[40;1HABCDEFGHIXYZabcdefghiwxyz[40;26H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[^A-Za-z]//g | |
[?25l57 substitutions on 1 line[40;1HABCDEFGHIXYZabcdefghiwxyz[40;26H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[^A-Za-z]//g | |
[?25l57 substitutions on 1 line[40;1HABCDEFGHIXYZabcdefghiwxyz[40;26H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\l//g | |
[?25l13 substitutions on 1 line[40;64H{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;84H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\l//g | |
[?25l13 substitutions on 1 line[40;64H{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;84H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\l//g | |
[?25l13 substitutions on 1 line[40;64H{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;84H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[a-z]//g | |
[?25l13 substitutions on 1 line[40;64H{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;84H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[a-z]//g | |
[?25l13 substitutions on 1 line[40;64H{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;84H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[a-z]//g | |
[?25l13 substitutions on 1 line[40;64H{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;84H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\L//g | |
[?25l69 substitutions on 1 line[40;1Habcdefghiwxyz[40;14H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\L//g | |
[?25l69 substitutions on 1 line[40;1Habcdefghiwxyz[40;14H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\L//g | |
[?25l69 substitutions on 1 line[40;1Habcdefghiwxyz[40;14H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[^a-z]//g | |
[?25l69 substitutions on 1 line[40;1Habcdefghiwxyz[40;14H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[^a-z]//g | |
[?25l69 substitutions on 1 line[40;1Habcdefghiwxyz[40;14H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[^a-z]//g | |
[?25l69 substitutions on 1 line[40;1Habcdefghiwxyz[40;14H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\u//g | |
[?25l12 substitutions on 1 line[40;46H[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;85H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\u//g | |
[?25l12 substitutions on 1 line[40;46H[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;85H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\u//g | |
[?25l12 substitutions on 1 line[40;46H[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;85H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[A-Z]//g | |
[?25l12 substitutions on 1 line[40;46H[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;85H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[A-Z]//g | |
[?25l12 substitutions on 1 line[40;46H[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;85H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[A-Z]//g | |
[?25l12 substitutions on 1 line[40;46H[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[40;85H[K[40;9H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0\U//g | |
[?25l70 substitutions on 1 line[40;1HABCDEFGHIXYZ[40;14H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1\U//g | |
[?25l70 substitutions on 1 line[40;1HABCDEFGHIXYZ[40;14H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2\U//g | |
[?25l70 substitutions on 1 line[40;1HABCDEFGHIXYZ[40;14H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=0[^A-Z]//g | |
[?25l70 substitutions on 1 line[40;1HABCDEFGHIXYZ[40;14H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=1[^A-Z]//g | |
[?25l70 substitutions on 1 line[40;1HABCDEFGHIXYZ[40;14H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;9H[34m^L^M[m !"#$%&'()#+'-./0123456789:;<=>?@ABCDEFGHIXYZ[\]^_`abcdefghiwxyz{|}~[34m^?~@~B~P~[[mƱ݇ԩ[41;1H[K[40;9H[?12l[?25h[?25l | |
:[?12l[?25hs/\%#=2[^A-Z]//g | |
[?25l70 substitutions on 1 line[40;1HABCDEFGHIXYZ[40;14H[K[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^start-here/+1,$wq! test.out | |
[?25l[31msearch hit BOTTOM, continuing at TOP[m | |
"test.out" [41;12H[K[41;12H[New File] 96 lines, 4032 characters written | |
[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test37.failed test.ok test.out X* viminfo | |
cp test37.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test37.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test37.in" 116 lines, 3262 characters[1;1HTest for 'scrollbind'. <[email protected]> Do not add a line below! | |
STARTTEST | |
:so small.vim | |
:set noscrollbind | |
:set scrollopt=ver,jump | |
:set scrolloff=2 | |
:set nowrap | |
:set noequalalways | |
:set splitbelow | |
:" TEST using two windows open to one buffer, one extra empty window | |
:split | |
:new | |
[34m^W[mt: | |
:resize 8 | |
/^start of window 1$/ | |
zt: | |
:set scrollbind | |
[34m^W[mj: | |
:resize 7 | |
/^start of window 2$/ | |
zt: | |
:set scrollbind | |
:" -- start of tests -- | |
:" TEST scrolling down | |
L5jHyy[34m^W[mbpr0[34m^W[mtHyy[34m^W[mbpr1[34m^W[mtL6jHyy[34m^W[mbpr2[34m^W[mkHyy[34m^W[mbpr3: | |
:" TEST scrolling up | |
[34m^W[mtH4k[34m^W[mjH[34m^W[mtHyy[34m^W[mbpr4[34m^W[mkHyy[34m^W[mbpr5[34m^W[mk3k[34m^W[mtH[34m^W[mjHyy[34m^W[mbpr6[34m^W[mtHyy[34m^W[mbpr7: | |
:" TEST horizontal scrolling | |
:set scrollopt+=hor | |
gg"zyyG"zpG[34m^W[mt015zly$[34m^W[mbp"zpG[34m^W[mky$[34m^W[mbp"zpG: | |
[34m^W[mk10jH7zhg0y$[34m^W[mbp"zpG[34m^W[mtHg0y$[34m^W[mbp"zpG: | |
:set scrollopt-=hor | |
:" ****** tests using two different buffers ***** | |
[34m^W[mt[34m^W[mj: | |
:close | |
[34m^W[mt: | |
:set noscrollbind | |
:/^start of window 2$/,/^end of window 2$/y | |
:new | |
[34m^W[mt[34m^W[mj4"zpGp:[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[2;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 72 lines, 1498 characters written[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[3;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[27m[m[H[2J[1;1H[34m^W[mk10jH7zhg0y$[34m^W[mbp"zpG[34m^W[mtHg0y$[34m^W[mbp"zpG: | |
:set scrollopt-=hor | |
:" TEST syncbind | |
[34m^W[mt:set noscb | |
ggL[34m^W[mj:set noscb | |
ggL:set scb | |
[34m^W[mt:set scb | |
G[34m^W[mjG:syncbind | |
Hk[34m^W[mtH[34m^W[mjHyy[34m^W[mbp[34m^W[mtyy[34m^W[mbp: | |
[34m^W[mt:set noscb | |
ggL[34m^W[mj:set noscb | |
ggL:set scb | |
[34m^W[mt:set scb | |
[34m^W[mtG[34m^W[mjG[34m^W[mt:syncbind | |
Hk[34m^W[mjH[34m^W[mtHyy[34m^W[mbp[34m^W[mt[34m^W[mjyy[34m^W[mbp: | |
[34m^W[mtH3k[34m^W[mjH[34m^W[mtHyy[34m^W[mbp[34m^W[mt[34m^W[mjyy[34m^W[mbp: | |
:" ***** done with tests ***** | |
:w! test.out[13C" Write contents of this file | |
:qa! | |
ENDTEST | |
start of window 1 | |
. line 01 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 01 | |
. line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02 | |
. line 03 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 03 | |
. line 04 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 04 | |
. line 05 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05 | |
. line 06 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06 | |
. line 07 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 07 | |
. line 08 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 08 | |
. line 09 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 09 | |
. line 10 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 10 | |
. line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11 | |
. line 12 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 12 | |
. line 13 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 13 | |
. line 14 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 14 | |
. line 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 15 | |
end of window 1[20;1H[?12l[?25h | |
[?25l[41;1H:so! Xdotest | |
[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset noscrollbind | |
[?25l[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset scrollopt=ver,jump | |
[?25l[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset scrolloff=2 | |
[?25l[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nowrap | |
[?25l[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset noequalalways | |
[?25l[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset splitbelow | |
[?25l[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" TEST using two windows open to one buffer, one extra empty window | |
[?25l[21;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hsplit | |
[?25l[1;1HggL:set scb[1;12H[K[2;1H[34m^W[mt:set scb[2;12H[K[3;1H[34m^W[mtG[34m^W[mjG[34m^W[mt:syncbind | |
Hk[34m^W[mjH[34m^W[mtHyy[34m^W[mbp[34m^W[mt[34m^W[mjyy[34m^W[mbp: | |
[34m^W[mtH3k[34m^W[mjH[34m^W[mtHyy[34m^W[mbp[34m^W[mt[34m^W[mjyy[34m^W[mbp: | |
:" ***** done with tests ***** | |
:w! test.out[13C" Write contents of this file | |
:qa![8;5H[K[9;1HENDTEST[9;8H[K[10;1H[K[11;1H[K[12;1Hstart of window 1 | |
. line 01 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 01 | |
. line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02 | |
. line 03 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 03 | |
. line 04 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 04 | |
. line 05 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05 | |
. line 06 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06[18;51H[K[19;1H. line 07 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 07 | |
[7mtest37.in [m[21;1HggL:set scb | |
[34m^W[mt:set scb | |
[34m^W[mtG[34m^W[mjG[34m^W[mt:syncbind | |
Hk[34m^W[mjH[34m^W[mtHyy[34m^W[mbp[34m^W[mt[34m^W[mjyy[34m^W[mbp:[24;30H[K[25;1H[34m^W[mtH3k[34m^W[mjH[34m^W[mtHyy[34m^W[mbp[34m^W[mt[34m^W[mjyy[34m^W[mbp:[25;34H[K[26;1H:" ***** done with tests *****[26;31H[K[27;1H:w! test.out " Write contents of this file | |
:qa![28;5H[K[29;1HENDTEST[29;8H[K[30;1H[K[31;1H[K[32;1Hstart of window 1[32;18H[K[33;8H01[38C01[34;8H02[38C02[35;8H03[38C03[36;8H04[38C04[37;8H05[38C05[38;8H06[38C06 | |
. line 07 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 07 | |
[1m[7mtest37.in [30;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hnew | |
[?25l[21;1H:" ***** done with tests ***** | |
:w! test.out[13C" Write contents of this file | |
:qa![23;5H[K[24;1HENDTEST[24;8H[K[25;1H[K[26;1H[K[27;1Hstart of window 1[27;26H[K[28;1H. line 01 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 01 | |
. line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02 | |
[7mtest37.in [m[32;1H[1m[34m~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [m[40;1H[1m[7m[No Name] [31;1H[?12l[?25h[20;1Htest37.in [m[40;1H[7m[No Name][m[1m[7m [m[7m [10;1H[?25l[m[41;1H[K[41;1H:[?12l[?25h[?25l[10;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hresize 8 | |
[?25l[1;1H:" ***** done with tests ***** | |
:w! test.out[13C" Write contents of this file | |
:qa![3;5H[K[4;1HENDTEST[4;8H[K[5;1H[K[6;1H[K[7;1Hstart of window 1[7;26H[K[8;1H. line 01 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 01 | |
[1m[7mtest37.in [m[10;1HggL:set scb | |
[34m^W[mt:set scb | |
[34m^W[mtG[34m^W[mjG[34m^W[mt:syncbind | |
Hk[34m^W[mjH[34m^W[mtHyy[34m^W[mbp[34m^W[mt[34m^W[mjyy[34m^W[mbp:[13;30H[K[14;1H[34m^W[mtH3k[34m^W[mjH[34m^W[mtHyy[34m^W[mbp[34m^W[mt[34m^W[mjyy[34m^W[mbp:[14;34H[K[15;1H:" ***** done with tests *****[15;31H[K[16;1H:w! test.out " Write contents of this file | |
:qa![17;5H[K[18;1HENDTEST[18;8H[K[19;1H[K[20;1H[K[21;1Hstart of window 1[21;18H[K[22;1H. line 01 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 01[22;51H[K[23;1H. line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02 | |
. line 03 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 03 | |
. line 04 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 04 | |
. line 05 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05 | |
. line 06 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06[28;9H7[39C7[29;9H8[39C8[5;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^start of window 1$/ | |
[?25l[41;21H[K[41;1H[1;8r[8;1H | |
[1;41r[8;1H. line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02[41;1H[K[6;1H[?12l[?25h[?25l[1;8r[1;1H[3M[1;41r[6;1H. line 03 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 03 | |
. line 04 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 04 | |
. line 05 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05[3;1H[?12l[?25h[?25l[41;1H:[?12l[?25h[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset scrollbind | |
[?25l[3;1H[?12l[?25h[9;1H[7mtest37.in[m[1m[7m [m[7m [m[30;1H[1m[7mtest37.in [19;1H[?25l[m[41;1H[K[41;1H:[?12l[?25h[?25l[19;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hresize 7 | |
[?25l[10;1H:w! test.out[13C" Write contents of this file | |
:qa![11;5H[K[12;1HENDTEST[12;8H[K[13;1H[K[14;1H[K[15;1Hstart of window 1[15;18H[K[16;1H. line 01 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 01[16;51H[K[17;1H[1m[7mtest37.in [m[18;1H[K[19;1H[1m[34m~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [13;1H[?12l[?25h[?25l[m[41;1H[K[41;1H/[?12l[?25h^start of window 2$/ | |
[?25l[41;21H[K[41;1H[10;1Hend of window 1[10;26H[K[11;1H[K[12;1H[K[13;1Hstart of window 2 | |
. line 01 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 01 | |
. line 02 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 02[16;9H3 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 03[13;1H[?12l[?25h[?25l[10;16r[16;1H | |
[1;41r[16;1H. line 04 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 04[41;1H[K[12;1H[?12l[?25h[?25l[41;1H:[?12l[?25h[?25l[12;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset scrollbind | |
[?25l[12;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" -- start of tests -- | |
[?25l[12;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" TEST scrolling down | |
[?25l[12;1H[?12l[?25h | |
[?25l[1;8r[1;1H[5M[1;41r[4;1H. line 06 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06 | |
. line 07 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 07 | |
. line 08 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 08 | |
. line 09 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 09 | |
. line 10 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 10[10;16r[10;1H[5M[1;41r[12;1H. line 05 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 05 | |
. line 06 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 06 | |
. line 07 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 07 | |
. line 08 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 08 | |
. line 09 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 09[41;1H[K[14;1H[?12l[?25h[12;1H[17;1H[7mtest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [18;1H[?25l[m | |
. line 05 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 05[19;50H[K[40;11H[1m[7m[+][19;1H[?12l[?25h[?25l[m0[?12l[?25h[9;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[9;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [19;1H[?25l[m | |
. line 05 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05[20;50H[K[20;1H[?12l[?25h[?25l1[?12l[?25h[9;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H | |
[?25l[1;8r[m[1;1H[6M[1;41r[3;1H. line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11 | |
. line 12 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 12 | |
. line 13 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 13 | |
. line 14 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 14 | |
. line 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 15 | |
end of window 1[10;16r[10;1H[6M[1;41r[11;1H. line 10 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 10 | |
. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11 | |
. line 12 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 12 | |
. line 13 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 13 | |
. line 14 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 14 | |
. line 15 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 15[6;1H[?12l[?25h[3;1H[9;1H[7mtest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [20;1H[?25l[m | |
. line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11[21;50H[K[21;1H[?12l[?25h[?25l2[?12l[?25h[17;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [12;1H[17;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [21;1H[?25l[m | |
. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11[22;50H[K[22;1H[?12l[?25h[?25l3[?12l[?25h[?25l[41;1H:[?12l[?25h[?25l[22;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" TEST scrolling up | |
[?25l[22;1H[?12l[?25h[9;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[?25l[1;8r[m[1;1H[5L[1;41r[1;1H. line 04 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 04 | |
. line 05 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05 | |
. line 06 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06 | |
. line 07 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 07 | |
. line 08 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 08[10;9H4[39C4[11;8H05[38C05[12;8H06[38C06[13;8H07[38C07[14;8H08[38C08[15;8H09[38C09[16;9H0[39C0[41;1H[K[4;1H[?12l[?25h[9;1H[7mtest37.in[m[1m[7m [m[7m [m[17;1H[1m[7mtest37.in [14;1H[12;1H[9;1Htest37.in [m[17;1H[7mtest37.in[m[1m[7m [m[7m [4;1H[3;1H[9;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [22;1H[?25l[m | |
. line 06 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06[23;50H[K[23;1H[?12l[?25h[?25l4[?12l[?25h[17;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [12;1H[17;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [23;1H[?25l[m | |
. line 06 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 06[24;50H[K[24;1H[?12l[?25h[?25l5[?12l[?25h[17;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [12;1H[?25l[1;8r[m[1;1H[4L[1;41r[1;1Hstart of window 1 | |
. line 01 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 01 | |
. line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02 | |
. line 03 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 03[10;16r[10;1H[4L[1;41r[10;1Hstart of window 2 | |
. line 01 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 01 | |
. line 02 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 02 | |
. line 03 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 03 | |
[?12l[?25h[9;1H[1m[7mtest37.in [m[17;1H[7mtest37.in[m[1m[7m [m[7m [6;1H[3;1H[9;1Htest37.in[m[1m[7m [m[7m [m[17;1H[1m[7mtest37.in [13;1H[12;1H[m[17;1H[7mtest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [24;1H[?25l[m | |
. line 02 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 02[25;50H[K[25;1H[?12l[?25h[?25l6[?12l[?25h[9;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[9;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [25;1H[?25l[m | |
. line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02[26;50H[K[26;1H[?12l[?25h[?25l7[?12l[?25h[?25l[41;1H:[?12l[?25h[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" TEST horizontal scrolling | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset scrollopt+=hor | |
[?25l[26;1H[?12l[?25h[18;1H[26;1H[?25l[27;1H[K[27;1H[?12l[?25h[9;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[?25l[m[1;1H 1[1;3H[K[2;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 01[2;35H[K[3;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02[3;35H[K[4;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 03[4;35H[K[5;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 04[5;35H[K[6;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05[6;35H[K[7;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06[7;35H[K[8;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 07[8;35H[K[10;1H 2[10;3H[K[11;1HUTSRQPONMLKJIHGREDCBA9876543210 01[11;35H[K[12;1HUTSRQPONMLKJIHGREDCBA9876543210 02[12;35H[K[13;1HUTSRQPONMLKJIHGREDCBA9876543210 03[13;35H[K[14;1HUTSRQPONMLKJIHGREDCBA9876543210 04[14;35H[K[15;1HUTSRQPONMLKJIHGREDCBA9876543210 05[15;35H[K[16;1HUTSRQPONMLKJIHGREDCBA9876543210 06[16;35H[K[3;1H[?12l[?25h[9;1H[7mtest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [27;1H[?25l[m56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02[?12l[?25h[?25l[28;1H[K[28;1H[?12l[?25h[17;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [12;1H[17;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [28;1H[?25l[mUTSRQPONMLKJIHGREDCBA9876543210 02[?12l[?25h[?25l[29;1H[K[29;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[?25l[29;1H[?12l[?25h[17;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [12;1H[?25l[m[1;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 09[2;33H10[3;33H11[4;33H12[5;33H13[6;33H14[7;33H15[8;1H[K[10;1HUTSRQPONMLKJIHGREDCBA9876543210 09[11;33H10[12;33H11[13;33H12[14;33H13[15;33H14[16;33H15[13;1H[?12l[?25h[?25l[1;1H. line 09 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 09 | |
. line 10 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 10 | |
. line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11 | |
. line 12 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 12 | |
. line 13 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 13 | |
. line 14 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 14 | |
. line 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 15 | |
end of window 1 | |
. line 09 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 09 | |
. line 10 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 10 | |
. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11 | |
. line 12 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 12 | |
. line 13 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 13 | |
. line 14 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 14 | |
. line 15 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 15[12;1H[?12l[?25h[?25l[?12l[?25h[17;1H[7mtest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [29;1H[?25l[m. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11[?12l[?25h[?25l[30;1H[K[30;1H[?12l[?25h[9;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;16H | |
[9;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [30;1H[?25l[m. line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11[?12l[?25h[?25l[31;1H[K[31;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[?25l[31;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset scrollopt-=hor | |
[?25l[31;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" ****** tests using two different buffers ***** | |
[?25l[31;1H[?12l[?25h[9;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[9;1Htest37.in[m[1m[7m [m[7m [m[17;1H[1m[7mtest37.in [12;1H[?25l[m[41;1H[K[41;1H:[?12l[?25h[?25l[12;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hclose | |
[?25l[9;1H[K[10;1H[K[11;1Hstart of window 2[11;18H[K[12;8H0[39C0[13;8H0[39C0[14;8H0[39C0[15;8H0[39C0[16;8H0[39C0[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset noscrollbind | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^start of window 2$/,/^end of window 2$/y | |
[?25l18 lines yanked[41;16H[K[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hnew | |
[?25l[8;1H[7mtest37.in [m[10;1H[1m[34m~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [m[17;1H[1m[7m[No Name] [9;1H[?12l[?25h[8;1Htest37.in [m[17;1H[7m[No Name][m[1m[7m [m[7m [3;1H[8;1Htest37.in[m[1m[7m [m[7m [m[17;1H[1m[7m[No Name] [9;1H[?25l[m[41;1H4 more lines[10;1H[K[11;1H[K[12;1H[K[13;1H[K[17;11H[1m[7m[+][10;1H[?12l[?25h | |
[?25l[m[41;1H18 more lines[14;1Hstart of window 2[14;18H[K[15;1H. line 01 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 01[15;50H[K[16;1H. line 02 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 02[16;50H[K[14;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[?25l[14;1H[?12l[?25h[8;1H[1m[7mtest37.in [m[17;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[?25l[m[41;1H[K[41;1H/[?12l[?25h^start of window 1$/ | |
[?25l[41;21H[K[41;1H[31msearch hit BOTTOM, continuing at TOP[m[1;1HENDTEST[1;8H[K[2;1H[K[3;1H[K[4;1Hstart of window 1[4;18H[K[5;8H01[38C01[6;8H02[38C02[7;8H03[38C03[4;1H[?12l[?25h[?25l[1;7r[7;1H | |
[1;41r[7;1H. line 04 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 04[41;1H[K[3;1H[?12l[?25h[?25l[41;1H:[?12l[?25h[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset scrollbind | |
[?25l[3;1H[?12l[?25h[8;1H[7mtest37.in[m[1m[7m [m[7m [m[17;1H[1m[7m[No Name] [+] [14;1H[?25l[m[41;1H[K[41;1H:[?12l[?25h[?25l[14;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^start of window 2$/ | |
[?25l[41;21H[K[41;1H[31msearch hit BOTTOM, continuing at TOP[14;1H[?12l[?25h[?25l[9;16r[m[9;1H[3M[1;41r[14;1H. line 03 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 03 | |
. line 04 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 04 | |
. line 05 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 05[41;1H[K[11;1H[?12l[?25h[?25l[41;1H:[?12l[?25h[?25l[11;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset scrollbind | |
[?25l[11;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" -- start of tests -- | |
[?25l[11;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" TEST scrolling down | |
[?25l[11;1H[?12l[?25h | |
[?25l[1;7r[1;1H[5M[1;41r[3;1H. line 05 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05 | |
. line 06 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06 | |
. line 07 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 07 | |
. line 08 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 08 | |
. line 09 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 09[9;16r[9;1H[5M[1;41r[12;1H. line 06 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 06 | |
. line 07 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 07 | |
. line 08 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 08 | |
. line 09 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 09 | |
. line 10 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 10[41;1H[K[14;1H[?12l[?25h[11;1H[17;1H[7m[No Name] [+][m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [31;1H[?25l[m | |
. line 05 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 05[32;50H[K[32;1H[?12l[?25h[?25l0[?12l[?25h[8;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[8;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [32;1H[?25l[m | |
. line 05 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05[33;50H[K[33;1H[?12l[?25h[?25l1[?12l[?25h[8;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H | |
[?25l[1;7r[m[1;1H[6M[1;41r[2;1H. line 10 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 10 | |
. line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11 | |
. line 12 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 12 | |
. line 13 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 13 | |
. line 14 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 14 | |
. line 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 15[9;16r[9;1H[6M[1;41r[11;1H. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11 | |
. line 12 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 12 | |
. line 13 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 13 | |
. line 14 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 14 | |
. line 15 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 15 | |
. line 16 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 16[5;1H[?12l[?25h[3;1H[8;1H[7mtest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [33;1H[?25l[m | |
. line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11[34;50H[K[34;1H[?12l[?25h[?25l2[?12l[?25h[17;1H[1m[7m[No Name] [+] [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [11;1H[17;1H[No Name] [+][m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [34;1H[?25l[m | |
. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11[35;50H[K[35;1H[?12l[?25h[?25l3[?12l[?25h[?25l[41;1H:[?12l[?25h[?25l[35;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" TEST scrolling up | |
[?25l[35;1H[?12l[?25h[8;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[?25l[m[1;9H4[39C4[2;8H05[38C05[3;8H06[38C06[4;8H07[38C07[5;8H08[38C08[6;8H09[38C09[7;9H0[39C0[9;16r[9;1H[5L[1;41r[9;1H. line 04 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 04 | |
. line 05 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 05 | |
. line 06 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 06 | |
. line 07 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 07 | |
. line 08 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 08[41;1H[K[4;1H[?12l[?25h[8;1H[7mtest37.in[m[1m[7m [m[7m [m[17;1H[1m[7m[No Name] [+] [14;1H[11;1H[8;1Htest37.in [m[17;1H[7m[No Name] [+][m[1m[7m [m[7m [4;1H[3;1H[8;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [35;1H[?25l[m | |
. line 06 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06[36;50H[K[36;1H[?12l[?25h[?25l4[?12l[?25h[17;1H[1m[7m[No Name] [+] [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [11;1H[17;1H[No Name] [+][m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [36;1H[?25l[m | |
. line 06 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 06[37;50H[K[37;1H[?12l[?25h[?25l5[?12l[?25h[17;1H[1m[7m[No Name] [+] [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [11;1H[?25l[1;7r[m[1;1H[4L[1;41r[1;1Hstart of window 1 | |
. line 01 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 01 | |
. line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02 | |
. line 03 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 03[9;16r[9;1H[4L[1;41r[9;1Hstart of window 2 | |
. line 01 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 01 | |
. line 02 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 02 | |
. line 03 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 03 | |
[?12l[?25h[8;1H[1m[7mtest37.in [m[17;1H[7m[No Name] [+][m[1m[7m [m[7m [5;1H[3;1H[8;1Htest37.in[m[1m[7m [m[7m [m[17;1H[1m[7m[No Name] [+] [12;1H[11;1H[m[17;1H[7m[No Name] [+][m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [37;1H[?25l[m | |
. line 02 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 02[38;50H[K[38;1H[?12l[?25h[?25l6[?12l[?25h[8;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[8;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [38;1H[?25l[m | |
. line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02[39;50H[K[39;1H[?12l[?25h[?25l7[?12l[?25h[?25l | |
:[?12l[?25h[?25l[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" TEST horizontal scrolling | |
[?25l[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset scrollopt+=hor | |
[?25l[39;1H[?12l[?25h[18;1H[39;1H[?25l[18;39r[39;1H | |
[1;41r[41;1H[K[39;1H[?12l[?25h[8;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[?25l[m[1;1H 1[1;3H[K[2;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 01[2;35H[K[3;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02[3;35H[K[4;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 03[4;35H[K[5;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 04[5;35H[K[6;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05[6;35H[K[7;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06[7;35H[K[9;1H 2[9;3H[K[10;1HUTSRQPONMLKJIHGREDCBA9876543210 01[10;35H[K[11;1HUTSRQPONMLKJIHGREDCBA9876543210 02[11;35H[K[12;1HUTSRQPONMLKJIHGREDCBA9876543210 03[12;35H[K[13;1HUTSRQPONMLKJIHGREDCBA9876543210 04[13;35H[K[14;1HUTSRQPONMLKJIHGREDCBA9876543210 05[14;35H[K[15;1HUTSRQPONMLKJIHGREDCBA9876543210 06[15;35H[K[16;1HUTSRQPONMLKJIHGREDCBA9876543210 07[16;35H[K[3;1H[?12l[?25h[8;1H[7mtest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [39;1H[?25l[m56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02[?12l[?25h[?25l[18;39r[39;1H | |
[1;41r[39;1H[?12l[?25h[17;1H[1m[7m[No Name] [+] [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [11;1H[17;1H[No Name] [+][m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [39;1H[?25l[mUTSRQPONMLKJIHGREDCBA9876543210 02[?12l[?25h[?25l[18;39r[39;1H | |
[1;41r[39;1H[?12l[?25h[?25l | |
:[?12l[?25h[?25l[39;1H[?12l[?25h[17;1H[1m[7m[No Name] [+] [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [11;1H[?25l[m[1;1H56789ABCDEFGHIJKLMNOPQRSTUVWXYZ 09[2;33H10[3;33H11[4;33H12[5;33H13[6;33H14[7;33H15 | |
UTSRQPONMLKJIHGREDCBA9876543210 09[10;33H10[11;33H11[12;33H12[13;33H13[14;33H14[15;33H15[16;33H16[12;1H[?12l[?25h[?25l[1;1H. line 09 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 09 | |
. line 10 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 10 | |
. line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11 | |
. line 12 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 12 | |
. line 13 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 13 | |
. line 14 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 14 | |
. line 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 15 | |
. line 09 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 09 | |
. line 10 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 10 | |
. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11 | |
. line 12 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 12 | |
. line 13 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 13 | |
. line 14 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 14 | |
. line 15 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 15 | |
. line 16 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 16[11;1H[?12l[?25h[?25l[?12l[?25h[17;1H[7m[No Name] [+][m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [39;1H[?25l[m. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11[?12l[?25h[?25l[18;39r[39;1H | |
[1;41r[41;1H[K[39;1H[?12l[?25h[8;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;16H | |
[8;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [39;1H[?25l[m. line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11[?12l[?25h[?25l[18;39r[39;1H | |
[1;41r[39;1H[?12l[?25h[?25l | |
:[?12l[?25h[?25l[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset scrollopt-=hor | |
[?25l[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" TEST syncbind | |
[?25l[39;1H[?12l[?25h[8;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[?25l[m[41;1H[K[41;1H:[?12l[?25hset noscb | |
[?25l[3;1H[?12l[?25h[?25l[1;1HTest for 'scrollbind'. <[email protected]> Do not add a line below! | |
STARTTEST[2;11H[K[3;1H:so small.vim[3;14H[K[4;1H:set noscrollbind[4;18H[K[5;1H:set scrollopt=ver,jump[5;24H[K[6;1H:set scrolloff=2[6;17H[K[7;1H:set nowrap[7;12H[K[1;1H[?12l[?25h[5;1H | |
[7mtest37.in[m[1m[7m [m[7m [m[17;1H[1m[7m[No Name] [+] [11;1H[?25l[m[41;1H[K[41;1H:[?12l[?25hset noscb | |
[?25l[11;1H[?12l[?25h[?25l[9;1H[K[10;1H[K[11;1H[K[12;1H[K[13;1H[K[14;1Hstart of window 2[14;18H[K[15;8H01[38C01[16;8H02[38C02[9;1H[?12l[?25h[14;1H[?25l[41;1H[K[41;1H:[?12l[?25hset scb | |
[?25l[14;1H[?12l[?25h[8;1H[1m[7mtest37.in [m[17;1H[7m[No Name] [+][m[1m[7m [m[7m [5;1H[?25l[m[41;1H[K[41;1H:[?12l[?25hset scb | |
[?25l[5;1H[?12l[?25h[?25l[1;1H. line 13 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 13[1;50H[K[2;1H. line 14 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 14 | |
. line 15 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 15 | |
. line 16 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 16 | |
end of window 2[5;16H[K[6;1H[K[7;1Hend of test37.in (please don't delete this line) | |
end of window 2 | |
[1m[34m~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [7;1H[?12l[?25h[?25l[m[1;1Hzt:[1;4H[K[2;1H:set scrollbind[2;16H[K[3;1H:" -- start of tests --[3;24H[K[4;1H:" TEST scrolling down[4;23H[K[5;1HL5jHyy[34m^W[mbpr0[34m^W[mtHyy[34m^W[mbpr1[34m^W[mtL6jHyy[34m^W[mbpr2[34m^W[mkHyy[34m^W[mbpr3: | |
:" TEST scrolling up | |
[34m^W[mtH4k[34m^W[mjH[34m^W[mtHyy[34m^W[mbpr4[34m^W[mkHyy[34m^W[mbpr5[34m^W[mk3k[34m^W[mtH[34m^W[mjHyy[34m^W[mbpr6[34m^W[mtHyy[34m^W[mbpr7: | |
[7mtest37.in[m[1m[7m [m[7m [9;16r[m[9;1H[2L[1;41r[9;1H. line 15 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 15 | |
. line 16 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 16[17;1H[1m[7m[No Name] [+] [m[41;1H[K[11;1H[?12l[?25h[?25l[41;1H:[?12l[?25hsyncbind | |
[?25l[11;1H[?12l[?25h[?25l[1;7r[1;1H[L[1;41r[1;1H/^start of window 2$/[9;16r[9;1H[L[1;41r[9;1H. line 14 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 14[41;1H[K[11;1H[?12l[?25h[8;1H[1m[7mtest37.in [m[17;1H[7m[No Name] [+][m[1m[7m [m[7m [5;1H[3;1H[8;1Htest37.in[m[1m[7m [m[7m [m[17;1H[1m[7m[No Name] [+] [11;1H[m[17;1H[7m[No Name] [+][m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [39;1H[?25l[18;39r[m[39;1H | |
[1;41r[39;1H. line 16 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 16 | |
[?12l[?25h[8;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[8;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [39;1H[?25l[18;39r[m[39;1H | |
[1;41r[39;1H:set scrollbind | |
[?12l[?25h[?25l | |
:[?12l[?25h[?25l[39;1H[?12l[?25h[8;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[?25l[m[41;1H[K[41;1H:[?12l[?25hset noscb | |
[?25l[3;1H[?12l[?25h[?25l[1;1HTest for 'scrollbind'. <[email protected]> Do not add a line below! | |
STARTTEST | |
:so small.vim[3;14H[K[4;2Hset noscrollbind[4;18H[K[5;2Hset scrollopt=ver,jump | |
:set scrolloff=2[6;17H[K[7;2Hset nowrap[7;12H[K[1;1H[?12l[?25h[5;1H | |
[7mtest37.in[m[1m[7m [m[7m [m[17;1H[1m[7m[No Name] [+] [11;1H[?25l[m[41;1H[K[41;1H:[?12l[?25hset noscb | |
[?25l[11;1H[?12l[?25h[?25l[9;1H[K[10;1H[K[11;1H[K[12;1H[K[13;1H[K[14;1Hstart of window 2[14;18H[K[15;1H. line 01 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 01[15;50H[K[16;1H. line 02 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 02[16;50H[K[9;1H[?12l[?25h[14;1H[?25l[41;1H[K[41;1H:[?12l[?25hset scb | |
[?25l[14;1H[?12l[?25h[8;1H[1m[7mtest37.in [m[17;1H[7m[No Name] [+][m[1m[7m [m[7m [5;1H[?25l[m[41;1H[K[41;1H:[?12l[?25hset scb | |
[?25l[5;1H[?12l[?25h[?25l[1;1H. line 13 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 13[1;50H[K[2;1H. line 14 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 14 | |
. line 15 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 15 | |
. line 16 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 16 | |
end of window 2[5;16H[K[6;1H[K[7;1Hend of test37.in (please don't delete this line) | |
end of window 2 | |
[1m[34m~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [7;1H[?12l[?25h[?25l[m[1;1Hzt:[1;4H[K[2;1H:set scrollbind[2;16H[K[3;1H:" -- start of tests --[3;24H[K[4;1H:" TEST scrolling down[4;23H[K[5;1HL5jHyy[34m^W[mbpr0[34m^W[mtHyy[34m^W[mbpr1[34m^W[mtL6jHyy[34m^W[mbpr2[34m^W[mkHyy[34m^W[mbpr3: | |
:" TEST scrolling up | |
[34m^W[mtH4k[34m^W[mjH[34m^W[mtHyy[34m^W[mbpr4[34m^W[mkHyy[34m^W[mbpr5[34m^W[mk3k[34m^W[mtH[34m^W[mjHyy[34m^W[mbpr6[34m^W[mtHyy[34m^W[mbpr7: | |
[7mtest37.in[m[1m[7m [m[7m [9;16r[m[9;1H[2L[1;41r[9;1H. line 15 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 15 | |
. line 16 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 16[17;1H[1m[7m[No Name] [+] [m[41;1H[K[11;1H[?12l[?25h[8;1H[1m[7mtest37.in [m[17;1H[7m[No Name] [+][m[1m[7m [m[7m [5;1H[?25l[41;1H[m:[?12l[?25hsyncbind | |
[?25l[5;1H[?12l[?25h[3;1H[?25l[1;7r[1;1H[L[1;41r[1;1H/^start of window 2$/[9;16r[9;1H[2L[1;41r[9;1H. line 13 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 13 | |
. line 14 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 14[41;1H[K[3;1H[?12l[?25h[?25l[1;7r[1;1H[L[1;41r[1;1H:resize 7[8;1H[7mtest37.in[m[1m[7m [m[7m [m[17;1H[1m[7m[No Name] [+] [12;1H[?12l[?25h[11;1H[8;1Htest37.in [m[17;1H[7m[No Name] [+][m[1m[7m [m[7m [4;1H[3;1H[8;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [39;1H[?25l[18;39r[m[39;1H | |
[1;41r[39;1Hzt: | |
[?12l[?25h[8;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[8;1Htest37.in[m[1m[7m [m[7m [m[17;1H[1m[7m[No Name] [+] [11;1H[m[17;1H[7m[No Name] [+][m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [39;1H[?25l[18;39r[m[39;1H | |
[1;41r[39;1H. line 15 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 15 | |
[?12l[?25h[?25l | |
:[?12l[?25h[?25l[39;1H[?12l[?25h[8;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[?25l[1;7r[m[1;1H[4L[1;41r[1;1H/^start of window 1$/ | |
zt: | |
:set scrollbind | |
[34m^W[mj:[9;16r[9;1H[4L[1;41r[9;1H. line 09 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 09 | |
. line 10 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 10 | |
. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11 | |
. line 12 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 12[41;1H[K[4;1H[?12l[?25h[8;1H[7mtest37.in[m[1m[7m [m[7m [m[17;1H[1m[7m[No Name] [+] [14;1H[11;1H[8;1Htest37.in [m[17;1H[7m[No Name] [+][m[1m[7m [m[7m [4;1H[3;1H[8;1Htest37.in[m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [39;1H[?25l[18;39r[m[39;1H | |
[1;41r[39;1H:set scrollbind | |
[?12l[?25h[8;1H[1m[7mtest37.in [m[40;1H[7m[No Name] [+][m[1m[7m [m[7m [3;1H[8;1Htest37.in[m[1m[7m [m[7m [m[17;1H[1m[7m[No Name] [+] [11;1H[m[17;1H[7m[No Name] [+][m[1m[7m [m[7m [m[40;1H[1m[7m[No Name] [+] [39;1H[?25l[18;39r[m[39;1H | |
[1;41r[39;1H. line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11 | |
[?12l[?25h[?25l | |
:[?12l[?25h[?25l[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" ***** done with tests ***** | |
[?25l[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! test.out " Write contents of this file | |
[?25l"test.out" [41;12H[K[41;12H[New File] 33 lines, 1329 characters written[40;1H[1m[7mtest.out] [39;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test38.failed test.ok test.out X* viminfo | |
cp test38.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test38.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test38.in" 35 lines, 455 characters[2;1HTest Virtual replace mode. | |
STARTTEST | |
:so small.vim | |
:" make sure that backspace works, no matter what termcap is used | |
:set t_kD=[34m^V[mx7f t_kb=[34m^V[mx08 | |
ggdGa | |
abcdefghi | |
jk lmn | |
opq rst | |
[34m^D[muvwxyz | |
[34m^[[mgg:set ai | |
:set bs=2 | |
gR0[34m^D[m 1 | |
A | |
BCDEFGHIJ[18;9HKL | |
MNO | |
PQR[34m^[[mG:ka | |
o0[34m^D[m | |
abcdefghi | |
jk lmn | |
opq rst | |
[34m^D[muvwxyz | |
[34m^[[m'ajgR0[34m^D[m 1 | |
A | |
BCDEFGHIJ[29;9HKL | |
MNO | |
PQR[34m^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^[[m:$ | |
iab cdefghi jkl[34m^[[m0gRAB......CDEFGHI.J[34m^[[mo[34m^[[m: | |
iabcdefghijklmnopqrst[34m^[[m0gRAB IJKLMNO QR[34m^[[m:wq! test.out | |
ENDTEST | |
[1m[34m~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[4;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 29 lines, 407 characters written[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[5;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[34;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[35;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[35;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" make sure that backspace works, no matter what termcap is used | |
[?25l[35;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset t_kD=^[34m^?[m t_kb=^[34m^H | |
[?25l[27m[m[H[2J[2;1HTest Virtual replace mode. | |
STARTTEST | |
:so small.vim | |
:" make sure that backspace works, no matter what termcap is used | |
:set t_kD=[34m^V[mx7f t_kb=[34m^V[mx08 | |
ggdGa | |
abcdefghi | |
jk lmn | |
opq rst | |
[34m^D[muvwxyz | |
[34m^[[mgg:set ai | |
:set bs=2 | |
gR0[34m^D[m 1 | |
A | |
BCDEFGHIJ[18;9HKL | |
MNO | |
PQR[34m^[[mG:ka | |
o0[34m^D[m | |
abcdefghi | |
jk lmn | |
opq rst | |
[34m^D[muvwxyz | |
[34m^[[m'ajgR0[34m^D[m 1 | |
A | |
BCDEFGHIJ[29;9HKL | |
MNO | |
PQR[34m^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^[[m:$ | |
iab cdefghi jkl[34m^[[m0gRAB......CDEFGHI.J[34m^[[mo[34m^[[m: | |
iabcdefghijklmnopqrst[34m^[[m0gRAB IJKLMNO QR[34m^[[m:wq! test.out | |
ENDTEST | |
[1m[34m~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [35;1H[?12l[?25h[1;1H[?25l | |
~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [m[41;1H--No lines in buffer--[1;1H[?12l[?25h[?25l | |
abcdefghi[2;10H[K[3;1Hjk lmn[3;12H[K[4;1H opq rst[4;12H[K[5;1Huvwxyz[5;7H[K[6;1H[K[6;1H[?12l[?25h[1;1H[?25l[41;1H[K[41;1H:[?12l[?25hset ai | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset bs=2 | |
[?25l[1;1H[?12l[?25h[?25l 1 | |
A[2;3H[K[3;1H BCDEFGHIJ[3;11H[K[4;5H KL[4;11H[K[5;1H MNO[6;9HPQR[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hka | |
[?25l[6;9H[?12l[?25h[?25l[7;1H[K[8;1Habcdefghi[8;10H[K[9;1Hjk lmn[9;12H[K[10;1H opq rst[10;12H[K[11;1Huvwxyz[11;7H[K[12;1H[K[12;1H[?12l[?25h[6;9H | |
[?25l 1[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$ | |
[?25l[12;1H[?12l[?25h[?25lab cdefghi jkl[?12l[?25h | |
[?25lAB......CDEFGHI.J[?12l[?25h[?25l[13;1H[K[13;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[?25l[13;1H[?12l[?25h[?25labcdefghijklmnopqrst[?12l[?25h | |
[?25lAB IJKLMNO QR[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hwq! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 13 lines, 107 characters written | |
[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test39.failed test.ok test.out X* viminfo | |
cp test39.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test39.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test39.in" 43 lines, 916 characters[2;1HTest Visual block mode commands | |
And test "U" in Visual mode, also on German sharp S. | |
STARTTEST | |
:so small.vim | |
:so mbyte.vim | |
:" This only works when 'encoding' is "latin1", don't depend on the environment | |
:set enc=latin1 | |
/^abcde | |
:" Test shift-right of a block | |
jllll[34m^V[mjj>wll[34m^V[mjlll> | |
:" Test shift-left of a block | |
G$hhhh[34m^V[mkk< | |
:" Test block-insert | |
Gkl[34m^V[mkkkIxyz[34m^[[m | |
:" Test block-replace | |
Gllll[34m^V[mkkklllrq | |
:" Test block-change | |
G$khhh[34m^V[mhhkkcmno[34m^[[m | |
:$-4,$w! test.out | |
:" gUe must uppercase a whole word, also when ߠchanges to SS | |
Gothe youtuࠥuu end[34m^[[mYpk0wgUe | |
:" gUfx must uppercase until x, inclusive. | |
O- you࠴uࠥxu -[34m^[[m0fogUfx | |
:" VU must uppercase a whole line | |
YpkVU | |
:" same, when it's the last line in the buffer | |
YPGi111[34m^[[mVUddP | |
:" Uppercase two lines | |
Oblah di | |
doh dut[34m^[[mVkUj | |
:" Uppercase part of two lines | |
ddppi333[34m^[[mk0i222[34m^[[mfyllvjfuUk | |
:/^the/,$w >> test.out | |
:qa! | |
ENDTEST | |
abcdefghijklm | |
abcdefghijklm[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[5;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 31 lines, 740 characters written[6;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[6;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[37;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[38;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[38;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso mbyte.vim | |
[?25l[38;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" This only works when 'encoding' is "latin1", don't depend on the environment | |
[?25l[38;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset enc=latin1 | |
[?25l[27m[m[H[2J[2;1HTest Visual block mode commands | |
And test "U" in Visual mode, also on German sharp S. | |
STARTTEST | |
:so small.vim | |
:so mbyte.vim | |
:" This only works when 'encoding' is "latin1", don't depend on the environment | |
:set enc=latin1 | |
/^abcde | |
:" Test shift-right of a block | |
jllll[34m^V[mjj>wll[34m^V[mjlll> | |
:" Test shift-left of a block | |
G$hhhh[34m^V[mkk< | |
:" Test block-insert | |
Gkl[34m^V[mkkkIxyz[34m^[[m | |
:" Test block-replace | |
Gllll[34m^V[mkkklllrq | |
:" Test block-change | |
G$khhh[34m^V[mhhkkcmno[34m^[[m | |
:$-4,$w! test.out | |
:" gUe must uppercase a whole word, also when ߠchanges to SS | |
Gothe youtuࠥuu end[34m^[[mYpk0wgUe | |
:" gUfx must uppercase until x, inclusive. | |
O- you࠴uࠥxu -[34m^[[m0fogUfx | |
:" VU must uppercase a whole line | |
YpkVU | |
:" same, when it's the last line in the buffer | |
YPGi111[34m^[[mVUddP | |
:" Uppercase two lines | |
Oblah di | |
doh dut[34m^[[mVkUj | |
:" Uppercase part of two lines | |
ddppi333[34m^[[mk0i222[34m^[[mfyllvjfuUk | |
:/^the/,$w >> test.out | |
:qa! | |
ENDTEST | |
abcdefghijklm | |
abcdefghijklm[38;1H[?12l[?25h[?25l | |
/[?12l[?25h^abcde | |
[?25l[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" Test shift-right of a block | |
[?25l[39;1H[?12l[?25h | |
abcd[?25l[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[39;5H[7me[m | |
abcdefghijklm[41;1H[K[40;5H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[39;5H[7me[m | |
abcdefghijklm | |
abcd[?12l[?25h[?25l | |
3 lines >ed 1 time[38;5H efghijklm | |
abcd efghijklm | |
abcd efghijklm[38;8H[?12l[?25h ef[?25l[?12l[?25h[?25l[7mg[39;15H[?12l[?25h[?25l[38;16Hh[39;15Hg[?12l[?25h[?25l[38;17Hi[39;16Hh[?12l[?25h[?25l[38;18Hj[39;17Hi[?12l[?25h[?25l[m[38;15H ghijklm[39;15H ghijklm[38;16H[?12l[?25h[39;16H[?25l[41;1H[K[41;1H:[?12l[?25h" Test shift-left of a block | |
[?25l[39;16H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Habcdefghijklm[41;1H[K[40;1H[?12l[?25h[12C[?25l[?12l[?25h[?25l[7mi[39;9H[?12l[?25h[?25l [38;9H[?12l[?25h[?25l[m | |
3 lines <ed 1 time[38;9Hef [39;9Hefghijklm[39;18H[K[40;9Hi[38;9H[?12l[?25h[39;9H[?25l[41;1H[K[41;1H:[?12l[?25h" Test block-insert | |
[?25l[39;9H[?12l[?25h | |
[39;1Ha[?25l[?12l[?25h[?25l[7mb[38;2H[?12l[?25h[?25lb[37;2H[?12l[?25h[?25lb[36;2H[?12l[?25h[?25l[m | |
ab | |
ab | |
ab[36;2Hxyzbcdefghijklm | |
axyzbcd | |
axyzbcd | |
axyzbcd[36;2H[?12l[?25h | |
a[?25l[41;1H[K[41;1H:[?12l[?25h" Test block-replace | |
[?25l[37;2H[?12l[?25h | |
abcd[?25l[?12l[?25h[?25l[7me[39;5H[?12l[?25h[?25lb[38;5H[?12l[?25h[?25lb[37;5H[?12l[?25h[?25lb[38;6Hc[39;6Hc[40;6Hf[37;6H[?12l[?25h[?25lc[38;7Hd[39;7Hd[40;7Hg[37;7H[?12l[?25h[?25ld[38;8H [39;8H [40;8Hh[37;8H[?12l[?25h[?25l[mqqqq | |
axyzqqqq | |
axyzqqqq | |
abcdqqqq[37;5H[?12l[?25h | |
axyz[?25l[41;1H[K[41;1H:[?12l[?25h" Test block-change | |
[?25l[38;5H[?12l[?25h | |
[12C[39;17H[?25l[?12l[?25h[?25l[7mj[?12l[?25h[?25li[?12l[?25h[?25l[38;12H [39;11Hghijkl[38;11H[?12l[?25h[?25l[37;13Hef[m[38;15H [39;11Hg[3Ckl[37;12H[?12l[?25h[?25lmno[38;12Hmno[39;12Hmno[37;14H[?12l[?25h[38;14H[?25l[41;1H[K[41;1H:[?12l[?25h$-4,$w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 5 lines, 108 characters written[38;14H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" gUe must uppercase a whole word, also when ߠchanges to SS | |
[?25l[38;14H[?12l[?25h | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Hthe youtuࠥuu end[41;1H[K[40;17H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hthe youtuࠥuu end | |
[?12l[?25h[39;1Hthe [?25lYOUTUSSEUU end | |
the [?12l[?25h | |
the [?25l | |
:[?12l[?25h" gUfx must uppercase until x, inclusive. | |
[?25l[40;5H[?12l[?25h[?25l | |
- you࠴uࠥxu -[40;15H[K[40;14H[?12l[?25h | |
- y[?25lOUSSTUSSEXu - | |
- y[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hthe youtuࠥuu end[41;1H[K[40;4H[?12l[?25h[?25l | |
:[?12l[?25h" VU must uppercase a whole line | |
[?25l[40;4H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hthe youtuࠥuu end[41;1H[K[40;1H[?12l[?25h[39;1H[?25lt[7mhe youtuࠥuu end | |
[?12l[?25h[?25l[mTHE YOUTUSSEUU END | |
[?12l[?25h | |
[?25l | |
:[?12l[?25h" same, when it's the last line in the buffer | |
[?25l[40;1H[?12l[?25h[?25l[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hthe youtuࠥuu end[41;1H[K[40;1H[?12l[?25h[?25l111the youtuࠥuu end | |
11[?12l[?25h[?25l | |
[7m11[m1[7mthe youtuࠥuu end | |
11[?12l[?25h[?25l[m | |
111THE YOUTUSSEUU END | |
[?12l[?25h[?25l[1m[34m~ [39;1H[?12l[?25h[?25l[m111THE YOUTUSSEUU END | |
the youtuࠥuu end[40;18H[K[39;1H[?12l[?25h | |
[?25l | |
:[?12l[?25h" Uppercase two lines | |
[?25l[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[39;1Hblah di[39;8H[K[40;1Hdoh dut[41;1H[K[40;7H[?12l[?25h[?25l | |
[7mdoh du[mt[7m [?12l[?25h[?25l[39;1Hblah d[mi[7m [40;7Ht[39;7H[?12l[?25h[?25l[m | |
BLAH DI[39;8H[K[40;1HDOH DUT[40;8H[K[39;7H[?12l[?25h[40;7H[?25l[1;40r[40;1H | |
[1;41r[40;1Hthe youtuࠥuu end[40;7H[?12l[?25h[?25l | |
:[?12l[?25h" Uppercase part of two lines | |
[?25l[40;7H[?12l[?25h[?25l | |
[1m[34m~ [39;1H[?12l[?25h[?25l[m | |
the youtuࠥuu end[40;18H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1Hthe youtuࠥuu end[41;1H[K[40;1H[?12l[?25h[?25l333the youtuࠥuu end | |
33[?12l[?25h[39;3H | |
[?25l222the youtuࠥuu end | |
22[?12l[?25h2the yo[?25l[?12l[?25h[?25l[7mutuࠥuu end | |
333the yo[?12l[?25h[?25lut[?12l[?25h[?25l[m[39;10HUTUSSEUU END | |
333THE YOUTU[39;10H[?12l[?25h[38;7H[39;10H[?25l | |
:[?12l[?25h/^the/,$w >> test.out | |
[?25l[31msearch hit BOTTOM, continuing at TOP[m | |
"test.out" [41;12H[K[41;12H8 lines, 136 characters appended[39;10H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test40.failed test.ok test.out X* viminfo | |
cp test40.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test40.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test40.in" 63 lines, 1536 characters[1;1HTest for "*Cmd" autocommands | |
STARTTEST | |
:so small.vim | |
:/^start/,$w! Xxx[15C" write lines below to Xxx | |
:au BufReadCmd XtestA 0r Xxx|$del | |
:e XtestA[23C" will read text of Xxd instead | |
:au BufWriteCmd XtestA call append(line("$"), "write") | |
:w[30C" will append a line to the file | |
:r XtestA[23C" should not read anything | |
:[31C" now we have: | |
:[31C" 1 start of Xxx | |
:[31C" 2[13Ctest40 | |
:[31C" 3 end of Xxx | |
:[31C" 4 write | |
:au FileReadCmd XtestB '[r Xxx | |
:2r XtestB[22C" will read Xxx below line 2 instead | |
:[31C" 1 start of Xxx | |
:[31C" 2[13Ctest40 | |
:[31C" 3 start of Xxx | |
:[31C" 4[13Ctest40 | |
:[31C" 5 end of Xxx | |
:[31C" 6 end of Xxx | |
:[31C" 7 write | |
:au FileWriteCmd XtestC '[,']copy $ | |
4GA1[34m^[[m | |
:4,5w XtestC[20C" will copy lines 4 and 5 to the end | |
:r XtestC[23C" should not read anything | |
:[31C" 1 start of Xxx | |
:[31C" 2[13Ctest40 | |
:[31C" 3 start of Xxx | |
:[31C" 4[13Ctest401 | |
:[31C" 5 end of Xxx | |
:[31C" 6 end of Xxx | |
:[31C" 7 write | |
:[31C" 8[13Ctest401 | |
:[31C" 9 end of Xxx | |
:au FILEAppendCmd XtestD '[,']w! test.out | |
:w >>XtestD[21C" will write all lines to test.out | |
:$r XtestD[22C" should not read anything[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 55 lines, 1455 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[19M[1;41r[22;1H:$w >>test.out[18C" append "end of Xxx" to test.out | |
:au BufReadCmd XtestE 0r test.out|$del | |
:sp XtestE[22C" split window with test.out | |
5Goasdf[34m^[^W^W[m:" | |
:au BufWriteCmd XtestE w! test.out | |
:wall[27C" will write other window to test.out | |
:[31C" 1 start of Xxx | |
:[31C" 2[13Ctest40 | |
:[31C" 3 start of Xxx | |
:[31C" 4[13Ctest401 | |
:[31C" 5 end of Xxx | |
:[31C" 6 asdf | |
:[31C" 7 end of Xxx | |
:[31C" 8 write | |
:[31C" 9[13Ctest401 | |
:[31C" 10 end of Xxx | |
:[31C" 11 end of Xxx | |
:qa! | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^start/,$w! Xxx[34m^I^I[m" write lines below to Xxx | |
[?25l"Xxx" [41;7H[K[41;7H[New File] 3 lines, 32 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufReadCmd XtestA 0r Xxx|$del | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he XtestA[34m^I^I^I[m" will read text of Xxd instead | |
[?25l"Xxx" [41;7H[K[41;7H3 lines, 32 characters[1;1Hstart of Xxx[1;33H[K[2;1H [7Ctest40[2;33H[K[3;1Hend of Xxx[3;33H[K[4;1H[1m[34m~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [3;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hau BufWriteCmd XtestA call append(line("$"), "write") | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw[34m^I^I^I^I[m" will append a line to the file | |
[?25l[4;1Hwrite[4;6H[K[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hr XtestA[34m^I^I^I[m" should not read anything | |
[?25l[1m[37m[41mE484: Can't open file XtestA[m[41;29H[K[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" now we have: | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 1[34m^I[mstart of Xxx | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 2[34m^I^I[mtest40 | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 3[34m^I[mend of Xxx | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 4[34m^I[mwrite | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau FileReadCmd XtestB '[r Xxx | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h2r XtestB[34m^I^I^I[m" will read Xxx below line 2 instead | |
[?25l"Xxx" [41;7H[K[41;7H3 lines, 32 characters[3;40r[3;1H[3L[1;41r[3;1Hstart of Xxx[4;9Htest40 | |
end of Xxx[41;1H[K[3;1H[?12l[?25h[?25l[41;1H:[?12l[?25h[34m^I^I^I^I[m" 1[34m^I[mstart of Xxx | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 2[34m^I^I[mtest40 | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 3[34m^I[mstart of Xxx | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 4[34m^I^I[mtest40 | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 5[34m^I[mend of Xxx | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 6[34m^I[mend of Xxx | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 7[34m^I[mwrite | |
[?25l[3;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau FileWriteCmd XtestC '[,']copy $ | |
[?25l[3;1H[?12l[?25h[4;9H[?25ltest401[?12l[?25h[5;10H[?25l[41;1H[K[41;1H:[?12l[?25h4,5w XtestC[34m^I^I^I[m" will copy lines 4 and 5 to the end | |
[?25l[8;1H test401[8;16H[K[9;1Hend of Xxx[9;11H[K[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hr XtestC[34m^I^I^I[m" should not read anything | |
[?25l[1m[37m[41mE484: Can't open file XtestC[m[41;29H[K[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 1[34m^I[mstart of Xxx | |
[?25l[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 2[34m^I^I[mtest40 | |
[?25l[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 3[34m^I[mstart of Xxx | |
[?25l[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 4[34m^I^I[mtest401 | |
[?25l[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 5[34m^I[mend of Xxx | |
[?25l[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 6[34m^I[mend of Xxx | |
[?25l[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 7[34m^I[mwrite | |
[?25l[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 8[34m^I^I[mtest401 | |
[?25l[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 9[34m^I[mend of Xxx | |
[?25l[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau FILEAppendCmd XtestD '[,']w! test.out | |
[?25l[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>XtestD[34m^I^I^I[m" will write all lines to test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 9 lines, 91 characters written[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r XtestD[34m^I^I^I[m" should not read anything | |
[?25l[1m[37m[41mE484: Can't open file XtestD[m[41;30H[K[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$w >>test.out[34m^I^I^I[m" append "end of Xxx" to test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 11 characters appended[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufReadCmd XtestE 0r test.out|$del | |
[?25l[9;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hsp XtestE[34m^I^I^I[m" split window with test.out | |
[?25l"test.out" [41;12H[K[41;12H10 lines, 102 characters[10;1Hend of Xxx[10;11H[K[20;1H[1m[7mXtestE [m[21;1Hend of Xxx[21;11H[K[22;1Hend of Xxx[22;11H[K[23;1Hwrite[23;6H[K[24;1H test401[24;16H[K[25;1Hend of Xxx[25;11H[K[40;1H[7mXtestA [10;1H[?12l[?25h[5;1H[?25l[6;19r[m[6;1H[L[1;41r[6;1Hasdf[20;8H[1m[7m[+][m[41;1H[K[6;4H[?12l[?25h[20;1H[7mXtestE [+][m[1m[7m [m[7m [m[40;1H[1m[7mXtestA [25;1H[?25l[41;1H[m:[?12l[?25h" | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hau BufWriteCmd XtestE w! test.out | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hwall[34m^I^I^I^I[m" will write other window to test.out | |
[?25l"test.out" [41;12H[K[41;12H11 lines, 107 characters written[20;8H[7m [25;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 1[34m^I[mstart of Xxx | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 2[34m^I^I[mtest40 | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 3[34m^I[mstart of Xxx | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 4[34m^I^I[mtest401 | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 5[34m^I[mend of Xxx | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 6[34m^I[masdf | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 7[34m^I[mend of Xxx | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 8[34m^I[mwrite | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 9[34m^I^I[mtest401 | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 10[34m^I[mend of Xxx | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h[34m^I^I^I^I[m" 11[34m^I[mend of Xxx | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test41.failed test.ok test.out X* viminfo | |
cp test41.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test41.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test41.in" 24 lines, 421 characters[1;1HTest for writing and reading a file of over 100 Kbyte | |
1 line: "This is the start" | |
3001 lines: "This is the leader" | |
1 line: "This is the middle" | |
3001 lines: "This is the trailer" | |
1 line: "This is the end" | |
STARTTEST | |
:%d | |
aThis is the start | |
This is the leader | |
This is the middle | |
This is the trailer | |
This is the end[34m^[[mkY3000p2GY3000p | |
:w! Xtest | |
:%d | |
:e! Xtest | |
:.w! test.out | |
3003G:.w >>test.out | |
6005G:.w >>test.out | |
:qa! | |
ENDTEST | |
[1m[34m~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[9;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[10;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 13 lines, 196 characters written[10;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[10;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[23;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h%d | |
[?25l[1;1H[K[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [m[41;1H--No lines in buffer--[1;1H[?12l[?25h[?25lThis is the start | |
This is the leader[2;19H[K[3;1HThis is the middle[3;19H[K[4;1HThis is the trailer[4;20H[K[5;1HThis is the end[5;16H[K[5;15H[?12l[?25h[4;15H[?25l[41;1H3000 more lines[41;16H[K[5;13Htrailer | |
This is the trailer[6;20H[K[7;1HThis is the trailer[7;20H[K[8;1HThis is the trailer[8;20H[K[9;1HThis is the trailer[9;20H[K[10;1HThis is the trailer[10;20H[K[11;1HThis is the trailer[11;20H[K[12;1HThis is the trailer[12;20H[K[13;1HThis is the trailer[13;20H[K[14;1HThis is the trailer[14;20H[K[15;1HThis is the trailer[15;20H[K[16;1HThis is the trailer[16;20H[K[17;1HThis is the trailer[17;20H[K[18;1HThis is the trailer[18;20H[K[19;1HThis is the trailer[19;20H[K[20;1HThis is the trailer[20;20H[K[21;1HThis is the trailer[21;20H[K[22;1HThis is the trailer[22;20H[K[23;1HThis is the trailer[23;20H[K[24;1HThis is the trailer[24;20H[K[25;1HThis is the trailer[25;20H[K[26;1HThis is the trailer[26;20H[K[27;1HThis is the trailer[27;20H[K[28;1HThis is the trailer[28;20H[K[29;1HThis is the trailer[29;20H[K[30;1HThis is the trailer[30;20H[K[31;1HThis is the trailer[31;20H[K[32;1HThis is the trailer[32;20H[K[33;1HThis is the trailer[33;20H[K[34;1HThis is the trailer[34;20H[K[35;1HThis is the trailer[35;20H[K[36;1HThis is the trailer[36;20H[K[37;1HThis is the trailer[37;20H[K[38;1HThis is the trailer[38;20H[K[39;1HThis is the trailer[39;20H[K[40;1HThis is the trailer[40;20H[K[5;1H[?12l[?25h[2;1H[?25l[3;13Hleader[4;13Hleader[4;19H[K[5;13Hleader[5;19H[K[6;13Hleader[6;19H[K[7;13Hleader[7;19H[K[8;13Hleader[8;19H[K[9;13Hleader[9;19H[K[10;13Hleader[10;19H[K[11;13Hleader[11;19H[K[12;13Hleader[12;19H[K[13;13Hleader[13;19H[K[14;13Hleader[14;19H[K[15;13Hleader[15;19H[K[16;13Hleader[16;19H[K[17;13Hleader[17;19H[K[18;13Hleader[18;19H[K[19;13Hleader[19;19H[K[20;13Hleader[20;19H[K[21;13Hleader[21;19H[K[22;13Hleader[22;19H[K[23;13Hleader[23;19H[K[24;13Hleader[24;19H[K[25;13Hleader[25;19H[K[26;13Hleader[26;19H[K[27;13Hleader[27;19H[K[28;13Hleader[28;19H[K[29;13Hleader[29;19H[K[30;13Hleader[30;19H[K[31;13Hleader[31;19H[K[32;13Hleader[32;19H[K[33;13Hleader[33;19H[K[34;13Hleader[34;19H[K[35;13Hleader[35;19H[K[36;13Hleader[36;19H[K[37;13Hleader[37;19H[K[38;13Hleader[38;19H[K[39;13Hleader[39;19H[K[40;13Hleader[40;19H[K[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:[?12l[?25hw! Xtest | |
[?25l"Xtest" [41;9H[K[41;9H[New File] 6005 lines, 117092 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h%d | |
[?25l[1;1H[K[2;1H[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [m[41;1H--No lines in buffer--[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xtest | |
[?25l"Xtest" [41;9H[K[41;9H6005 lines, 117092 characters[1;1HThis is the start | |
This is the leader[2;19H[K[3;1HThis is the leader[3;19H[K[4;1HThis is the leader[4;19H[K[5;1HThis is the leader[5;19H[K[6;1HThis is the leader[6;19H[K[7;1HThis is the leader[7;19H[K[8;1HThis is the leader[8;19H[K[9;1HThis is the leader[9;19H[K[10;1HThis is the leader[10;19H[K[11;1HThis is the leader[11;19H[K[12;1HThis is the leader[12;19H[K[13;1HThis is the leader[13;19H[K[14;1HThis is the leader[14;19H[K[15;1HThis is the leader[15;19H[K[16;1HThis is the leader[16;19H[K[17;1HThis is the leader[17;19H[K[18;1HThis is the leader[18;19H[K[19;1HThis is the leader[19;19H[K[20;1HThis is the leader[20;19H[K[21;1HThis is the leader[21;19H[K[22;1HThis is the leader[22;19H[K[23;1HThis is the leader[23;19H[K[24;1HThis is the leader[24;19H[K[25;1HThis is the leader[25;19H[K[26;1HThis is the leader[26;19H[K[27;1HThis is the leader[27;19H[K[28;1HThis is the leader[28;19H[K[29;1HThis is the leader[29;19H[K[30;1HThis is the leader[30;19H[K[31;1HThis is the leader[31;19H[K[32;1HThis is the leader[32;19H[K[33;1HThis is the leader[33;19H[K[34;1HThis is the leader[34;19H[K[35;1HThis is the leader[35;19H[K[36;1HThis is the leader[36;19H[K[37;1HThis is the leader[37;19H[K[38;1HThis is the leader[38;19H[K[39;1HThis is the leader[39;19H[K[40;1HThis is the leader[40;19H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h.w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New File] 1 line, 18 characters written[1;1H[?12l[?25h[?25l[27m[m[H[2J[1;1HThis is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the leader | |
This is the middle | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer[20;1H[?12l[?25h[?25l[41;1H:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 19 characters appended[20;1H[?12l[?25h[?25l[27m[m[H[2J[1;1HThis is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the trailer | |
This is the end | |
[?12l[?25h[?25l | |
:[?12l[?25h.w >>test.out | |
[?25l"test.out" [41;12H[K[41;12H1 line, 16 characters appended[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test42.failed test.ok test.out X* viminfo | |
cp test42.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test42.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test42.in" 130 lines, 2368 characters[1;1HTest for writing and reading a file starting with a BOM | |
STARTTEST | |
:so mbyte.vim | |
:set encoding=utf-8 | |
:set fileencodings=ucs-bom,latin-1 | |
:set ff=unix ffs=unix[11C" This changes the file for DOS and MAC | |
:" --- Write the test files | |
:/^latin-1$/+1w! Xtest0 | |
:/^utf-8$/+1w! Xtest1 | |
:/^utf-8-err$/+1w! Xtest2 | |
:/^ucs-2$/+1w! Xtest3 | |
:/^ucs-2le$/+1w! Xtest4 | |
:" Need to add a NUL byte after the NL byte | |
:set bin | |
:e! Xtest4[22C" Ignore change from setting 'ff' | |
o[34m^V^@^[[m:set noeol | |
:w | |
:set ffs& nobinary[14C" Allow default test42.in format | |
:e # | |
:set ff=unix[20C" Format for files to write | |
:/^ucs-4$/+1w! Xtest5 | |
:/^ucs-4le$/+1w! Xtest6 | |
:" Need to add three NUL bytes after the NL byte | |
:set bin | |
:e! Xtest6[22C" ! for when setting 'ff' is a change | |
o[34m^V^@^V^@^V^@^[[m:set noeol | |
:w | |
:set nobin | |
:e # | |
:" | |
:" --- Check that editing a latin-1 file doesn't see a BOM | |
:e! Xtest0 | |
:redir! >test.out | |
:set fileencoding bomb? | |
:redir END | |
:set fenc=latin-1 | |
:w >>test.out | |
:set bomb fenc=latin-1 | |
:w! Xtest0x[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 111 lines, 2116 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[27m[m[H[2J[1;1H:" | |
:" --- Check ucs-4le | |
:e! Xtest6 | |
:redir >>test.out | |
:set fileencoding bomb? | |
:redir END | |
:set fenc=latin-1 | |
:w >>test.out | |
:set fenc=ucs-4le | |
:w! Xtest6x | |
:" | |
:" --- Check the files written with BOM | |
:set bin | |
:e! test.out | |
:$r Xtest0x | |
:$r Xtest1x | |
:$r Xtest2x | |
:$r Xtest3x | |
:$r Xtest4x | |
:$r Xtest5x | |
:$r Xtest6x | |
:set nobin ff&[15C" Write the file in default format | |
:w! test.out | |
:qa! | |
ENDTEST | |
latin-1 | |
��tin-1 | |
utf-8 | |
utf-8 | |
utf-8-err | |
utf-8[34m~@[merr | |
ucs-2 | |
��34m^@[mu[34m^@[mc[34m^@[ms[34m^@[m-[34m^@[m2[34m^@[m | |
ucs-2le | |
��[34m^@[mc[34m^@[ms[34m^@[m-[34m^@[m2[34m^@[ml[34m^@[me[34m^@[m | |
ucs-4 | |
[34m^@^@[m��34m^@^@^@[mu[34m^@^@^@[mc[34m^@^@^@[ms[34m^@^@^@[m-[34m^@^@^@[m4[34m^@^@^@[m | |
ucs-4le | |
��34m^@^@[mu[34m^@^@^@[mc[34m^@^@^@[ms[34m^@^@^@[m-[34m^@^@^@[m4[34m^@^@^@[ml[34m^@^@^@[me[34m^@^@^@[25;1H[?12l[?25h | |
[?25l[41;1H[m:so! Xdotest | |
[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso mbyte.vim | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset encoding=utf-8 | |
[?25l[27m[m[H[2J[1;1H:" | |
:" --- Check ucs-4le | |
:e! Xtest6 | |
:redir >>test.out | |
:set fileencoding bomb? | |
:redir END | |
:set fenc=latin-1 | |
:w >>test.out | |
:set fenc=ucs-4le | |
:w! Xtest6x | |
:" | |
:" --- Check the files written with BOM | |
:set bin | |
:e! test.out | |
:$r Xtest0x | |
:$r Xtest1x | |
:$r Xtest2x | |
:$r Xtest3x | |
:$r Xtest4x | |
:$r Xtest5x | |
:$r Xtest6x | |
:set nobin ff&[15C" Write the file in default format | |
:w! test.out | |
:qa! | |
ENDTEST | |
latin-1 | |
[34m<fe><fe>[mlatin-1 | |
utf-8 | |
[34m<feff>[mutf-8 | |
utf-8-err | |
[34m<feff>[mutf-8[34m<80>[merr | |
ucs-2 | |
[34m<fe><ff>^@[mu[34m^@[mc[34m^@[ms[34m^@[m-[34m^@[m2[34m^@[m | |
ucs-2le | |
[34m<ff><fe>[mu[34m^@[mc[34m^@[ms[34m^@[m-[34m^@[m2[34m^@[ml[34m^@[me[34m^@[m | |
ucs-4 | |
[34m^@^@<fe><ff>^@^@^@[mu[34m^@^@^@[mc[34m^@^@^@[ms[34m^@^@^@[m-[34m^@^@^@[m4[34m^@^@^@[m | |
ucs-4le | |
[34m<ff><fe>^@^@[mu[34m^@^@^@[mc[34m^@^@^@[ms[34m^@^@^@[m-[34m^@^@^@[m4[34m^@^@^@[ml[34m^@^@^@[me[34m^@^@^@[26;1H[?12l[?25h[?25l[41;1H[m:[?12l[?25hset fileencodings=ucs-bom,latin-1 | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset ff=unix ffs=unix " This changes the file for DOS and MAC | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" --- Write the test files | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^latin-1$/+1w! Xtest0 | |
[?25l"Xtest0" [41;10H[K[41;10H[New File] 1 line, 10 characters written[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^utf-8$/+1w! Xtest1 | |
[?25l"Xtest1" [41;10H[K[41;10H[New File] 1 line, 9 characters written[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^utf-8-err$/+1w! Xtest2 | |
[?25l"Xtest2" [41;10H[K[41;10H[New File] 1 line, 13 characters written[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^ucs-2$/+1w! Xtest3 | |
[?25l"Xtest3" [41;10H[K[41;10H[New File] 1 line, 14 characters written[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^ucs-2le$/+1w! Xtest4 | |
[?25l"Xtest4" [41;10H[K[41;10H[New File] 1 line, 17 characters written[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" Need to add a NUL byte after the NL byte | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset bin | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xtest4 " Ignore change from setting 'ff' | |
[?25l"Xtest4" [41;10H[K[41;10H1 line, 17 characters[1;1H[34m<ff><fe>[mu[34m^@[mc[34m^@[ms[34m^@[m-[34m^@[m2[34m^@[ml[34m^@[me[34m^@[m | |
[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h | |
[?25l[m[34m^@[m[2;3H[K[2;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset noeol | |
[?25l[2;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xtest4" [Incomplete last line] 2 lines, 18 characters written[2;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset ffs& nobinary " Allow default test42.in format | |
[?25l[2;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he # | |
[?25l"test42.in" [converted] 130 lines, 2385 characters[1;1H:"[1;3H[K[2;1H:" --- Check ucs-4le | |
:e! Xtest6[3;11H[K[4;1H:redir >>test.out[4;18H[K[5;1H:set fileencoding bomb?[5;24H[K[6;1H:redir END[6;11H[K[7;1H:set fenc=latin-1[7;18H[K[8;1H:w >>test.out[8;14H[K[9;1H:set fenc=ucs-4le[9;18H[K[10;1H:w! Xtest6x[10;12H[K[11;1H:"[11;3H[K[12;1H:" --- Check the files written with BOM[12;40H[K[13;1H:set bin[13;9H[K[14;1H:e! test.out[14;13H[K[15;1H:$r Xtest0x[15;12H[K[16;1H:$r Xtest1x[16;12H[K[17;1H:$r Xtest2x[17;12H[K[18;1H:$r Xtest3x[18;12H[K[19;1H:$r Xtest4x[19;12H[K[20;1H:$r Xtest5x[20;12H[K[21;1H:$r Xtest6x[21;12H[K[22;1H:set nobin ff& " Write the file in default format[22;64H[K[23;1H:w! test.out[23;13H[K[24;1H:qa![24;5H[K[25;1HENDTEST[25;8H[K[26;1H[K[27;1Hlatin-1[27;8H[K[28;1Hþþlatin-1[28;10H[K[29;1Hutf-8[29;6H[K[30;1Hutf-8[30;9H[K[31;1Hutf-8-err[31;10H[K[32;1Hutf-8[34m<80>[merr[32;16H[K[33;1Hucs-2[33;6H[K[34;1Hþÿ[34m^@[mu[34m^@[mc[34m^@[ms[34m^@[m-[34m^@[m2[34m^@[m[34;20H[K[35;1Hucs-2le[35;8H[K[36;1Hÿþu[34m^@[mc[34m^@[ms[34m^@[m-[34m^@[m2[34m^@[ml[34m^@[me[34m^@[m[36;24H[K[37;1Hucs-4[37;6H[K[38;1H[34m^@^@[mþÿ[34m^@^@^@[mu[34m^@^@^@[mc[34m^@^@^@[ms[34m^@^@^@[m-[34m^@^@^@[m4[34m^@^@^@[m[38;48H[K[39;1Hucs-4le[39;8H[K[40;1Hÿþ[34m^@^@[mu[34m^@^@^@[mc[34m^@^@^@[ms[34m^@^@^@[m-[34m^@^@^@[m4[34m^@^@^@[ml[34m^@^@^@[me[34m^@^@^@[m[40;56H[K[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset ff=unix " Format for files to write | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^ucs-4$/+1w! Xtest5 | |
[?25l"Xtest5" [41;10H[K[41;10H[converted][New File] 1 line, 30 characters written[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h/^ucs-4le$/+1w! Xtest6 | |
[?25l"Xtest6" [41;10H[K[41;10H[converted][New File] 1 line, 35 characters written[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" Need to add three NUL bytes after the NL byte | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset bin | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xtest6 " ! for when setting 'ff' is a change | |
[?25l"Xtest6" [41;10H[K[41;10H1 line, 33 characters[1;1H[34m<ff><fe>^@^@[mu[34m^@^@^@[mc[34m^@^@^@[ms[34m^@^@^@[m-[34m^@^@^@[m4[34m^@^@^@[ml[34m^@^@^@[me[34m^@^@^@[m | |
[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h | |
~ [?25l[m | |
[34m^@^@^@[m[2;7H[K[2;5H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset noeol | |
[?25l[2;5H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw | |
[?25l"Xtest6" [Incomplete last line] 2 lines, 36 characters written[2;5H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nobin | |
[?25l[2;5H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he # | |
[?25l"test42.in" [converted] 130 lines, 2385 characters[1;1H:"[1;3H[K[2;1H:" --- Check ucs-4le | |
:e! Xtest6[3;11H[K[4;1H:redir >>test.out[4;18H[K[5;1H:set fileencoding bomb?[5;24H[K[6;1H:redir END[6;11H[K[7;1H:set fenc=latin-1[7;18H[K[8;1H:w >>test.out[8;14H[K[9;1H:set fenc=ucs-4le[9;18H[K[10;1H:w! Xtest6x[10;12H[K[11;1H:"[11;3H[K[12;1H:" --- Check the files written with BOM[12;40H[K[13;1H:set bin[13;9H[K[14;1H:e! test.out[14;13H[K[15;1H:$r Xtest0x[15;12H[K[16;1H:$r Xtest1x[16;12H[K[17;1H:$r Xtest2x[17;12H[K[18;1H:$r Xtest3x[18;12H[K[19;1H:$r Xtest4x[19;12H[K[20;1H:$r Xtest5x[20;12H[K[21;1H:$r Xtest6x[21;12H[K[22;1H:set nobin ff& " Write the file in default format[22;64H[K[23;1H:w! test.out[23;13H[K[24;1H:qa![24;5H[K[25;1HENDTEST[25;8H[K[26;1H[K[27;1Hlatin-1[27;8H[K[28;1Hþþlatin-1[28;10H[K[29;1Hutf-8[29;6H[K[30;1Hutf-8[30;9H[K[31;1Hutf-8-err[31;10H[K[32;1Hutf-8[34m<80>[merr[32;16H[K[33;1Hucs-2[33;6H[K[34;1Hþÿ[34m^@[mu[34m^@[mc[34m^@[ms[34m^@[m-[34m^@[m2[34m^@[m[34;20H[K[35;1Hucs-2le[35;8H[K[36;1Hÿþu[34m^@[mc[34m^@[ms[34m^@[m-[34m^@[m2[34m^@[ml[34m^@[me[34m^@[m[36;24H[K[37;1Hucs-4[37;6H[K[38;1H[34m^@^@[mþÿ[34m^@^@^@[mu[34m^@^@^@[mc[34m^@^@^@[ms[34m^@^@^@[m-[34m^@^@^@[m4[34m^@^@^@[m[38;48H[K[39;1Hucs-4le[39;8H[K[40;1Hÿþ[34m^@^@[mu[34m^@^@^@[mc[34m^@^@^@[ms[34m^@^@^@[m-[34m^@^@^@[m4[34m^@^@^@[ml[34m^@^@^@[me[34m^@^@^@[m[40;56H[K[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" --- Check that editing a latin-1 file doesn't see a BOM | |
[?25l[26;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xtest0 | |
[?25l"Xtest0" [41;10H[K[41;10H[converted] 1 line, 12 characters[1;1Hþþlatin-1 | |
[1m[34m~ [3;1H~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ [8;1H~ [9;1H~ [10;1H~ [11;1H~ [12;1H~ [13;1H~ [14;1H~ [15;1H~ [16;1H~ [17;1H~ [18;1H~ [19;1H~ [20;1H~ [21;1H~ [22;1H~ [23;1H~ [24;1H~ [25;1H~ [26;1H~ [27;1H~ [28;1H~ [29;1H~ [30;1H~ [31;1H~ [32;1H~ [33;1H~ [34;1H~ [35;1H~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hredir! >test.out | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileencoding bomb? | |
[?25l[41;1H[K[41;1H fileencoding=latin1 | |
nobomb | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hredir END | |
[?25l[1;1H[2L[1;1Hþþlatin-1 | |
[1m[34m~ [m[41;3H[K[1;1H[?12l[?25h[?25l[41;1H:[?12l[?25hset fenc=latin-1 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H[converted] 1 line, 12 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset bomb fenc=latin-1 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! Xtest0x | |
[?25l"Xtest0x" [41;11H[K[41;11H[converted][New File] 1 line, 12 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" --- Check utf-8 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xtest1 | |
[?25l"Xtest1" [41;10H[K[41;10H1 line, 9 characters[1;1Hutf-8[1;6H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hredir >>test.out | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileencoding bomb? | |
[?25l[41;1H[K[41;1H fileencoding=utf-8 | |
bomb | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hredir END | |
[?25l[1;1H[2L[1;1Hutf-8 | |
[1m[34m~ [m[41;3H[K[1;1H[?12l[?25h[?25l[41;1H:[?12l[?25hset fenc=latin-1 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H[converted] 1 line, 6 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fenc=utf-8 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! Xtest1x | |
[?25l"Xtest1x" [41;11H[K[41;11H[New File] 1 line, 9 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" --- Check utf-8 with an error (will fall back to latin-1) | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xtest2 | |
[?25l"Xtest2" [41;10H[K[41;10H[converted] 1 line, 17 characters[1;1Hutf-8[34m<80>[merr | |
[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hredir >>test.out | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileencoding bomb? | |
[?25l[41;1H[K[41;1H fileencoding=latin1 | |
nobomb | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hredir END | |
[?25l[1;1H[2L[1;1Hutf-8[34m<80>[merr | |
[1m[34m~ [m[41;3H[K[1;1H[?12l[?25h[?25l[41;1H:[?12l[?25hset fenc=latin-1 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H[converted] 1 line, 17 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fenc=utf-8 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! Xtest2x | |
[?25l"Xtest2x" [41;11H[K[41;11H[New File] 1 line, 17 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" --- Check ucs-2 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xtest3 | |
[?25l"Xtest3" [41;10H[K[41;10H[converted] 1 line, 8 characters[1;1Hucs-2[1;6H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hredir >>test.out | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileencoding bomb? | |
[?25l[41;1H[K[41;1H fileencoding=utf-16 | |
bomb | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hredir END | |
[?25l[1;1H[2L[1;1Hucs-2 | |
[1m[34m~ [m[41;3H[K[1;1H[?12l[?25h[?25l[41;1H:[?12l[?25hset fenc=latin-1 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H[converted] 1 line, 6 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fenc=ucs-2 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! Xtest3x | |
[?25l"Xtest3x" [41;11H[K[41;11H[converted][New File] 1 line, 8 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" --- Check ucs-2le | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xtest4 | |
[?25l"Xtest4" [41;10H[K[41;10H[converted] 1 line, 10 characters[1;6Hle | |
[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hredir >>test.out | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileencoding bomb? | |
[?25l[41;1H[K[41;1H fileencoding=utf-16le | |
bomb | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hredir END | |
[?25l[1;1H[2L[1;1Hucs-2le | |
[1m[34m~ [m[41;3H[K[1;1H[?12l[?25h[?25l[41;1H:[?12l[?25hset fenc=latin-1 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H[converted] 1 line, 8 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fenc=ucs-2le | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! Xtest4x | |
[?25l"Xtest4x" [41;11H[K[41;11H[converted][New File] 1 line, 10 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" --- Check ucs-4 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xtest5 | |
[?25l"Xtest5" [41;10H[K[41;10H[converted] 1 line, 10 characters[1;5H4[1;6H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hredir >>test.out | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileencoding bomb? | |
[?25l[41;1H[K[41;1H fileencoding=ucs-4 | |
bomb | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hredir END | |
[?25l[1;1H[2L[1;1Hucs-4 | |
[1m[34m~ [m[41;3H[K[1;1H[?12l[?25h[?25l[41;1H:[?12l[?25hset fenc=latin-1 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H[converted] 1 line, 6 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fenc=ucs-4 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! Xtest5x | |
[?25l"Xtest5x" [41;11H[K[41;11H[converted][New File] 1 line, 10 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" --- Check ucs-4le | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! Xtest6 | |
[?25l"Xtest6" [41;10H[K[41;10H[converted] 1 line, 12 characters[1;6Hle | |
[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hredir >>test.out | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fileencoding bomb? | |
[?25l[41;1H[K[41;1H fileencoding=ucs-4le | |
bomb | |
[32mPress ENTER or type command to continue[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hredir END | |
[?25l[1;1H[2L[1;1Hucs-4le | |
[1m[34m~ [m[41;3H[K[1;1H[?12l[?25h[?25l[41;1H:[?12l[?25hset fenc=latin-1 | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw >>test.out | |
[?25l"test.out" [41;12H[K[41;12H[converted] 1 line, 8 characters appended[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset fenc=ucs-4le | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! Xtest6x | |
[?25l"Xtest6x" [41;11H[K[41;11H[converted][New File] 1 line, 12 characters written[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h" --- Check the files written with BOM | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset bin | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! test.out | |
[?25l"test.out" [41;12H[K[41;12H35 lines, 275 characters[1;1H[K[2;1H[K[3;1H fileencoding=latin1[3;22H[K[4;1Hnobomb[4;7H[K[5;1H[34m<fe><fe>[mlatin-1[5;16H[K[6;1H[K[7;1H[K[8;1H fileencoding=utf-8[8;21H[K[9;1H bomb[9;7H[K[10;1Hutf-8[10;6H[K[11;1H[K[12;1H[K[13;1H fileencoding=latin1[13;22H[K[14;1Hnobomb[14;7H[K[15;1H[34m<feff>[mutf-8[34m<80>[merr[15;19H[K[16;1H[K[17;1H[K[18;1H fileencoding=utf-16[18;22H[K[19;1H bomb[19;7H[K[20;1Hucs-2[20;6H[K[21;1H[K[22;1H[K[23;1H fileencoding=utf-16le[23;24H[K[24;1H bomb[24;7H[K[25;1Hucs-2le[25;8H[K[26;1H[K[27;1H[K[28;1H fileencoding=ucs-4[28;21H[K[29;1H bomb[29;7H[K[30;1Hucs-4[30;6H[K[31;1H[K[32;1H[K[33;1H fileencoding=ucs-4le[33;23H[K[34;1H bomb[34;7H[K[35;1Hucs-4le[35;8H[K[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r Xtest0x | |
[?25l"Xtest0x" [41;11H[K[41;11H1 line, 10 characters[36;1H[34m<fe><fe>[mlatin-1[36;16H[K[36;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r Xtest1x | |
[?25l"Xtest1x" [41;11H[K[41;11H1 line, 9 characters[37;1H[34m<feff>[mutf-8[37;12H[K[37;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r Xtest2x | |
[?25l"Xtest2x" [41;11H[K[41;11H1 line, 17 characters[38;1Hutf-8[34m<80>[merr[38;16H[K[38;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r Xtest3x | |
[?25l"Xtest3x" [41;11H[K[41;11H1 line, 14 characters[39;1H[34m<fe><ff>^@[mu[34m^@[mc[34m^@[ms[34m^@[m-[34m^@[m2[34m^@[m[39;26H[K[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r Xtest4x | |
[?25l"Xtest4x" [41;11H[K[41;11H[Incomplete last line] 2 lines, 18 characters[40;1H[34m<ff><fe>[mu[34m^@[mc[34m^@[ms[34m^@[m-[34m^@[m2[34m^@[ml[34m^@[me[34m^@[m[40;30H[K[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$r Xtest5x | |
[?25l"Xtest5x" [41;11H[K[41;11H1 line, 28 characters[1;40r[1;1H[2M[1;41r[39;1H[34m^@ | |
^@^@<fe><ff>^@^@^@[mu[34m^@^@^@[mc[34m^@^@^@[ms[34m^@^@^@[m-[34m^@^@^@[m4[34m^@^@^@[m[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25h$r Xtest6x | |
[?25l"Xtest6x" [41;11H[K[41;11H[Incomplete last line] 2 lines, 36 characters[1;40r[40;1H | |
[1;41r[40;1H[34m<ff><fe>^@^@[mu[34m^@^@^@[mc[34m^@^@^@[ms[34m^@^@^@[m-[34m^@^@^@[m4[34m^@^@^@[ml[34m^@^@^@[me[34m^@^@^@[m[41;1H[K[40;1H[?12l[?25h[?25l | |
:[?12l[?25hset nobin ff& " Write the file in default format | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hw! test.out | |
[?25l"test.out" [41;12H[K[41;12H44 lines, 409 characters written[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test43.failed test.ok test.out X* viminfo | |
cp test43.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test43.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test43.in" 34 lines, 473 characters[1;1HTests for regexp with various magic settings. | |
STARTTEST | |
:so small.vim | |
:set nocompatible viminfo+=nviminfo | |
/^1 | |
/a*b\{2}c\+/e | |
x/\Md\*e\{2}f\+/e | |
x:set nomagic | |
/g\*h\{2}i\+/e | |
x/\mj*k\{2}l\+/e | |
x/\vm*n{2}o+/e | |
x/\V^aa$ | |
x:set magic | |
/\v(a)(b)\2\1\1/e | |
x/\V[ab]\(\[xy]\)\1 | |
x:$ | |
:set undolevels=100 | |
dv?bar? | |
Yup:" | |
:?^1?,$w! test.out | |
:qa! | |
ENDTEST | |
1 a aa abb abbccc | |
2 d dd dee deefff | |
3 g gg ghh ghhiii | |
4 j jj jkk jkklll | |
5 m mm mnn mnnooo | |
6 x ^aa$ x | |
7 (a)(b) abbaa | |
8 axx [ab]xx | |
9 foobar | |
[1m[34m~ [36;1H~ [37;1H~ [38;1H~ [39;1H~ [40;1H~ [1;1H[?12l[?25h[?25l[m[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[3;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 19 lines, 268 characters written[4;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[4;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[23;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:so! Xdotest | |
[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso small.vim | |
[?25l[24;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nocompatible viminfo+=nviminfo | |
[?25l[24;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h^1 | |
[?25l[25;1H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25ha*b\{2}c\+/e | |
[?25l[25;17H[?12l[?25h[?25l[25;17H[K[25;16H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h\Md\*e\{2}f\+/e | |
[?25l[26;17H[?12l[?25h[?25l[26;17H[K[26;16H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nomagic | |
[?25l[26;16H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hg\*h\{2}i\+/e | |
[?25l[27;17H[?12l[?25h[?25l[27;17H[K[27;16H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h\mj*k\{2}l\+/e | |
[?25l[28;17H[?12l[?25h[?25l[28;17H[K[28;16H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h\vm*n{2}o+/e | |
[?25l[29;17H[?12l[?25h[?25l[29;17H[K[29;16H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h\V^aa$ | |
[?25l[30;5H[?12l[?25h[?25laa$ x[30;10H[K[30;5H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset magic | |
[?25l[30;5H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h\v(a)(b)\2\1\1/e | |
[?25l[31;14H[?12l[?25h[?25l[31;14H[K[31;13H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h\V[ab]\(\[xy]\)\1 | |
[?25l[32;7H[?12l[?25h[?25lab]x[32;12H[K[32;7H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h$ | |
[?25l[34;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset undolevels=100 | |
[?25l[34;1H[?12l[?25h[?25l[41;1H[K[41;1H?[?12l[?25hbar? | |
[?25l[41;5H[K[41;1H[33;6H[K[34;1H[1m[34m~ [33;5H[?12l[?25h[?25l[m[41;1H1 more line; before #2 0 seconds ago[33;6Hbar[34;1H[K[33;6H[?12l[?25h[?25l[34;40r[34;1H[L[1;41r[34;1H9 foo[41;1H[K[34;1H[?12l[?25h[?25l[41;1H:[?12l[?25h" | |
[?25l[34;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h?^1?,$w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New] 11L, 137C written[34;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hqa! | |
[?25l[41;1H[K[41;1H[?1l>[?12l[?25h[?1049l# For flaky tests retry one time. | |
# Check if the test.out file matches test.ok. | |
rm -rf X* test.ok viminfo | |
rm -rf test44.failed test.ok test.out X* viminfo | |
cp test44.ok test.ok | |
# Sleep a moment to avoid that the xterm title is messed up. | |
# 200 msec is sufficient, but only modern sleep supports a fraction of | |
# a second, fall back to a second if it fails. | |
../vim -u unix.vim -U NONE --noplugin -s dotest.in test44.in | |
[?1049h[?1h=[1;41r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[41;1H"test44.in" 66 lines, 2543 characters[1;1HTests for regexp with multi-byte encoding and various magic settings. | |
Test matchstr() with a count and multi-byte chars. | |
STARTTEST | |
:so mbyte.vim | |
:set nocompatible encoding=utf-8 termencoding=latin1 viminfo+=nviminfo | |
/^1 | |
/a*b\{2}c\+/e | |
x/\Md\*e\{2}f\+/e | |
x:set nomagic | |
/g\*h\{2}i\+/e | |
x/\mj*k\{2}l\+/e | |
x/\vm*n{2}o+/e | |
x/\V^aa$ | |
x:set magic | |
/\v(a)(b)\2\1\1/e | |
x/\V[ab]\(\[xy]\)\1 | |
x:" Now search for multi-byte without composing char | |
/ม | |
x:" Now search for multi-byte with composing char | |
/ม๛[34m~H[m | |
x:" find word by change of word class | |
/㜛34m~A[m<㜛34m~B[ṃ[34m~C[mɜ>㜛34m~A[mύ | |
x:" Test \%u, [\u] and friends | |
/\%u20ac | |
x/[\u4f7f\u5929]\+ | |
x/\%U12345678 | |
x/[\U1234abcd\u1234\uabcd] | |
x/\%d21879b | |
x/ [[=A=]]* [[=B=]]* [[=C=]]* [[=D=]]* [[=E=]]* [[=F=]]* [[=G=]]* [[=H=]]* [[=I=]]* [[=J=]]* [[=K=]]* [[=L=]]* [[=M=]]* [[=N=]]* [[=O=]]* [[=P=]][31;1H]* [[=Q=]]* [[=R=]]* [[=S=]]* [[=T=]]* [[=U=]]* [[=V=]]* [[=W=]]* [[=X=]]* [[=Y=]]* [[=Z=]]*/e | |
x/ [[=a=]]* [[=b=]]* [[=c=]]* [[=d=]]* [[=e=]]* [[=f=]]* [[=g=]]* [[=h=]]* [[=i=]]* [[=j=]]* [[=k=]]* [[=l=]]* [[=m=]]* [[=n=]]* [[=o=]]* [[=p=]][33;1H]* [[=q=]]* [[=r=]]* [[=s=]]* [[=t=]]* [[=u=]]* [[=v=]]* [[=w=]]* [[=x=]]* [[=y=]]* [[=z=]]*/e | |
x:" Test backwards search from a multi-byte char | |
/x | |
x?. | |
x:let @w=':%s#comb[i]nations#ś[34m~S[m̛[34m~D[mṣ̛[34m~A[mm̛̥[34m~D[mα̛[34m~D[m̛[34m~F[m̛[34m~A[m#g' | |
:@w | |
:?^1?,$w! test.out | |
:e! test.out[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset cp | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hmap dotest /^STARTTEST^[34m^M[mj:set ff=unix cpo-=A^[34m^M[m:.,/ENDTEST/-1w! Xdotest^[34m^M[m:set ff& cpo+=A^[34m^M[mnj0:so! Xdotest^[34m^M[mdotest | |
[?25l[1;1H[?12l[?25h[?25l[41;1H[K[41;1H/^STARTTEST | |
[4;1H[?12l[?25h | |
[?25l[41;1H[K[41;1H:set ff=unix cpo-=A | |
[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:.,/ENDTEST/-1w! Xdotest | |
"Xdotest" [41;11H[K[41;11H[New File] 40 lines, 1352 characters written[5;1H[?12l[?25h[?25l[41;1H[K[41;1H:set ff& cpo+=A | |
[5;1H[?12l[?25h[?25l[41;1H/ENDTEST[41;10H[K[41;1H[1;40r[1;1H[7M[1;41r[34;1HG:put =matchstr(\"כ[34m~P[mכ[34m~Q[mכ[34m~R[mכ[34m~S[m\", \".\", 0, 2) " כ[34m~Q[m | |
:put =matchstr(\"כ[34m~P[mכ[34m~Q[mכ[34m~R[mכ[34m~S[m\", \"..\", 0, 2) " כ[34m~Q[mכ[34m~R[m | |
:put =matchstr(\"כ[34m~P[mכ[34m~Q[mכ[34m~R[mכ[34m~S[m\", \".\", 0, 0) " כ[34m~P[m | |
:put =matchstr(\"כ[34m~P[mכ[34m~Q[mכ[34m~R[mכ[34m~S[m\", \".\", 4, -1) " כ[34m~R[m | |
:w! | |
:qa! | |
ENDTEST[41;1H[K[40;1H[?12l[?25h[?25l[1;40r[40;1H | |
[1;41r[40;1H[?12l[?25h[?25l | |
:so! Xdotest | |
[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hso mbyte.vim | |
[?25l[40;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hset nocompatible encoding=utf-8 termencoding=latin1 viminfo+=nviminfo | |
[?25l[27m[m[H[2J[1;1Hx/\Md\*e\{2}f\+/e | |
x:set nomagic | |
/g\*h\{2}i\+/e | |
x/\mj*k\{2}l\+/e | |
x/\vm*n{2}o+/e | |
x/\V^aa$ | |
x:set magic | |
/\v(a)(b)\2\1\1/e | |
x/\V[ab]\(\[xy]\)\1 | |
x:" Now search for multi-byte without composing char | |
/ߍ | |
x:" Now search for multi-byte with composing char | |
/ߍ | |
x:" find word by change of word class | |
/߿\<߿߿\>߿ | |
x:" Test \%u, [\u] and friends | |
/\%u20ac | |
x/[\u4f7f\u5929]\+ | |
x/\%U12345678 | |
x/[\U1234abcd\u1234\uabcd] | |
x/\%d21879b | |
x/ [[=A=]]* [[=B=]]* [[=C=]]* [[=D=]]* [[=E=]]* [[=F=]]* [[=G=]]* [[=H=]]* [[=I=]]* [[=J=]]* [[=K=]]* [[=L=]]* [[=M=]]* [[=N=]]* [[=O=]]* [[=P=]][23;1H]* [[=Q=]]* [[=R=]]* [[=S=]]* [[=T=]]* [[=U=]]* [[=V=]]* [[=W=]]* [[=X=]]* [[=Y=]]* [[=Z=]]*/e | |
x/ [[=a=]]* [[=b=]]* [[=c=]]* [[=d=]]* [[=e=]]* [[=f=]]* [[=g=]]* [[=h=]]* [[=i=]]* [[=j=]]* [[=k=]]* [[=l=]]* [[=m=]]* [[=n=]]* [[=o=]]* [[=p=]][25;1H]* [[=q=]]* [[=r=]]* [[=s=]]* [[=t=]]* [[=u=]]* [[=v=]]* [[=w=]]* [[=x=]]* [[=y=]]* [[=z=]]*/e | |
x:" Test backwards search from a multi-byte char | |
/x | |
x?. | |
x:let @w=':%s#comb[i]nations#߿mߣg' | |
:@w | |
:?^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 | |
[?12l[?25h[?25l | |
/[?12l[?25h^1 | |
[?25l[1;40r[40;1H | |
[1;41r[40;1H1 a aa abb abbccc[41;1H[K[40;1H[?12l[?25h[?25l | |
/[?12l[?25ha*b\{2}c\+/e | |
[?25l[40;17H[?12l[?25h[?25l[40;17H[K[40;16H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h\Md\*e\{2}f\+/e | |
[?25l[1;40r[40;1H | |
[1;41r[40;1H2 d dd dee deefff[41;1H[K[40;17H[?12l[?25h[?25l[40;17H[K[40;16H[?12l[?25h[?25l | |
:[?12l[?25hset nomagic | |
[?25l[40;16H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hg\*h\{2}i\+/e | |
[?25l[1;40r[40;1H | |
[1;41r[40;1H3 g gg ghh ghhiii[41;1H[K[40;17H[?12l[?25h[?25l[40;17H[K[40;16H[?12l[?25h[?25l | |
/[?12l[?25h\mj*k\{2}l\+/e | |
[?25l[1;40r[40;1H | |
[1;41r[40;1H4 j jj jkk jkklll[41;1H[K[40;17H[?12l[?25h[?25l[40;17H[K[40;16H[?12l[?25h[?25l | |
/[?12l[?25h\vm*n{2}o+/e | |
[?25l[1;40r[40;1H | |
[1;41r[40;1H5 m mm mnn mnnooo[41;1H[K[40;17H[?12l[?25h[?25l[40;17H[K[40;16H[?12l[?25h[?25l | |
/[?12l[?25h\V^aa$ | |
[?25l[1;40r[40;1H | |
[1;41r[40;1H6 x ^aa$ x[41;1H[K[40;5H[?12l[?25h[?25laa$ x[40;10H[K[40;5H[?12l[?25h[?25l | |
:[?12l[?25hset magic | |
[?25l[40;5H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h\v(a)(b)\2\1\1/e | |
[?25l[1;40r[40;1H | |
[1;41r[40;1H7 (a)(b) abbaa[41;1H[K[40;14H[?12l[?25h[?25l[40;14H[K[40;13H[?12l[?25h[?25l | |
/[?12l[?25h\V[ab]\(\[xy]\)\1 | |
[?25l[1;40r[40;1H | |
[1;41r[40;1H8 axx [ab]xx[41;1H[K[40;7H[?12l[?25h[?25lab]x[40;12H[K[40;7H[?12l[?25h[?25l | |
:[?12l[?25h" Now search for multi-byte without composing char | |
[?25l[40;7H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hߍ[?25l[1;40r[40;1H | |
[1;41r[40;1H9 ߿x ߿x[41;1H[K[40;8H[?12l[?25h[?25lx[40;9H[K[40;8H[?12l[?25h[?25l | |
:[?12l[?25h" Now search for multi-byte with composing char | |
[?25l[40;8H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h߈ߍ[?25l[1;40r[40;1H | |
[1;41r[40;1Ha ߿x ߿x[41;1H[K[40;8H[?12l[?25h[?25lx[40;9H[K[40;8H[?12l[?25h[?25l | |
:[?12l[?25h" find word by change of word class | |
[?25l[40;8H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h߿\<߿߿\>߿ | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Hb ߿߿߿߿[41;1H[K[40;3H[?12l[?25h[?25l߿߿߿[40;9H[K[40;3H[?12l[?25h[?25l | |
:[?12l[?25h" Test \%u, [\u] and friends | |
[?25l[40;3H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25h\%u20ac | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Hc x ̿x[41;1H[K[40;6H[?12l[?25h[?25lx[40;7H[K[40;6H[?12l[?25h[?25l | |
/[?12l[?25h[\u4f7f\u5929]\+ | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Hd ߿߿x[41;1H[K[40;3H[?12l[?25h[?25l߿x [40;7H[K[40;3H[?12l[?25h[?25l | |
/[?12l[?25h\%U12345678 | |
[?25l[1;40r[40;1H | |
[1;41r[40;1He ࠹[41;1H[K[40;3H[?12l[?25h[?25ly[40;4H[K[40;3H[?12l[?25h[?25l | |
/[?12l[?25h[\U1234abcd\u1234\uabcd] | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Hf ࠺[41;1H[K[40;3H[?12l[?25h[?25lz[40;4H[K[40;3H[?12l[?25h[?25l | |
/[?12l[?25h\%d21879b | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Hg a߿bb[41;1H[K[40;4H[?12l[?25h[?25lbb[40;6H[K[40;4H[?12l[?25h[?25l | |
/[?12l[?25h [[=A=]]* [[=B=]]* [[=C=]]* [[=D=]]* [[=E=]]* [[=F=]]* [[=G=]]* [[=H=]]* [[=I=]]* [[=J=]]* [[=K=]]* [[=L=]]* [[=M=]]* [[=N=]]* [[=O=]]* [[=P=] | |
[40;144H][41;1H* [[=Q=]]* [[=R=]]* [[=S=]]* [[=T=]]* [[=U=]]* [[=V=]]* [[=W=]]* [[=X=]]* [[=Y=]]* [[=Z=]]*/e | |
[?25l[40;1H[1m[37m[41mE868: Error building NFA with equivalence class![m[40;49H[K[41;1H[K[41;1H[32mPress ENTER or type command to continue[?12l[?25h[m[1;1H[L[?25l[1;1Hx/\%U12345678 | |
x/[\U1234abcd\u1234\uabcd] | |
x/\%d21879b[3;12H[K[4;3H [[=A=]]* [[=B=]]* [[=C=]]* [[=D=]]* [[=E=]]* [[=F=]]* [[=G=]]* [[=H=]]* [[=I=]]* [[=J=]]* [[=K=]]* [[=L=]]* [[=M=]]* [[=N=]]* [[=O=]]* [[=P=]][5;1H]* [[=Q=]]* [[=R=]]* [[=S=]]* [[=T=]]* [[=U=]]* [[=V=]]* [[=W=]]* [[=X=]]* [[=Y=]]* [[=Z=]]*/e[6;7Ha[8Cb[8Cc[8Cd[8Ce[8Cf[8Cg[8Ch[8Ci[8Cj[8Ck[8Cl[8Cm[8Cn[8Co[8Cp=]][7;1H]* [[=q[8Cr[8Cs[8Ct[8Cu[8Cv[8Cw[8Cx[8Cy[8Cz | |
x:" Test backwards search from a multi-byte char[8;49H[K[9;1H/x[9;4H[K[10;2H?.[10;5H[K[11;1Hx:let @w=':%s#comb[i]nations#߿mߣg' | |
:@w | |
:?^1?,$w! test.out[13;19H[K[14;2He! test.out | |
G:put =matchstr(\"߿߿\", \".\", 0, 2) " ߍ | |
:put =matchstr(\"߿߿\", \"..\", 0, 2) " ߿ | |
:put =matchstr(\"߿߿\", \".\", 0, 0) " ߛ[17;42H[K[18;29H\", 4, -1) " ߛ[18;43H[K[19;2Hw![19;4H[K[20;2Hqa![20;6H[K[21;1HENDTEST[22;1H[K[23;1H1 a aa abb abbcc | |
2 d dd dee deeff | |
3 g gg ghh ghhii | |
4 j jj jkk jkkll | |
5 m mm mnn mnnoo | |
6 x aa$ x[28;10H[K[29;1H7 (a)(b) abba[29;14H[K[30;1H8 axx ab]xx | |
9 ߿x ࠸[31;10H[K[32;1Ha ߿x ࠸[32;9H[K[33;1Hb ߿߿߿ | |
c x [34;7H[K[35;1Hd ߿x [35;7H[K[36;1He y[36;5H[K[37;1Hf z [37;5H[K[38;1Hg abb | |
h AAÃŅ߿߿߿ߠB߿ Cǿ߿ߠD߿߿ߠEɉˋ߿߿߿ߠFߠG߿߿߿߿ H߿߿ߠI͍Ϗ߿߿߿ߠJߠK߿߿ L߿߿߿ M߿ Nѿ߿߿ OӓՕט߿߿߿߿ P߿ Q R߿߿ߠS߿߿ [40;1HߠT߿߿ߠUښܜ߿߿߿߿ߠVߠW߿߿ߠX߿ Yݿ߿߿ߠZ߿߿߿[41;1H[K[40;54H[?12l[?25h[?25l[40;54H[K[40;53H[?12l[?25h[?25l | |
/[?12l[?25h [[=a=]]* [[=b=]]* [[=c=]]* [[=d=]]* [[=e=]]* [[=f=]]* [[=g=]]* [[=h=]]* [[=i=]]* [[=j=]]* [[=k=]]* [[=l=]]* [[=m=]]* [[=n=]]* [[=o=]]* [[=p=] | |
[40;144H][41;1H* [[=q=]]* [[=r=]]* [[=s=]]* [[=t=]]* [[=u=]]* [[=v=]]* [[=w=]]* [[=x=]]* [[=y=]]* [[=z=]]*/e | |
[?25l[40;1H[1m[37m[41mE868: Error building NFA with equivalence class![m[40;49H[K[41;1H[K[41;1H[32mPress ENTER or type command to continue[?12l[?25h[m[1;1H[L[?25l[1;1Hx/\%d21879b | |
x/ [[=A=]]* [[=B=]]* [[=C=]]* [[=D=]]* [[=E=]]* [[=F=]]* [[=G=]]* [[=H=]]* [[=I=]]* [[=J=]]* [[=K=]]* [[=L=]]* [[=M=]]* [[=N=]]* [[=O=]]* [[=P=]][3;1H]* [[=Q=]]* [[=R=]]* [[=S=]]* [[=T=]]* [[=U=]]* [[=V=]]* [[=W=]]* [[=X=]]* [[=Y=]]* [[=Z=]]*/e[4;7Ha[8Cb[8Cc[8Cd[8Ce[8Cf[8Cg[8Ch[8Ci[8Cj[8Ck[8Cl[8Cm[8Cn[8Co[8Cp=]][5;1H]* [[=q[8Cr[8Cs[8Ct[8Cu[8Cv[8Cw[8Cx[8Cy[8Cz | |
x:" Test backwards search from a multi-byte char[6;49H[K[7;1H/x[7;4H[K[8;2H?.[8;5H[K[9;1Hx:let @w=':%s#comb[i]nations#߿mߣg' | |
:@w | |
:?^1?,$w! test.out[11;19H[K[12;2He! test.out | |
G:put =matchstr(\"߿߿\", \".\", 0, 2) " ߍ | |
:put =matchstr(\"߿߿\", \"..\", 0, 2) " ߿ | |
:put =matchstr(\"߿߿\", \".\", 0, 0) " ߛ[15;42H[K[16;29H\", 4, -1) " ߛ[16;43H[K[17;2Hw![17;4H[K[18;2Hqa![18;6H[K[19;1HENDTEST[20;1H[K[21;1H1 a aa abb abbcc | |
2 d dd dee deeff | |
3 g gg ghh ghhii | |
4 j jj jkk jkkll | |
5 m mm mnn mnnoo | |
6 x aa$ x[26;10H[K[27;1H7 (a)(b) abba[27;14H[K[28;1H8 axx ab]xx | |
9 ߿x ࠸[29;10H[K[30;1Ha ߿x ࠸[30;9H[K[31;1Hb ߿߿߿ | |
c x [32;7H[K[33;1Hd ߿x [33;7H[K[34;1He y[34;5H[K[35;1Hf z [35;5H[K[36;1Hg abb | |
h AAÃŅ߿߿߿ߠB߿ Cǿ߿ߠD߿߿ߠEɉˋ߿߿߿ߠFߠG߿߿߿߿ H߿߿ߠI͍Ϗ߿߿߿ߠJߠK߿߿ L߿߿߿ M߿ Nѿ߿߿ OӓՕט߿߿߿߿ P߿ Q R߿߿ߠS߿߿ [38;1HߠT߿߿ߠUښܜ߿߿߿߿ߠVߠW߿߿ߠX߿ Yݿ߿߿ߠZ߿߿ߍ | |
i aᢢ䥥߿߿߿ߠb߿ c翿߿ d߿߿ߠe骪뿿߿߿ߠfߠg߿߿߿߿ h߿߿߿ i�߿߿ j߿ k߿߿ l߿߿߿ m߿ n߿ߠo��߿߿߿ p߿ q r߿߿ߠs߿ [40;1H߿ߠt߿߿߿ u߿߿߿߿ߠvߠw߿߿߿ x߿ y��߿߿ z߿߿߿[41;1H[K[40;59H[?12l[?25h[?25l[40;59H[K[40;58H[?12l[?25h[?25l | |
:[?12l[?25h" Test backwards search from a multi-byte char | |
[?25l[40;58H[?12l[?25h[?25l[41;1H[K[41;1H/[?12l[?25hx | |
[?25l[1;40r[40;1H | |
[1;41r[40;1Hj 0123࠸[41;1H[K[40;8H[?12l[?25h[?25l[40;8H[K[40;7H[?12l[?25h[?25l | |
?[?12l[?25h. | |
[?25l[40;6H[?12l[?25h[?25lߛ[40;7H[K[40;6H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25hlet @w=':%s#comb[i]nations#߈߿࠭mm߈߈߈[1C#g' | |
[?25l[40;6H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25h@w | |
[?25l[1;40r[1;1H[2M[1;41r[39;1Hk ߿mߍ | |
[1m[34m~ [m[41;1H[K[39;1H[?12l[?25h[?25l | |
:[?12l[?25h?^1?,$w! test.out | |
[?25l"test.out" [41;12H[K[41;12H[New] 20L, 1011C written[39;1H[?12l[?25h[?25l[41;1H[K[41;1H:[?12l[?25he! test.out | |
[?25l"test. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment