Wed Aug 29 23:49:58 GMT 2007 make[1]: Entering directory `/sources/vim71' Starting make in the src directory. If there are problems, cd to the src directory and run make there cd src && make test make[2]: Entering directory `/sources/vim71/src' make -f Makefile vim make[3]: Entering directory `/sources/vim71/src' make[3]: `vim' is up to date. make[3]: Leaving directory `/sources/vim71/src' if test -n "yes" -a -f po/Makefile; then \ cd po; make -f Makefile check VIM=../vim; \ fi make[3]: Entering directory `/sources/vim71/src/po' ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq af.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"af.po" "af.po" 5409 lines, 133799 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch af.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq ca.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"ca.po" "ca.po" 4947 lines, 129501 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch ca.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq cs.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"cs.po" "cs.po" 4664 lines, 111009 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch cs.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq de.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"de.po" "de.po" 6135 lines, 157126 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch de.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq en_GB.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"en_GB.po" "en_GB.po" 292 lines, 8821 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch en_GB.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq es.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"es.po" "es.po" 5453 lines, 139991 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch es.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq fr.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"fr.po" "fr.po" 6543 lines, 176361 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch fr.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq ga.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"ga.po" "ga.po" 5626 lines, 140933 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch ga.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq it.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"it.po" "it.po" 6167 lines, 155031 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch it.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq ja.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"ja.po" "ja.po" 6097 lines, 151279 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch ja.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq ko.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"ko.po" "ko.po" 5154 lines, 122328 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch ko.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq no.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"no.po" "no.po" 6184 lines, 150977 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch no.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq pl.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"pl.po" "pl.po" 6148 lines, 152937 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch pl.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq ru.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"ru.po" "ru.po" 5237 lines, 166173 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch ru.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq sk.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"sk.po" "sk.po" 5837 lines, 147784 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch sk.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq sv.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"sv.po" "sv.po" 6166 lines, 149571 characters Mismatching % in line 14 msgid: msgstr: % search hit BOTTOM, continuing at TOP [?1l>[?12l[?25h[?1049lmake[3]: *** [sv.ck] Error 1 ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq uk.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"uk.po" "uk.po" 4926 lines, 116555 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch uk.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq vi.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"vi.po" "vi.po" 5214 lines, 144437 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch vi.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq zh_CN.UTF-8.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"zh_CN.UTF-8.po" "zh_CN.UTF-8.po" 6158 lines, 147881 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch zh_CN.UTF-8.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq zh_CN.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"zh_CN.po" "zh_CN.po" 6158 lines, 136858 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch zh_CN.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq zh_TW.UTF-8.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"zh_TW.UTF-8.po" "zh_TW.UTF-8.po" 5300 lines, 127697 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch zh_TW.UTF-8.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq zh_TW.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"zh_TW.po" "zh_TW.po" 5293 lines, 117728 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch zh_TW.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq cs.cp1250.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"cs.cp1250.po" "cs.cp1250.po" 4664 lines, 111017 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch cs.cp1250.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq ja.sjis.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"ja.sjis.po" "ja.sjis.po" 6097 lines, 151373 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch ja.sjis.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq pl.cp1250.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"pl.cp1250.po" "pl.cp1250.po" 6148 lines, 152933 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch pl.cp1250.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq pl.UTF-8.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"pl.UTF-8.po" "pl.UTF-8.po" 6148 lines, 155258 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch pl.UTF-8.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq ru.cp1251.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"ru.cp1251.po" "ru.cp1251.po" 5237 lines, 131462 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch ru.cp1251.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq sk.cp1250.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"sk.cp1250.po" "sk.cp1250.po" 5837 lines, 147780 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch sk.cp1250.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq uk.cp1251.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"uk.cp1251.po" "uk.cp1251.po" 4926 lines, 116555 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch uk.cp1251.ck ../vim -u NONE -e -S check.vim -c "if error == 0 | q | endif" -c cq zh_CN.cp936.po [?1049h[?1h=[?12;25h[?12l[?25h[?25l"zh_CN.cp936.po" "zh_CN.cp936.po" 6158 lines, 136870 characters search hit BOTTOM, continuing at TOP OK [?1l>[?12l[?25h[?1049ltouch zh_CN.cp936.ck make[3]: Target `check' not remade because of errors. make[3]: Leaving directory `/sources/vim71/src/po' make[2]: [test] Error 2 (ignored) if test vim != vim -a ! -e vim; then \ ln -s vim vim; \ fi cd testdir; make -f Makefile VIMPROG=../vim make[3]: Entering directory `/sources/vim71/src/testdir' echo Test results: >test.log rm -f test1.failed tiny.vim small.vim mbyte.vim test.ok X* viminfo ../vim -u unix.vim -U NONE --noplugin -s dotest.in test1.in Vim: Warning: Output is not to a terminal [?1049h[?1h=[?12;25h[?12l[?25h[?25l"test1.in" 40 lines, 1465 charactersFirst 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. STARTTEST :" Write a single line to test.out to check if testing works at all. :%d athis is a test^[: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! ^[:w! mbyte.vim :" If +multi_byte feature supported, make mbyte.vim empty. :if has("multi_byte") | sp another | w! mbyte.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 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25hset cp [?25l[?12l[?25h[?25l:[?12l[?25hmap dotest /^STARTTEST^^Mj:set ff=unix cpo-=A^^M:.,/ENDTEST/-1w! Xdotest^^M:set ff& cpo+=A^^Mnj0:so! Xdotest^^Mdotest [?25l[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" [New File] 21 lines, 661 characters written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l/ENDTEST[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25h" Write a single line to test.out to check if testing works at all. [?25l[?12l[?25h[?25l:[?12l[?25h%d [?25l~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --No lines in buffer--[?12l[?25h[?25lthis is a test[?12l[?25h[?25l:[?12l[?25hw! test.out [?25l"test.out" [New File] 1 line, 15 characters written[?12l[?25h[?25l:[?12l[?25h" Create small.vim and tiny.vim empty, create mbyte.vim to skip the test. [?25l[?12l[?25h [?25l[?12l[?25h[?25l:[?12l[?25hw! small.vim [?25l"small.vim" [New File] 1 line, 1 character written[?12l[?25h[?25l:[?12l[?25hw! tiny.vim [?25l"tiny.vim" [New File] 1 line, 1 character written[?12l[?25h[?25le! test.ok w! test.outqa![?12l[?25h[?25l:[?12l[?25hw! mbyte.vim [?25l"mbyte.vim" [New File] 4 lines, 28 characters written[?12l[?25h[?25l:[?12l[?25h" If +multi_byte feature supported, make mbyte.vim empty. [?25l[?12l[?25h[?25l:[?12l[?25hif has("multi_byte") | sp another | w! mbyte.vim | q | endif [?25l"another" [New File] "mbyte.vim" 0 lines, 0 characters writtene! test.ok[?12l[?25h[?25l:[?12l[?25h" If +eval feature supported quit here, leaving tiny.vim and small.vim empty. [?25l[?12l[?25h[?25l:[?12l[?25h" Otherwise write small.vim to skip the test. [?25l[?12l[?25h[?25l:[?12l[?25hif 1 | q! | endif [?25l[?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 ../vim -u unix.vim -U NONE --noplugin -s dotest.in test2.in Vim: Warning: Output is not to a terminal [?1049h[?1h=[?12;25h[?12l[?25h[?25l"test2.in" 29 lines, 717 charactersThis 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("")) /^second /URL :call append(1, expand("")) :if has("ebcdic") : set isf=@,240-249,/,.,-,_,+,,,$,:,~,\ :else : set isf=@,48-57,/,.,-,_,+,,,$,:,~,\ :endif /^third /name :call append(2, expand("")) /^fourth /URL :call append(3, expand("")) 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 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25hset cp [?25l[?12l[?25h[?25l:[?12l[?25hmap dotest /^STARTTEST^^Mj:set ff=unix cpo-=A^^M:.,/ENDTEST/-1w! Xdotest^^M:set ff& cpo+=A^^Mnj0:so! Xdotest^^Mdotest [?25l[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" [New File] 19 lines, 336 characters written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l/ENDTEST[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25hso small.vim [?25l[?12l[?25h[?25l/[?12l[?25h^first [?25lsearch hit BOTTOM, continuing at TOP[?12l[?25h[?25l/[?12l[?25htmp [?25l[?12l[?25h[?25l:[?12l[?25hcall append(0, expand("")) [?25lURL://machine.name/tmp/vimtest2a[?12l[?25h[?25l/[?12l[?25h^second [?25l[?12l[?25h[?25l/[?12l[?25hURL [?25l[?12l[?25h[?25l:[?12l[?25hcall append(1, expand("")) [?25lURL://machine.name/tmp/vimtest2b[?12l[?25h[?25l:[?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 [?25lURL://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[?12l[?25h[?25l/[?12l[?25h^third [?25l[?12l[?25h[?25l/[?12l[?25hname [?25l[?12l[?25h[?25l:[?12l[?25hcall append(2, expand("")) [?25lURL:\\machine.name\vimtest2c[?12l[?25h[?25l/[?12l[?25h^fourth [?25l[?12l[?25h[?25l/[?12l[?25hURL [?25l[?12l[?25h[?25l:[?12l[?25hcall append(3, expand("")) [?25lURL:\\machine.name\tmp\vimtest2d[?12l[?25h[?25l29 fewer lines~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25hwq! test.out [?25l"test.out" [New File] 4 lines, 128 characters written [?1l>[?12l[?25h[?1049lrm -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 ../vim -u unix.vim -U NONE --noplugin -s dotest.in test3.in Vim: Warning: Output is not to a terminal [?1049h[?1h=[?12;25h[?12l[?25h[?25l"test3.in" 1320 lines, 13734 characters/* vim: set cin ts=4 sw=4 : */ Test for 'cindent' STARTTEST :so small.vim :set nocompatible viminfo+=nviminfo :edit" read modeline /start of AUTO =/end of AUTO ENDTEST /* start of AUTO matically checked vim: set ts=4 : */ {if (test)cmd1;cmd2; } {if (test)cmd1;elsecmd2; } {if (test){cmd1;cmd2;} } {if (test){cmd1;else} } {while (this)if (test)cmd1;cmd2; } {while (this)if (test)cmd1;elsecmd2; } {[?12l[?25h[?25l:[?12l[?25hset cp [?25l[?12l[?25h[?25l:[?12l[?25hmap dotest /^STARTTEST^^Mj:set ff=unix cpo-=A^^M:.,/ENDTEST/-1w! Xdotest^^M:set ff& cpo+=A^^Mnj0:so! Xdotest^^Mdotest [?25l/* vim: set cin ts=4 sw=4 : */[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" [New File] 5 lines, 116 characters written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l/ENDTEST[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25hso small.vim [?25l[?12l[?25h[?25l:[?12l[?25hset nocompatible viminfo+=nviminfo [?25l[?12l[?25h[?25l:[?12l[?25hedit " read modeline [?25l"test3.in"1320L, 13734C[?12l[?25h[?25l/[?12l[?25hstart of AUTO [?25l[?12l[?25h[?25l/[?12l[?25hend of AUTO [?25l789 lines to indent... 7500 650 550 450 350 250 150 50 lines to indent... 790 lines indented [?12l[?25h[?25l/^STARTTEST lulu; } int main () {switch (c){case 'c': if (cond){}} } main() {(void) MyFancyFuasdfadsfnction(argument); } main() {char foo[] = "/*";/* asdf */hello } /* end of AUTO */ STARTTEST :set tw=0 wm=60 columns=80 noai fo=croq /serious/e a about life, the universe, and the rest^[ 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^[/happens jothere^[/below oline^[/this Ohello^[ ENDTEST {/** Testing for comments, without 'cin' set*/ /*[?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 3L, 93C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l/ENDTEST/+-1[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25hset tw=0 wm=60 columns=80 noai fo=croq [?25l[?12l[?25h[?25llulu; } int main () {switch (c){case 'c': if (cond){}} } main() {(void) MyFancyFuasdfadsfnction(argument); } main() {char foo[] = "/*";/* asdf */hello } /* end of AUTO */ STARTTEST :set tw=0 wm=60 columns=80 noai fo=croq /serious/e a about life, the universe, and the rest^[ 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^[/happens jothere^[/below oline^[/this Ohello^[ ENDTEST {/** Testing for comments, without 'cin' set*/ /*[?12l[?25h[?25l/[?12l[?25hserious/e [?25l[?12l[?25h[?25l-- INSERT --* about life, the * universe, and the * rest important big[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 6L, 78C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l/ENDTEST/+-1[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25hset nocin [?25l[?12l[?25h[?25l/[?12l[?25hcomments [?25l[?12l[?25h[?25l */[?12l[?25h[?25l -- INSERT -- about life[?12l[?25h[?25l /[?12l[?25hhappens [?25l/* * what happens here?[?12l[?25h[?25l */[?12l[?25h[?25l -- INSERT -- there[?12l[?25h[?25l /[?12l[?25hbelow [?25l/*the end of the comment, try inserting a line below */[?12l[?25h[?25l -- INSERT -- line[?12l[?25h[?25l /[?12l[?25hthis [?25l/* how aboutthis one */[?12l[?25h[?25l -- INSERT --hello[?12l[?25h[?25l this one */[?12l[?25h[?25l /^STARTTEST } STARTTEST[?12l[?25h[?25l :set cin [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 3L, 18C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1/vec2 ==[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cin [?25l[?12l[?25h[?25l/[?12l[?25hvec2 [?25l{ var = this + that + vec[0] * vec[0]+ vec[1] * vec[1]+ vec2[2] * vec[2];[?12l[?25h[?25l+ vec2[2] * vec[2];[?12l[?25h[?25l }[?12l[?25h[?25l /^STARTTEST STARTTEST[?12l[?25h[?25l :set cin [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 5L, 51C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1:set cino=}4 /testing1 k2==/testing2 k2==[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cin [?25l[?12l[?25h[?25l:[?12l[?25hset cino=}4 [?25l[?12l[?25h[?25l/[?12l[?25htesting1 [?25l{asdf asdflkajds f;if (tes & ting) {asdf asdf asdf ;asdfa sdf asdf;}testing1;[?12l[?25h[?25l}[?12l[?25h[?25l /[?12l[?25htesting2 [?25lif (tes & ting){asdf asdf asdf ;asdfa sdf asdf;}testing2;[?12l[?25h[?25l}[?12l[?25h[?25l /^STARTTEST } STARTTEST[?12l[?25h[?25l :set cin [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 4L, 36C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1:set cino=(0,)20 /main =][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cin [?25l[?12l[?25h[?25l:[?12l[?25hset cino=(0,)20 [?25l[?12l[?25h[?25l/[?12l[?25hmain [?25lmain ( int first_par, /*[?12l[?25h[?25l 19 lines to indent... 20indented [?12l[?25h[?25l * Comment for[?12l[?25h[?25l /^STARTTEST * first par*/int second_par /** Comment for* second par*/) {func( first_par, /** Comment for* first par*/second_par /** Comment for* second par*/); } STARTTEST[?12l[?25h[?25l :set cin [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 3L, 26C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1:set cino= ]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cin [?25l[?12l[?25h[?25l:[?12l[?25hset cino= [?25l[?12l[?25h[?25l{[?12l[?25h[?25l 11 lines to indent... 12indented [?12l[?25h[?25l do[?12l[?25h[?25l /^STARTTEST {if (){if ()asdf;elseasdf;}} while ();cmd;/* this should go under the } */ } STARTTEST[?12l[?25h[?25l ]]=][ [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 1L, 6C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1[?12l[?25h[?25l ENDTEST[?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 8 lines to indent... 9indented [?12l[?25h[?25l if ( k() ) {[?12l[?25h[?25l /^STARTTEST l();} else { /* Start (two words) end */m();}n(); } STARTTEST[?12l[?25h[?25l :set cino={s,e-s [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 23C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 ]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino={s,e-s [?25l[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 7 lines to indent... 8indented  {[?12l[?25h[?25l if ( k() )[?12l[?25h[?25l /^STARTTEST {l();} else { /* Start (two words) end */m();}n(); /* should be under the if () */ } STARTTEST[?12l[?25h[?25l :set cino={s,fs [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 25C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 ]]=/ foo[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino={s,fs [?25l[?12l[?25h[?25lvoid bar(void) {[?12l[?25h[?25l /[?12l[?25h foo [?25l30 lines to indent... 31indented  {[?12l[?25h[?25l/^STARTTEST { 3, 4 },}while (a){foo(&a);}{int a;{a = a + 1;}}b = a;} void func(void){a = 1;{b = 2;}c = 3;d = 4;} /* foo */ STARTTEST :set cino= /while ohere^[ ENDTEST a() { do { a = a +a; } while ( a );/* add text under this line */ if ( a )a; } STARTTEST :set cino= com= /comment olabel2: b();^Mlabel3 /* post */:^M/* pre */ label4:^Mf(/*com*/);^Mif (/*com*/)^^Mcmd();^[ ENDTEST a() { label1:/* hmm */// comment }[?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 3L, 25C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l/ENDTEST/+-1[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino= [?25l[?12l[?25h[?25l/[?12l[?25hwhile [?25l[?12l[?25h[?25l-- INSERT --here[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 3L, 109C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l/ENDTEST/+-1[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino= com= [?25l[?12l[?25h[?25l/[?12l[?25hcomment [?25l[?12l[?25h[?25l -- INSERT --label2: b(); label3 /* post */: /* pre */ label4:f(/*com*/);if (/*com*/)cmd();[?12l[?25h[?25l }[?12l[?25h[?25l /^STARTTEST STARTTEST[?12l[?25h[?25l :set comments& comments^=s:/*,m:**,ex:*/ [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 3L, 53C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1/simple =5j[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset comments& comments^=s:/*,m:**,ex:*/ [?25l[?12l[?25h[?25l/[?12l[?25hsimple [?25l/* * A simple comment[?12l[?25h[?25l 5 lines to indent... 6indented * A simple comment[?12l[?25h[?25l */[?12l[?25h[?25l /^STARTTEST /* ** A different comment */ STARTTEST[?12l[?25h[?25l :set cino=c0 [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 3L, 70C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1:set comments& comments-=s1:/* comments^=s0:/* 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=c0 [?25l[?12l[?25h[?25l:[?12l[?25hset comments& comments-=s1:/* comments^=s0:/* [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 4 lines to indent... 5indented [?12l[?25h[?25l [?12l[?25h[?25l /^STARTTEST /*********A comment.*********/ } STARTTEST[?12l[?25h[?25l :set cino=c0,C1 [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 3L, 73C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1:set comments& comments-=s1:/* comments^=s0:/* 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=c0,C1 [?25l[?12l[?25h[?25l:[?12l[?25hset comments& comments-=s1:/* comments^=s0:/* [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 4 lines to indent... 5indented [?12l[?25h[?25l [?12l[?25h[?25l /^STARTTEST /*********A comment.*********/ } STARTTEST[?12l[?25h[?25l:set cino= ]]=][[?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 17C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1[?12l[?25h[?25l ENDTEST[?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino= [?25l[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 5 lines to indent... 6indented [?12l[?25h[?25l c = c1 &&[?12l[?25h[?25l /^STARTTEST (c2 ||c3) && c4; } STARTTEST[?12l[?25h[?25l :set cino=(s [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 23C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=(s [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 5 lines to indent... 6indented [?12l[?25h[?25l c = c1 &&[?12l[?25h[?25l /^STARTTEST (c2 ||c3) && c4; } STARTTEST[?12l[?25h[?25l :set cino=(s,U1 [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 28C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=(s,U1 [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 5 lines to indent... 6indented [?12l[?25h[?25l c = c1 &&[?12l[?25h[?25l /^STARTTEST (c2 ||c3) && c4; } STARTTEST[?12l[?25h[?25l :set cino=(0 [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 23C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=(0 [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 4 lines to indent... 5indented [?12l[?25h[?25l if ( c1[?12l[?25h[?25l /^STARTTEST && ( c2|| c3))foo; } STARTTEST[?12l[?25h[?25l :set cino=(0,w1 [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 28C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=(0,w1 [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 4 lines to indent... 5indented [?12l[?25h[?25l if ( c1[?12l[?25h[?25l /^STARTTEST && ( c2|| c3))foo; } STARTTEST[?12l[?25h[?25l :set cino=(s [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 23C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=(s [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 8 lines to indent... 9indented [?12l[?25h[?25l c = c1 && ([?12l[?25h[?25l /^STARTTEST c2 ||c3) && c4;if (c1 && c2)foo; } STARTTEST[?12l[?25h[?25l :set cino=(s,m1 [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 28C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=(s,m1 [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 8 lines to indent... 9indented [?12l[?25h[?25l c = c1 && ([?12l[?25h[?25l /^STARTTEST c2 ||c3) && c4;if (c1 && c2)foo; } STARTTEST[?12l[?25h[?25l :set cino=b1 [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 23C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=b1 [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 9 lines to indent... 10 lines indented [?12l[?25h[?25l switch (x)[?12l[?25h[?25l /^STARTTEST {case 1:a = b;break;default:a = 0;break;} } STARTTEST[?12l[?25h[?25l :set cino=(0,W5 [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 26C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=(0,W5 [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 10 lines to indent... 11indented [?12l[?25h[?25l invokeme([?12l[?25h[?25l /^STARTTEST argu,ment);invokeme(argu,ment);invokeme(argu,ment); } STARTTEST[?12l[?25h[?25l :set cino=/6 [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 23C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=/6 [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l 3 lines to indent... 4indented [?12l[?25h[?25l statement;[?12l[?25h[?25l /^STARTTEST // comment 1// comment 2 } STARTTEST[?12l[?25h[?25l :set cino= [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 3L, 34C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-12kdd]]/comment 1/+1 ==[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino= [?25l[?12l[?25h[?25l==ENDTEST[?12l[?25h[?25lvoid f() {[?12l[?25h[?25l /[?12l[?25hcomment 1/+1 [?25lstatement;// comment 1// comment 2[?12l[?25h[?25l // comment 2[?12l[?25h[?25l }[?12l[?25h[?25l /^STARTTEST STARTTEST[?12l[?25h[?25l :set cino=g0 [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 23C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=g0 [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lclass CAbc {[?12l[?25h[?25l 6 lines to indent... 7indented [?12l[?25h[?25l int Test() { return FALSE; }[?12l[?25h[?25l /^STARTTEST public: // commentvoid testfall(); protected:void testfall(); }; STARTTEST[?12l[?25h[?25l :set cino=+20 [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 24C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=+20 [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lvoid foo() {[?12l[?25h[?25l 4 lines to indent... 5indented [?12l[?25h[?25l if (a)[?12l[?25h[?25l /^STARTTEST {} elseasdf; } STARTTEST[?12l[?25h[?25l :set cino=(0,W2s [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 27C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=(0,W2s [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25l {[?12l[?25h[?25l 34 lines to indent... 35indented [?12l[?25h[?25l averylongfunctionnamelongfunctionnameaverylongfunctionname()->asd([?12l[?25h[?25l /^STARTTEST asdasdf,func(asdf,asdfadsf),asdfasdf);/* those are ugly, but consequent */func()->asd(asdasdf,averylongfunctionname(abc,dec)->averylongfunctionname(asdfadsf,asdfasdf,asdfasdf,),func(asdfadf,asdfasdf),asdasdf);averylongfunctionnameaverylongfunctionnameavery()->asd(fasdf(abc,dec)->asdfasdfasdf(asdfadsf,asdfasdf,asdfasdf,),func(asdfadf,asdfasdf),asdasdf); } STARTTEST[?12l[?25h[?25l :set cino=M1 [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 23C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1 2kdd]]=][[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=M1 [?25l[?12l[?25h[?25l2kdd]]=][ENDTEST[?12l[?25h[?25lint main () {[?12l[?25h[?25l 4 lines to indent... 5indented [?12l[?25h[?25l if (cond1 &&[?12l[?25h[?25l /^STARTTEST cond2)foo; } STARTTEST[?12l[?25h[?25l :g/^STARTTEST/.,/^ENDTEST/d [?12l[?25h[?25l :set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" 2L, 61C written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l /ENDTEST/+-1[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25hg/^STARTTEST/.,/^ENDTEST/d [?25l128 fewer linesvoid foo(){ if (a){ } else asdf;}{averylongfunctionnamelongfunctionnameaverylongfunctionname()->asd(asdasdf, func(asdf,asdfadsf), asdfasdf );/* those are ugly, but consequent */func()->asd(asdasdf,averylongfunctionname(abc, dec)->averylongfunctionname( asdfadsf, asdfasdf, asdfasdf, ),func(asdfadf, asdfasdf),asdasdf);averylongfunctionnameaverylongfunctionnameavery()->asd(fasdf(abc, dec)->asdfasdfasdf( asdfadsf, asdfasdf, asdfasdf, ),func(asdfadf, asdfasdf), asdasdf ); }int main (){if (cond1 && cond2 )foo; }[?12l[?25h[?25l:[?12l[?25h1;/start of AUTO/,$wq! test.out [?25l"test.out" [New] 1185L, 11386C written [?1l>[?12l[?25h[?1049l254,256c254,256 < int i; < cmd; < } --- > int i; > cmd; > } 258,262c258,262 < test) { /* this line doesn't work right */ < int i; < cmd; < } < break; --- > test) { /* this line doesn't work right */ > int i; > cmd; > } > break; 304c304 < b; --- > b; 382,384c382,384 < asdfasdf) < aasdf; < a = 9; --- > asdfasdf) > aasdf; > a = 9; 386,387c386,387 < aasdf; < a = 9; --- > aasdf; > a = 9; 389c389 < y = 2; --- > y = 2; 392c392 < here; --- > here; 395,397c395,397 < asdfasdf) < { < } --- > asdfasdf) > { > } 400,402c400,402 < asdfasdf) { < there; < } --- > asdfasdf) { > there; > } 405,406c405,406 < asdfasdf) < there; --- > asdfasdf) > there; 527c527 < bar; --- > bar; 540,541c540,541 < foo\ < bor"; --- > foo\ > bor"; 545,547c545,547 < asdf\ < asdf", < *bar; --- > asdf\ > asdf", > *bar; 554,556c554,556 < asdf\ < asdf", < *bar; --- > asdf\ > asdf", > *bar; 560,562c560,562 < asdf\ < asdf", < *bar; --- > asdf\ > asdf", > *bar; 583c583 < two; --- > two; 585c585 < jan; --- > jan; 587c587 < jannie; --- > jannie; 589c589 < krap; --- > krap; 591c591 < jan; --- > jan; 772,773c772,773 < { < } --- > { > } 830c830 < + vec2[2] * vec[2]; --- > + vec2[2] * vec[2]; 839c839 < } --- > } 845c845 < } --- > } 851,858c851,858 < * Comment for < * first par < */ < int second_par /* < * Comment for < * second par < */ < ) --- > * Comment for > * first par > */ > int second_par /* > * Comment for > * second par > */ > ) 861,868c861,868 < * Comment for < * first par < */ < second_par /* < * Comment for < * second par < */ < ); --- > * Comment for > * first par > */ > second_par /* > * Comment for > * second par > */ > ); 967,969c967,969 < f(/*com*/); < if (/*com*/) < cmd(); --- > f(/*com*/); > if (/*com*/) > cmd(); 1033,1034c1033,1034 < && ( c2 < || c3)) --- > && ( c2 > || c3)) 1042,1043c1042,1043 < && ( c2 < || c3)) --- > && ( c2 > || c3)) 1091,1092c1091,1092 < argu, < ment); --- > argu, > ment); 1094,1097c1094 < argu, < ment < ); < invokeme(argu, --- > argu, 1099c1096,1099 < ); --- > ); > invokeme(argu, > ment > ); 1106,1107c1106,1107 < // comment 1 < // comment 2 --- > // comment 1 > // comment 2 1144c1144 < asdfadsf), --- > asdfadsf), 1151,1162c1151,1162 < averylongfunctionname( < abc, < dec)->averylongfunctionname( < asdfadsf, < asdfasdf, < asdfasdf, < ), < func(asdfadf, < asdfasdf < ), < asdasdf < ); --- > averylongfunctionname( > abc, > dec)->averylongfunctionname( > asdfadsf, > asdfasdf, > asdfasdf, > ), > func(asdfadf, > asdfasdf > ), > asdasdf > ); 1172c1172 < asdfasdf), --- > asdfasdf), 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 ../vim -u unix.vim -U NONE --noplugin -s dotest.in test4.in Vim: Warning: Output is not to a terminal [?1049h[?1h=[?12;25h[?12l[?25h[?25l"test4.in" 31 lines, 839 charactersTest 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" split to Xxx, autocmd will do :brew G?this is a othis should be auto-indented^[ :" Append text with autoindent to this file :au! BufEnter Xxx :buf Xxx" go to Xxx, no autocmd anymore G?this is a othis should be in column 1^[:wq " append text without autoindent to Xxx G:r Xxx" include Xxx in the current file :?startstart?,$w! test.out :qa! ENDTEST startstart start of test file Xxx vim: set noai :this is a testthis is a testthis is a testthis is a test end of test file Xxx ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25hset cp [?25l[?12l[?25h[?25l:[?12l[?25hmap dotest /^STARTTEST^^Mj:set ff=unix cpo-=A^^M:.,/ENDTEST/-1w! Xdotest^^M:set ff& cpo+=A^^Mnj0:so! Xdotest^^Mdotest [?25lTest for autocommand that changes current buffer on BufEnter event.[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" [New File] 17 lines, 557 characters written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l/ENDTEST[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25hso small.vim [?25l[?12l[?25h[?25l:[?12l[?25hset nocompatible viminfo+=nviminfo [?25l[?12l[?25h[?25l:[?12l[?25hau BufEnter Xxx brew [?25l[?12l[?25h[?25l/[?12l[?25hstart of [?25l[?12l[?25h[?25l:[?12l[?25h.,/end of/w! Xxx " write test file Xxx [?25l"Xxx" [New] 7L, 124C written[?12l[?25h[?25l:[?12l[?25hset ai modeline modelines=3 [?25l[?12l[?25h[?25l:[?12l[?25hsp Xxx " split to Xxx, autocmd will do :brew [?25l"Xxx" 7L, 124CSTARTTEST: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 " split to Xxx, autocmd will do :brew G?this is aothis should be auto-indented^[ : Append text with autoindent to this file :au! BufEnter Xxx :buf Xxx " go to Xxx, no autocmd anymore G?this is aothis should be in column 1^[:wq " append text without autoindent to Xxx G:r Xxx include Xxx in the current file :?startstart?,$w! test.out :qa!ENDTESTstartstart start of test file Xxx vim: set noai : this is a test this is a test this is a test end of test file Xxxtest4.in : " Append text with autoindent to this file :au! BufEnter Xxx:buf Xxx " go to Xxx, no autocmd anymoreG?this is aothis should be in column 1^[:wq " append text without autoindent to XxxG:r Xxx " include Xxx in the current file:?startstart?,$w! test.out:qa!ENDTESTstartstartstart of test file Xxxvim: set noai : this is a test this is a test this is a test this is a testend of test file Xxxtest4.in test4.in" line 25 of 31 --80%-- col 1[?12l[?25h[?25l?[?12l[?25hthis is a [?25l[?12l[?25h[?25l-- INSERT -- this should be auto-indented[+]this should be auto-indented[+][?12l[?25h[?25l end of test file Xxx[?12l[?25h[?25l:[?12l[?25h " Append text with autoindent to this file [?25l[?12l[?25h[?25l:[?12l[?25hau! BufEnter Xxx [?25l[?12l[?25h[?25l:[?12l[?25hbuf Xxx " go to Xxx, no autocmd anymore [?25l"Xxx" 7L, 124Cstart of test file Xxx vim: set noai : this is a test this is a test this is a test this is a testend of test file Xxx~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Xxx [?12l[?25h[?25l?[?12l[?25hthis is a [?25l[?12l[?25h[?25l-- INSERT --this should be in column 1[+][?12l[?25h[?25l:[?12l[?25hwq " append text without autoindent to Xxx [?25l"Xxx8L, 151C writtenTest 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 " split to Xxx, autocmd will do :brewG?this is aothis should be auto-indented^[: " Append text with autoindent to this file:au! BufEnter Xxx:buf Xxx " go to Xxx, no autocmd anymoreG?this is aothis should be in column 1^[:wq " append text without autoindent to XxxG:r Xxx " include Xxx in the current file:?startstart?,$w! test.out:qa!ENDTESTstartstartstart of test file Xxxvim: set noai : this is a test this is a test this is a test this is a test this should be auto-indented end of test file Xxx~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25hr Xxx " include Xxx in the current file [?25l"Xxx" 8L, 151Cstart of test file Xxxvim: set noai : this is a test this is a test this is a test this is a testthis should be in column 1end of test file Xxx[?12l[?25h[?25l:[?12l[?25h?startstart?,$w! test.out [?25l"test.out" [New] 17L, 316C written[?12l[?25h[?25l:[?12l[?25hqa! [?25l[?1l>[?12l[?25h[?1049lrm -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 ../vim -u unix.vim -U NONE --noplugin -s dotest.in test5.in Vim: Warning: Output is not to a terminal [?1049h[?1h=[?12;25h[?12l[?25h[?25l"test5.in" 29 lines, 949 charactersTest 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" write test file Xxx :sp Xxx" split to Xxx :bwipe" delete buffer Xxx, now we're back here G?this is a othis is some more text^[ :" Append some text to this file :?start?,$w! test.out" Write current file contents :bwipe test.out" delete alternate buffer :au bufleave test5.in bwipe :bwipe!" delete current buffer, get an empty one ithis is another test line^[:w >>test.out :" append an extra line to the output file :qa! ENDTEST start of test file Xxx vim: set noai :this is a testthis is a testthis is a testthis is a test end of test file Xxx ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25hset cp [?25l[?12l[?25h[?25l:[?12l[?25hmap dotest /^STARTTEST^^Mj:set ff=unix cpo-=A^^M:.,/ENDTEST/-1w! Xdotest^^M:set ff& cpo+=A^^Mnj0:so! Xdotest^^Mdotest [?25lTest for autocommand that deletes the current buffer on BufLeave event.[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" [New File] 16 lines, 664 characters written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l/ENDTEST[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25hso small.vim [?25l[?12l[?25h[?25l:[?12l[?25hau BufLeave Xxx bwipe [?25l[?12l[?25h[?25l/[?12l[?25hstart of [?25l[?12l[?25h[?25l:[?12l[?25h.,/end of/w! Xxx " write test file Xxx [?25l"Xxx" [New File] 7 lines, 124 characters written[?12l[?25h[?25l:[?12l[?25hsp Xxx " split to Xxx [?25l"Xxx" 7 lines, 124 charactersstart of test file Xxxvim: set noai :this is a test this is a test this is a test this is a test end of test file Xxx ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Xxx : " Append some text to this file:?start?,$w! test.out " Write current file contents:bwipe test.out " delete alternate buffer:au bufleave test5.in bwipe:bwipe! " delete current buffer, get an empty oneithis is another test line^[:w >>test.out: " append an extra line to the output file:qa!ENDTESTstart of test file Xxxvim: set noai : this is a test this is a test this is a test this is a testend of test file Xxxtest5.in [?12l[?25h[?25l:[?12l[?25hbwipe " delete buffer Xxx, now we're back here [?25lTest 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 " write test file Xxx:sp Xxx " split to Xxx:bwipe " delete buffer Xxx, now we're back hereG?this is aothis is some more text^[: " Append some text to this file:?start?,$w! test.out " Write current file contents:bwipe test.out " delete alternate buffer:au bufleave test5.in bwipe:bwipe! " delete current buffer, get an empty oneithis is another test line^[:w >>test.out: " append an extra line to the output file:qa!ENDTESTstart of test file Xxxvim: set noai : this is a test this is a test this is a test this is a testend of test file Xxx~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l?[?12l[?25hthis is a [?25l[?12l[?25h[?25lthis is some more text[?12l[?25h[?25l:[?12l[?25h " Append some text to this file [?25l[?12l[?25h[?25l:[?12l[?25h?start?,$w! test.out " Write current file contents [?25l"test.out" [New File] 8 lines, 147 characters written[?12l[?25h[?25l:[?12l[?25hbwipe test.out " delete alternate buffer [?25l[?12l[?25h[?25l:[?12l[?25hau bufleave test5.in bwipe [?25l[?12l[?25h[?25l:[?12l[?25hbwipe! " delete current buffer, get an empty one [?25lError detected while processing BufLeave Auto commands for "test5.in": E89: No write since last change for buffer 1 (add ! to override) Press ENTER or type command to continue[?12l[?25h[?25l~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25lthis is another test line[?12l[?25h[?25l:[?12l[?25hw >>test.out [?25l"test.out" 1 line, 26 characters appended[?12l[?25h[?25l:[?12l[?25h " append an extra line to the output file [?25l[?12l[?25h[?25l:[?12l[?25hqa! [?25l[?1l>[?12l[?25h[?1049lrm -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 ../vim -u unix.vim -U NONE --noplugin -s dotest.in test6.in Vim: Warning: Output is not to a terminal [?1049h[?1h=[?12;25h[?12l[?25h[?25l"test6.in" 24 lines, 739 charactersTest for autocommand that redefines the argument list, when doing ":all". STARTTEST :so small.vim :au BufReadPost Xxx2 next Xxx2 Xxx1 /^start of A1^[:.,/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" open window for all args :w! test.out" Write contents of Xxx1 ^W^W^W^W:w >>test.out " Append contents of last window (Xxx1) :rew" should now be in Xxx2 :w >>test.out" Append contents of Xxx2 :qa! ENDTEST start of test file Xxxthis is a testthis is a testthis is a testthis is a test end of test file Xxx ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25hset cp [?25l[?12l[?25h[?25l:[?12l[?25hmap dotest /^STARTTEST^^Mj:set ff=unix cpo-=A^^M:.,/ENDTEST/-1w! Xdotest^^M:set ff& cpo+=A^^Mnj0:so! Xdotest^^Mdotest [?25lTest for autocommand that redefines the argument list, when doing ":all".[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" [New File] 13 lines, 537 characters written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l/ENDTEST[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25hso small.vim [?25l[?12l[?25h[?25l:[?12l[?25hau BufReadPost Xxx2 next Xxx2 Xxx1 [?25l[?12l[?25h[?25l/[?12l[?25h^start of [?25l[?12l[?25h[?25l1[?12l[?25h[?25l:[?12l[?25h.,/end of/w! Xxx1 " write test file Xxx1 [?25l"Xxx1" [New File] 6 lines, 109 characters written[?12l[?25h[?25l2[?12l[?25h[?25l:[?12l[?25h.,/end of/w! Xxx2 " write test file Xxx2 [?25l"Xxx2" [New File] 6 lines, 109 characters written[?12l[?25h[?25l3[?12l[?25h[?25l:[?12l[?25h.,/end of/w! Xxx3 " write test file Xxx3 [?25l"Xxx3" [New File] 6 lines, 109 characters written[?12l[?25h[?25l:[?12l[?25hnext! Xxx1 Xxx2 Xxx3 " redefine arglist; go to Xxx1 [?25l"Xxx1"6 lines, 109 charactersstart of test file Xxx1this is a test this is a test this is a test this is a testend of test file Xxx ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25hall " open window for all args [?25l"Xxx2"6 lines, 109 characters "Xxx2" 6 lines, 109 characters Press ENTER or type command to continue[?12l[?25h[?25l:[?12l[?25hw! test.out " Write contents of Xxx1 [?25l"test.out" [New File] 6 lines, 109 characters written Press ENTER or type command to continue[?12l[?25h[?25lstart of test file Xxx1this is a testthis is a testXxx1 start of test file Xxx2 this is a test this is a test this is a test this is a testend of test file XxxXxx2 [?12l[?25hXxx1 Xxx2 Xxx1 Xxx2 [?25l:[?12l[?25hw >>test.out " Append contents of last window (Xxx1) [?25l"test.out" 6 lines, 109 characters appended[?12l[?25h[?25l:[?12l[?25hrew " should now be in Xxx2 [?25l"Xxx2" line 1 of 6 --16%-- col 1 (file 1 of 2)22[?12l[?25h[?25l:[?12l[?25hw >>test.out " Append contents of Xxx2 [?25l"test.out" 6 lines, 109 characters appended[?12l[?25h[?25l:[?12l[?25hqa! [?25l[?1l>[?12l[?25h[?1049lrm -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 ../vim -u unix.vim -U NONE --noplugin -s dotest.in test7.in Vim: Warning: Output is not to a terminal [?1049h[?1h=[?12;25h[?12l[?25h[?25l"test7.in" 26 lines, 675 charactersTest for autocommand that changes the buffer list, when doing ":ball". STARTTEST :so small.vim /^start of A1^[:.,/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" open window for all args, close Xxx2 :.,$w! test.out" Write contents of this file ^W^W:w >>test.out" Append contents of second window (Xxx1) ^W^W:/^start of/,$w >>test.out " Append contents of last window (this file) :qa! ENDTEST start of test file Xxxthis is a testthis is a test end of test file Xxx ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25hset cp [?25l[?12l[?25h[?25l:[?12l[?25hmap dotest /^STARTTEST^^Mj:set ff=unix cpo-=A^^M:.,/ENDTEST/-1w! Xdotest^^M:set ff& cpo+=A^^Mnj0:so! Xdotest^^Mdotest [?25lTest for autocommand that changes the buffer list, when doing ":ball".[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" [New File] 17 lines, 508 characters written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l/ENDTEST[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25hso small.vim [?25l[?12l[?25h[?25l/[?12l[?25h^start of [?25l[?12l[?25h[?25l1[?12l[?25h[?25l:[?12l[?25h.,/end of/w! Xxx1 " write test file Xxx1 [?25l"Xxx1" [New File] 4 lines, 77 characters written[?12l[?25h[?25l:[?12l[?25hsp Xxx1 [?25l"Xxx1" 4 lines, 77 charactersstart of test file Xxx1this is a test this is a test end of test file Xxx ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Xxx1 :sp Xxx3:close:au BufReadPost Xxx2 bwipe$r4:ball " open window for all args, close Xxx2:.,$w! test.out " Write contents of this file^W^W:w >>test.out " Append contents of second window (Xxx1)^W^W:/^start of/,$w >>test.out " Append contents of last window (this file):qa!ENDTESTstart of test file Xxx1 this is a test this is a testend of test file Xxxtest7.in [+] [?12l[?25h[?25l:[?12l[?25hclose [?25lTest for autocommand that changes the buffer list, when doing ":ball".STARTTEST:so small.vim/^start ofA1^[:.,/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 " open window for all args, close Xxx2:.,$w! test.out " Write contents of this file^W^W:w >>test.out " Append contents of second window (Xxx1)^W^W:/^start of/,$w >>test.out " Append contents of last window (this file):qa!ENDTESTstart of test file Xxx1 this is a test this is a testend of test file Xxx~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l2[?12l[?25h[?25l:[?12l[?25h.,/end of/w! Xxx2 " write test file Xxx2 [?25l"Xxx2" [New File] 4 lines, 77 characters written[?12l[?25h[?25l:[?12l[?25hsp Xxx2 [?25l"Xxx2" 4 lines, 77 charactersstart of test file Xxx2this is a test this is a test end of test file Xxx ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Xxx2 :sp Xxx3:close:au BufReadPost Xxx2 bwipe$r4:ball " open window for all args, close Xxx2:.,$w! test.out " Write contents of this file^W^W:w >>test.out " Append contents of second window (Xxx1)^W^W:/^start of/,$w >>test.out " Append contents of last window (this file):qa!ENDTESTstart of test file Xxx2 this is a test this is a testend of test file Xxxtest7.in [+] [?12l[?25h[?25l:[?12l[?25hclose [?25lTest for autocommand that changes the buffer list, when doing ":ball".STARTTEST:so small.vim/^start ofA1^[:.,/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 " open window for all args, close Xxx2:.,$w! test.out " Write contents of this file^W^W:w >>test.out " Append contents of second window (Xxx1)^W^W:/^start of/,$w >>test.out " Append contents of last window (this file):qa!ENDTESTstart of test file Xxx2 this is a test this is a testend of test file Xxx~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l3[?12l[?25h[?25l:[?12l[?25h.,/end of/w! Xxx3 " write test file Xxx3 [?25l"Xxx3" [New File] 4 lines, 77 characters written[?12l[?25h[?25l:[?12l[?25hsp Xxx3 [?25l"Xxx3" 4 lines, 77 charactersstart of test file Xxx3this is a test this is a test end of test file Xxx ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Xxx3 :sp Xxx3:close:au BufReadPost Xxx2 bwipe$r4:ball " open window for all args, close Xxx2:.,$w! test.out " Write contents of this file^W^W:w >>test.out " Append contents of second window (Xxx1)^W^W:/^start of/,$w >>test.out " Append contents of last window (this file):qa!ENDTESTstart of test file Xxx3 this is a test this is a testend of test file Xxxtest7.in [+] [?12l[?25h[?25l:[?12l[?25hclose [?25lTest for autocommand that changes the buffer list, when doing ":ball".STARTTEST:so small.vim/^start ofA1^[:.,/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 " open window for all args, close Xxx2:.,$w! test.out " Write contents of this file^W^W:w >>test.out " Append contents of second window (Xxx1)^W^W:/^start of/,$w >>test.out " Append contents of last window (this file):qa!ENDTESTstart of test file Xxx3 this is a test this is a testend of test file Xxx~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25hau BufReadPost Xxx2 bwipe [?25l[?12l[?25h[?25l4[?12l[?25h[?25l:[?12l[?25hball " open window for all args, close Xxx2 [?25l"Xxx1"4 lines, 77 characters "Xxx2" 4 lines, 77 characters Press ENTER or type command to continue[?12l[?25h[?25l:[?12l[?25h.,$w! test.out " Write contents of this file [?25l"test.out" [New File]