Wed Aug 29 21:40:46 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[?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 f f& 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:%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[?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[?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 f f& 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/URL :call append(3, expand("")) 5GdG:wq! test.out ENDTEST[?12l[?25h[?25l first test for URL://machine.name/tmp/vimtest2a and other text [?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("")) [?25l[?12l[?25h[?25l/[?12l[?25h^second [?25l second test for URL://machine.name/tmp/vimtest2b. And other text[?12l[?25h[?25l /[?12l[?25hURL [?25l[?12l[?25h[?25l:[?12l[?25hcall append(1, expand("")) [?25l[?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 [?25l/^first /tmp :call append(0, expand("")) /^second[?12l[?25h[?25l /[?12l[?25h^third [?25l third test for URL:\\machine.name\vimtest2c and other text[?12l[?25h[?25l /[?12l[?25hname [?25l[?12l[?25h[?25l:[?12l[?25hcall append(2, expand("")) [?25l[?12l[?25h[?25l/[?12l[?25h^fourth [?25l fourth test for URL:\\machine.name\tmp\vimtest2d, and other text[?12l[?25h[?25l /[?12l[?25hURL [?25l[?12l[?25h[?25l:[?12l[?25hcall append(3, expand("")) [?25l[?12l[?25h[?25lThis 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[?12l[?25h[?25l29 fewer linesURL:\\machine.name\tmp\vimtest2d ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 29 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)[?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 f f& 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, 13734CTest for 'cindent'STARTTEST :so small.vim :set nocompatible viminfo+=nviminfo :edit " read modeline /start of AUTO=/end of AUTOENDTEST/* start of AUTO matically checked vim: set ts=4 : */ { if (test) cmd1;cmd2;}{ if (test) cmd1;[?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 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[?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 [?25lmain() {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[?12l[?25h[?25l/[?12l[?25hserious/e [?25l[?12l[?25h[?25l -- INSERT --about life, the * universe, and the * rest important big[?12l[?25h[?25l * comment[?12l[?25h[?25l /^STARTTEST *//* insert " about life, the universe, and the rest" after "serious" */ } STARTTEST[?12l[?25h[?25l :set nocin [?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/comments joabout life^[/happens jothere^[/below oline^[/this Ohello^[[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset nocin [?25l[?12l[?25h[?25l/[?12l[?25hcomments [?25l{/** Testing for comments, without 'cin' set[?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*/second_par /** Comment for* second par*/); } STARTTEST :set cin :set cino= ]]=][ ENDTEST {do{if (){[?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[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cin [?25l[?12l[?25h[?25l:[?12l[?25hset cino= [?25l[?12l[?25h [?25l11 lines to indent... 12indented [?12l[?25h[?25l/^STARTTEST 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 {a = 1;{b = 2;}c = 3;d = 4;} /* foo */ STARTTEST :set cino= /while ohere^[ ENDTEST a() { do { a = a +a;[?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 } while ( a );/* add text under this line */[?12l[?25h[?25l -- INSERT -- here[?12l[?25h[?25l if ( a ) i[?12l[?25h[?25l /^STARTTEST a; } STARTTEST[?12l[?25h[?25l :set cino= com= [?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/comment olabel2: b();^Mlabel3 /* post */:^M/* pre */ label4:^Mf(/*com*/);^Mif (/*com*/)^^Mcmd();^[[?12l[?25h[?25l ENDTEST [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino= com= [?25l[?12l[?25h[?25l/[?12l[?25hcomment [?25la() { label1:/* hmm */// comment[?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[?25lENDTEST [?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 ment);invokeme(argu,ment);invokeme(argu,ment); } STARTTEST :set cino=/6 2kdd]]=][ ENDTEST void f() {statement;// comment 1// comment 2 }[?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:so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=/6 [?25l[?12l[?25h[?25l [?12l[?25h[?25l3 lines to indent... 4indented // comment 1 // comment 2[?12l[?25h[?25l/^STARTTEST  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 asdfadsf,asdfasdf,asdfasdf,),func(asdfadf,asdfasdf),asdasdf); } STARTTEST :set cino=M1 2kdd]]=][ ENDTEST int main () {if (cond1 &&cond2)foo;[?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:so! Xdotest [?12l[?25h[?25l:[?12l[?25hset cino=M1 [?25l[?12l[?25h[?25l }[?12l[?25h[?25l4 lines to indent... 5indented [?12l[?25h[?25l/^STARTTEST 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 linesabc, 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![?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 f f& 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 ENDTEST[?12l[?25h[?25l [?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 [?25lstartstart start of test file Xxx[?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, 124Cqa!ENDTESTstartstart start of test file Xxxvim: set noai : this is a test this is a test this is a test this is a testtest4.in 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.outqa!ENDTESTstartstart of test file Xxx test4.in test4.in" line 25 of 31 --80%-- col 1[?12l[?25h[?25l end of test file Xxx[?12l[?25h[?25l?[?12l[?25hthis is a [?25l[?12l[?25h[?25l-- INSERT -- 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 end 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 written: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!ENDTESTstarstart of test file Xxx[?12l[?25h[?25lvim: set noai :this is a testthis is a testthis is a testthis is a testthis should be auto-indented end of test file Xxx[?12l[?25h[?25l :[?12l[?25hr Xxx " include Xxx in the current file [?25l"Xxx" 8L, 151C start 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[?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 f f& 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 [?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 start of test file Xxx[?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 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 bwipe test.out delete alternate bufferau bufleave test5.in bwipebwipe! " delete current buffer, get an empty one ithis is another test line^[:w >>test.out: " append an extra line to the output file :qa!ENDTESTstart of test file Xxx test5.in [?12l[?25h[?25l:[?12l[?25hbwipe " delete buffer Xxx, now we're back here [?25lSTARTTEST: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.outWrite 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!ENDTESTstart of test file Xxx[?12l[?25h[?25lvim: set noai :this is a testthis is a testthis is a testthis is a test end of test file Xxx[?12l[?25h[?25l ?[?12l[?25hthis is a [?25l[?12l[?25h[?25l this is some more text[?12l[?25h[?25l end of test file Xxx[?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 test[?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 f f& 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[?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 f f& 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 [?12l[?25h[?25l :so! Xdotest [?12l[?25h[?25l:[?12l[?25hso small.vim [?25l[?12l[?25h[?25l/[?12l[?25h^start of [?25l start of test file Xxx[?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 Xxx1 this is a test this is a test end of test file Xx~ ~ ~ ~ ~ ~ Xxx1 au BufReadPost Xxx2 bwipe $r4:ball " open window for all args, close Xxx2 :.,$w! test.outWrite contents of this file^W^W:w >>test.outAppend contents of second window (Xxx1)/^start of/,$w >>test.out " Append contents of last window (this file) :qa!ENDTESTstart of test file Xxx1 test7.in [+] [?12l[?25h[?25l:[?12l[?25hclose [?25lSTARTTEST: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 Xxx3close:au BufReadPost Xxx2 bwipe$r4:ball open window for all args, close Xxx2 :.,$w! test.out Write contents of this filew >>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[?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 Xxx2 this is a test this is a test end of test file Xx~ ~ ~ ~ ~ ~ Xxx2 au BufReadPost Xxx2 bwipe $r4:ball " open window for all args, close Xxx2 :.,$w! test.outWrite contents of this file^W^W:w >>test.outAppend contents of second window (Xxx1)/^start of/,$w >>test.out " Append contents of last window (this file) :qa!ENDTESTstart of test file Xxx2 test7.in [+] [?12l[?25h[?25l:[?12l[?25hclose [?25lSTARTTEST: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 Xxx3close:au BufReadPost Xxx2 bwipe$r4:ball open window for all args, close Xxx2 :.,$w! test.out Write contents of this filew >>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[?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 Xxx3 this is a test this is a test end of test file Xx~ ~ ~ ~ ~ ~ Xxx3 au BufReadPost Xxx2 bwipe $r4:ball " open window for all args, close Xxx2 :.,$w! test.outWrite contents of this file^W^W:w >>test.outAppend contents of second window (Xxx1)/^start of/,$w >>test.out " Append contents of last window (this file) :qa!ENDTESTstart of test file Xxx3 test7.in [+] [?12l[?25h[?25l:[?12l[?25hclose [?25lSTARTTEST: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 Xxx3close:au BufReadPost Xxx2 bwipe$r4:ball open window for all args, close Xxx2 :.,$w! test.out Write contents of this filew >>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[?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] 4 lines, 77 characters written Press ENTER or type command to continue[?12l[?25h[?25l: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 Xxx4 test7.in [+] start of test file Xxx1this is a testthis is a test end of test file Xxx ~ ~ ~ ~ ~ ~ Xxx1 [?12l[?25h test7.in [+] Xxx1 [?25l:[?12l[?25hw >>test.out " Append contents of second window (Xxx1) [?25l"test.out" 4 lines, 77 characters appended[?12l[?25htest7.in [+] Xxx1 [?25l:[?12l[?25h/^start of/,$w >>test.out " Append contents of last window (this file) [?25lsearch hit BOTTOM, continuing at TOP"test.out" 4 lines, 77 characters appended[?12l[?25h[?25l:[?12l[?25hqa! [?25l[?1l>[?12l[?25h[?1049lrm -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 ../vim -u unix.vim -U NONE --noplugin -s dotest.in test8.in Vim: Warning: Output is not to a terminal [?1049h[?1h=[?12;25h[?12l[?25h[?25l"test8.in" 24 lines, 797 charactersTest for BufWritePre autocommand that deletes or unloads the buffer. STARTTEST :so small.vim :au BufWritePre Xxx1 bunload :au BufWritePre Xxx2 bwipe /^start of A1^[:.,/end of/w! Xxx1 " write test file Xxx1 $r2:.,/end of/w! Xxx2 " write test file Xxx2 :e! Xxx2" edit Xxx2 :bdel test8.in" delete this file from the buffer list :e Xxx1" edit Xxx1 :w" write it, will unload it and give an error msg :w! test.out" Write contents of this file :e! Xxx2" start editing Xxx2 :bwipe test.out" remove test.out from the buffer list :w" write it, will delete the buffer and give an error msg:w >>test.out" Append contents of this file :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 f f& cpo+=A^^Mnj0:so! Xdotest^^Mdotest [?25lTest for BufWritePre autocommand that deletes or unloads the buffer.[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" [New File] 16 lines, 678 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 BufWritePre Xxx1 bunload [?25l[?12l[?25h[?25l:[?12l[?25hau BufWritePre Xxx2 bwipe [?25l[?12l[?25h[?25l/[?12l[?25h^start of [?25l start of Xxx[?12l[?25h[?25l1[?12l[?25h[?25l :[?12l[?25h.,/end of/w! Xxx1 " write test file Xxx1 [?25l"Xxx1" [New File] 3 lines, 31 characters written[?12l[?25h[?25l2[?12l[?25h[?25l:[?12l[?25h.,/end of/w! Xxx2 " write test file Xxx2 [?25l"Xxx2" [New File] 3 lines, 31 characters written[?12l[?25h[?25l:[?12l[?25he! Xxx2 " edit Xxx2 [?25l"Xxx2" 3 lines, 31 charactersstart of Xxx2 test end of Xxx~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25hbdel test8.in^I^I" delete this file from the buffer list [?25l[?12l[?25h[?25l:[?12l[?25he Xxx1 " edit Xxx1 [?25l"Xxx1" 3 lines, 31 characters1 [?12l[?25h[?25l:[?12l[?25hw " write it, will unload it and give an error msg [?25l"Xxx2"3 lines, 31 characters E203: Autocommands deleted or unloaded buffer to be written Press ENTER or type command to continue[?12l[?25h[?25l:[?12l[?25hw! test.out " Write contents of this file [?25l"test.out" [New File] 3 lines, 31 characters written Press ENTER or type command to continue[?12l[?25h[?25l:[?12l[?25he! Xxx2 " start editing Xxx2 [?25l"Xxx2" 3 lines, 31 charactersstart of Xxx2test end of Xxx"Xxx2" 3 lines, 31 characters[?12l[?25h[?25l:[?12l[?25hbwipe test.out " remove test.out from the buffer list [?25l[?12l[?25h[?25l:[?12l[?25hw " write it, will delete the buffer and give an error ms g[?25l"Xxx1"3 lines, 31 characters E203: Autocommands deleted or unloaded buffer to be written Press ENTER or type command to continue[?12l[?25h[?25l:[?12l[?25hw >>test.out " Append contents of this file [?25l"test.out" 3 lines, 31 characters appended Press ENTER or type command to continue[?12l[?25h[?25l:[?12l[?25hqa! [?25l[?1l>[?12l[?25h[?1049lrm -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 ../vim -u unix.vim -U NONE --noplugin -s dotest.in test9.in Vim: Warning: Output is not to a terminal [?1049h[?1h=[?12;25h[?12l[?25h[?25l"test9.in" 12 lines, 255 charactersTest 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 ~ ~ ~ ~ ~ ~ ~ ~ ~ [?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 f f& cpo+=A^^Mnj0:so! Xdotest^^Mdotest [?25lTest for Bufleave autocommand that deletes the buffer we are about to edit.[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" [New File] 5 lines, 117 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 test9.in bwipe yy [?25l[?12l[?25h[?25l:[?12l[?25he yy [?25lE143: Autocommands unexpectedly deleted new buffer yy[?12l[?25h[?25l:[?12l[?25h/^start of/,$w! test.out " Write contents of this file [?25l"test.out" [New File] 2 lines, 42 characters written[?12l[?25h[?25l:[?12l[?25hqa! [?25l[?1l>[?12l[?25h[?1049lrm -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 ../vim -u unix.vim -U NONE --noplugin -s dotest.in test10.in Vim: Warning: Output is not to a terminal [?1049h[?1h=[?12;25h[?12l[?25h[?25l"test10.in" 57 lines, 1624 charactersTest for 'errorformat'. This will fail if the quickfix feature was disabled. STARTTEST :so small.vim :/start of errorfile/,/end of errorfile/w! Xerrorfile :/start of testfile/,/end of testfile/w! Xtestfile :cf Xerrorfile rA :cn rB :cn rC :cn rD :cn rE :w! test.out" Write contents of this file :qa! ENDTEST start of errorfile[?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 f f& cpo+=A^^Mnj0:so! Xdotest^^Mdotest [?25lTest for 'errorformat'. This will fail if the quickfix feature was disabled.[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" [New File] 15 lines, 225 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 errorfile/,/end of errorfile/w! Xerrorfile [?25l"Xerrorfile" [New File] 13 lines, 447 characters written[?12l[?25h[?25l:[?12l[?25h/start of testfile/,/end of testfile/w! Xtestfile [?25l"Xtestfile" [New File] 23 lines, 853 characters written[?12l[?25h[?25l:[?12l[?25hcf Xerrorfile [?25l"Xtestfile" 23 lines, 853 characters (2 of 13): 1506-045 (S) Undeclared identifier fd_set. Press ENTER or type command to continue[?12l[?25h[?25lstart of testfile line 2 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 4 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxline 6 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxline 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 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxline 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 19 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 21 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[?12l[?25h[?25lA[?12l[?25h[?25l:[?12l[?25hcn [?25l(3 of 13): this is an error[?12l[?25h[?25lB[?12l[?25h[?25l:[?12l[?25hcn [?25l(5 of 13): parse error before `asd'[?12l[?25h[?25lC[?12l[?25h [?25l:[?12l[?25hcn [?25l(7 of 13): there is an error[?12l[?25h[?25lD[?12l[?25h [?25l:[?12l[?25hcn [?25l(10 of 13): yet another problem[?12l[?25h[?25lE[?12l[?25h [?25l:[?12l[?25hw! test.out " Write contents of this file [?25l"test.out" [New File] 23 lines, 853 characters written[?12l[?25h[?25l:[?12l[?25hqa! [?25l[?1l>[?12l[?25h[?1049lrm -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 ../vim -u unix.vim -U NONE --noplugin -s dotest.in test11.in Vim: Warning: Output is not to a terminal [?1049h[?1h=[?12;25h[?12l[?25h[?25l"test11.in" 78 lines, 3040 charactersTests for autocommands: - FileWritePrewriting a compressed file - FileReadPostreading a compressed file - BufNewFilereading a file template - BufReadPredecompressing the file to be read - FilterReadPresubstituting characters in the temp file - FilterReadPostsubstituting characters after filtering - FileReadPreset options for decompression - FileReadPostdecompress the file Note: This test will fail 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 :let $GZIP = "" :au FileChangedShell * echo "caught FileChangedShell" :set bin :au FileWritePre *.gz '[,']!gzip[?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 f f& cpo+=A^^Mnj0:so! Xdotest^^Mdotest [?25lTests for autocommands:[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" [New File] 42 lines, 1973 characters written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l/ENDTEST:au! FileReadPre *.gz !gzip -d :au FileReadPre *.gz call rename(expand(":r"), expand("")) :au! FileReadPost *.gz '[,']s/l/L/ :$r Xtestfile.gz" Read compressed file :w" write it, after filtering :au!" remove all autocommands :e" 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[?12l[?25h [?25l:so! Xdotest [?12l[?25h[?25l:[?12l[?25hso small.vim [?25l[?12l[?25h[?25l:[?12l[?25hlet $GZIP = "" [?25l[?12l[?25h[?25l:[?12l[?25hau FileChangedShell * echo "caught FileChangedShell" [?25l[?12l[?25h[?25l:[?12l[?25hset bin [?25l[?12l[?25h[?25l:[?12l[?25hau FileWritePre *.gz '[,']!gzip [?25l[?12l[?25h[?25l:[?12l[?25hau FileWritePost *.gz undo [?25l[?12l[?25h[?25l:[?12l[?25h/^start of testfile/,/^end of testfile/w! Xtestfile.gz [?25l[?12l[?25h[?25l11 lines filtered "Xtestfile.gz" [New File][Incomplete last line] 1 line, 111 characters written 10 more lines; before #1 0 seconds ago Press ENTER or type command to continue[?12l[?25h[?25l:[?12l[?25hau FileReadPost *.gz '[,']!gzip -d [?25l:$r Xtestfile.gz" Read compressed file :w" write it, after filtering :au!" remove all autocommands :e " Edit test.out againset nobin ff& " use the default fileformat for writing :wqa!ENDTESTstartstart start of testfile line 2 Abcdefghijklmnopqrstuvwxyz line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 4 Abcdefghijklmnopqrstuvwxyz5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6 Abcdefghijklmnopqrstuvwxyz7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8 Abcdefghijklmnopqrstuvwxyz9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx10 Abcdefghijklmnopqrstuvwxyzend of testfile[?12l[?25h[?25l :[?12l[?25h$r Xtestfile.gz " Read and decompress the testfile [?25l"Xtestfile.gz" [Incomplete last line] 1 line, 111 characters [?12l[?25h[?25lstart of test.c /* * Here is a new .c file */ end of test.c start of testfile[?12l[?25h[?25l :[?12l[?25h?startstart?,$w! test.out " Write contents of this file [?25l"test.out" [New File] 29 lines, 788 characters written[?12l[?25h[?25l:[?12l[?25hau BufNewFile *.c read Xtest.c [?25l[?12l[?25h[?25l:[?12l[?25h/^start of test.c/+1,/^end of test.c/-1w! Xtest.c [?25lsearch hit BOTTOM, continuing at TOP"Xtest.c" [New File] 3 lines, 32 characters written[?12l[?25h[?25l:[?12l[?25he! foo.c " Will load Xtest.c [?25l"foo.c" [New File] "Xtest.c" 3 lines, 32 characters Press ENTER or type command to continue[?12l[?25h[?25l:[?12l[?25hau FileAppendPre *.out '[,']s/new/NEW/ [?25l/* * Here is a new .c file */~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25hau FileAppendPost *.out !cat Xtest.c >>test.out [?25l[?12l[?25h[?25l:[?12l[?25hw>>test.out " Append it to the output file [?25l"test.out" 4 lines, 33 characters appended :!cat Xtest.c >>test.out [?12l[?25h Press ENTER or type command to continue[?25l:[?12l[?25hau! FileAppendPre [?25l/* * Here is a NEW .c file */ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25h" setup autocommands to decompress before reading and re-compress afterwards [?25l[?12l[?25h[?25l:[?12l[?25hau BufReadPre *.gz !gzip -d [?25l[?12l[?25h[?25l:[?12l[?25hau BufReadPre *.gz call rename(expand(":r"), expand("")) [?25l[?12l[?25h[?25l:[?12l[?25hau BufReadPost *.gz call rename(expand(""), expand(":r")) [?25l[?12l[?25h[?25l:[?12l[?25hau BufReadPost *.gz !gzip :r [?25l[?12l[?25h[?25l:[?12l[?25he! Xtestfile.gz " Edit compressed file [?25l:!gzip -d Xtestfile.gz [?12l[?25h[?25l"Xtestfile.gz""Xtestfile.gz" 11 lines, 357 characters:!gzip Xtestfile [?12l[?25h Press ENTER or type command to continue[?25l:[?12l[?25hw>>test.out " Append it to the output file [?25l"test.out" 11 lines, 357 characters appended :!cat Xtest.c >>test.out [?12l[?25h Press ENTER or type command to continue[?25l:[?12l[?25hset shelltemp " need temp files here [?25lstart 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 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25hau FilterReadPre *.out call rename(expand(""), expand("").".t ")[?25lstart of testfile[?12l[?25h[?25l:[?12l[?25hau FilterReadPre *.out !sed s/e/E/ .t > [?25l[?12l[?25h[?25l:[?12l[?25hau FilterReadPre *.out !rm .t [?25l[?12l[?25h[?25l:[?12l[?25hau FilterReadPost *.out '[,']s/x/X/g [?25l[?12l[?25h[?25l:[?12l[?25he! test.out " Edit the output file [?25l"test.out" 50 lines, 1242 charactersstarstart of testfile2 Abcdefghijklmnopqrstuvwxyz3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx4 Abcdefghijklmnopqrstuvwxyz5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx6 Abcdefghijklmnopqrstuvwxyz7 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8 Abcdefghijklmnopqrstuvwxyz9 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx line 10 Abcdefghijklmnopqrstuvwxyz end of testfilestart of test.c/* * Here is a new .c file */end of test.cstart of testfileline 2 Abcdefghijklmnopqrstuvwxyzline 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx[?12l[?25h[?25l:[?12l[?25h23,$!cat [?25l[?12l[?25h[?25l:!sed s/e/E/ /tmp/v449378/1.t >/tmp/v449378/1 [?12l[?25h[?25l:!rm /tmp/v449378/1.t [?12l[?25h[?25l218 substitutions on 15 lines 28 lines filtered Press ENTER or type command to continue[?12l[?25h[?25l:[?12l[?25h23,$s/\r$// " remove CR for when sed adds them [?25lE486: Pattern not found: \r$ Press ENTER or type command to continue[?12l[?25h[?25l:[?12l[?25hau! FileReadPre *.gz !gzip -d [?25lline 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 [?12l[?25h[?25l :[?12l[?25hau FileReadPre *.gz call rename(expand(":r"), expand("")) [?25l[?12l[?25h[?25l:[?12l[?25hau! FileReadPost *.gz '[,']s/l/L/ [?25l[?12l[?25h[?25l:[?12l[?25h$r Xtestfile.gz " Read compressed file [?25l:!gzip -d Xtestfile.gz [?12l[?25h[?25l"Xtestfile.gz""Xtestfile.gz" 11 lines, 357 characters11 substitutions on 11 lines Press ENTER or type command to continue[?12l[?25h[?25l:[?12l[?25hw " write it, after filtering [?25l"test.out"61 lines, 1599 characters written Press ENTER or type command to continue[?12l[?25h[?25l:[?12l[?25hau! " remove all autocommands [?25lE216: No such group or event: " remove all autocommands Press ENTER or type command to continue[?12l[?25h[?25l:[?12l[?25he " Edit test.out again [?25l"test.out"61 lines, 1599 charactersstartstart 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 "test.out" 61 lines, 1599 characters[?12l[?25h[?25l:[?12l[?25hset nobin ff& " use the default fileformat for writing [?25l[?12l[?25h[?25l:[?12l[?25hw [?25l"test.out" 61 lines, 1599 characters written[?12l[?25h[?25l:[?12l[?25hqa! [?25l[?1l>[?12l[?25h[?1049lrm -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 ../vim -u unix.vim -U NONE --noplugin -s dotest.in test12.in Vim: Warning: Output is not to a terminal [?1049h[?1h=[?12;25h[?12l[?25h[?25l"test12.in" 52 lines, 1199 charactersTests 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.[?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 f f& cpo+=A^^Mnj0:so! Xdotest^^Mdotest [?25lTests for 'directory' option.[?12l[?25h[?25l/^STARTTEST [?12l[?25h [?25l:set ff=unix cpo-=A [?12l[?25h[?25l:.,/ENDTEST/-1w! Xdotest "Xdotest" [New File] 40 lines, 965 characters written[?12l[?25h[?25l:set ff& cpo+=A [?12l[?25h[?25l/ENDTEST: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 :swap :!ls Xtest2 >>test.out :!echo under Xtest3 >>test.out :!ls Xtest.je >>test.out :!echo under Xtest3.swp >>test.out :qa! ENDTEST start of testfile line 2 Abcdefghij line 3 Abcdefghij end of testfile[?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[?25hset dir=.,~ [?25l[?12l[?25h[?25l:[?12l[?25h/start of testfile/,/end of testfile/w! Xtest1 [?25l"Xtest1" [New] 4L, 70C written[?12l[?25h[?25l:[?12l[?25h" do an ls of the current dir to find the swap file (should not be there) [?25l[?12l[?25h[?25l:[?12l[?25hif has("unix") [?25l : [?12l[?25h: !ls .X*.swp >test.out [?25l:!ls .X*.swp >test.out[?1l>[?12l[?25h[?1049l ls: cannot access .X*.swp: No such file or directory shell returned 2 Press ENTER or type command to continue[?1049h[?1h= [?25l: :[?12l[?25helse [?25l: [?12l[?25h: r !ls X*.swp >test.out [?25l: [?12l[?25h:endif [?25l:[?12l[?25h!echo first line >>test.out [?25l[?1l>[?12l[?25h[?1049l Press ENTER or type command to continue[?1049h[?1h=[?25l:[?12l[?25he Xtest1 [?25l"Xtest1" 4L, 70Cstart of testfile line 2 Abcdefghij line 3 Abcdefghij end of testfile ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "Xtest1" 4L, 70C[?12l[?25h[?25l:[?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  [?25l: [?12l[?25h: s/\.*X/X/ [?25l: [?12l[?25h: .w >>test.out [?25l"test.out" 1L, 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 [?25lstart of testfile line 2 Abcdefghij line 3 Abcdefghij end of testfile ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25h!echo under Xtest1.swp >>test.out [?25l[?1l>[?12l[?25h[?1049l Press ENTER or type command to continue[?1049h[?1h=[?25l:[?12l[?25h!mkdir Xtest2 [?25l[?1l>[?12l[?25h[?1049l Press ENTER or type command to continue[?1049h[?1h=[?25l:[?12l[?25hset dir=./Xtest2,.,~ [?25lstart of testfile line 2 Abcdefghij line 3 Abcdefghij end of testfile ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ [?12l[?25h[?25l:[?12l[?25he Xtest1 [?25l"Xtest1" 4L, 70C[?12l[?25h[?25l:[?12l[?25h!ls X*.swp >>test.out [?25l[?1l>[?12l[?25h[?1049l ls: cannot access X*.swp: No such file or directory shell returned 2 Press ENTER or type command to continue[?1049h[?1h=[?25l:[?12l[?25h!echo u