Mercurial > vim
comparison src/testdir/test11.in @ 18:293621502c4d v7.0010
updated for version 7.0010
author | vimboss |
---|---|
date | Sun, 18 Jul 2004 21:34:53 +0000 |
parents | 3fc0f57ecb91 |
children | f6e33184ccc3 |
comparison
equal
deleted
inserted
replaced
17:9be87deaeb52 | 18:293621502c4d |
---|---|
18 :let $GZIP = "" | 18 :let $GZIP = "" |
19 :au FileChangedShell * echo "caught FileChangedShell" | 19 :au FileChangedShell * echo "caught FileChangedShell" |
20 :set bin | 20 :set bin |
21 :au FileWritePre *.gz '[,']!gzip | 21 :au FileWritePre *.gz '[,']!gzip |
22 :au FileWritePost *.gz undo | 22 :au FileWritePost *.gz undo |
23 :/start of testfile/,/end of testfile/w! Xtestfile.gz | 23 :/^start of testfile/,/^end of testfile/w! Xtestfile.gz |
24 :au FileReadPost *.gz '[,']!gzip -d | 24 :au FileReadPost *.gz '[,']!gzip -d |
25 :$r Xtestfile.gz " Read and decompress the testfile | 25 :$r Xtestfile.gz " Read and decompress the testfile |
26 :?startstart?,$w! test.out " Write contents of this file | 26 :?startstart?,$w! test.out " Write contents of this file |
27 :au BufNewFile *.c read Xtest.c | 27 :au BufNewFile *.c read Xtest.c |
28 gg/^end of testfile | 28 :/^start of test.c/+1,/^end of test.c/-1w! Xtest.c |
29 :/start of test.c/+1,/end of test.c/-1w! Xtest.c | |
30 :e! foo.c " Will load Xtest.c | 29 :e! foo.c " Will load Xtest.c |
31 :au FileAppendPre *.out '[,']s/new/NEW/ | 30 :au FileAppendPre *.out '[,']s/new/NEW/ |
32 :au FileAppendPost *.out !cat Xtest.c >>test.out | 31 :au FileAppendPost *.out !cat Xtest.c >>test.out |
33 :w>>test.out " Append it to the output file | 32 :w>>test.out " Append it to the output file |
34 :au! FileAppendPre | 33 :au! FileAppendPre |