diff options
Diffstat (limited to 'src/testdir/test11.in')
-rw-r--r-- | src/testdir/test11.in | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testdir/test11.in b/src/testdir/test11.in index 063aeb260..007698bac 100644 --- a/src/testdir/test11.in +++ b/src/testdir/test11.in @@ -32,21 +32,21 @@ STARTTEST :w>>test.out " Append it to the output file :au! FileAppendPre :" setup autocommands to decompress before reading and re-compress afterwards -:au BufReadPre *.gz !gzip -d <afile> +:au BufReadPre *.gz exe '!gzip -d ' . shellescape(expand("<afile>")) :au BufReadPre *.gz call rename(expand("<afile>:r"), expand("<afile>")) :au BufReadPost *.gz call rename(expand("<afile>"), expand("<afile>:r")) -:au BufReadPost *.gz !gzip <afile>:r +:au BufReadPost *.gz exe '!gzip ' . shellescape(expand("<afile>:r")) :e! Xtestfile.gz " Edit compressed file :w>>test.out " Append it to the output file :set shelltemp " need temp files here -:au FilterReadPre *.out call rename(expand("<afile>"), expand("<afile>").".t") -:au FilterReadPre *.out !sed s/e/E/ <afile>.t ><afile> -:au FilterReadPre *.out !rm <afile>.t +:au FilterReadPre *.out call rename(expand("<afile>"), expand("<afile>") . ".t") +:au FilterReadPre *.out exe '!sed s/e/E/ ' . shellescape(expand("<afile>")) . ".t >" . shellescape(expand("<afile>")) +:au FilterReadPre *.out exe '!rm ' . shellescape(expand("<afile>")) . '.t' :au FilterReadPost *.out '[,']s/x/X/g :e! test.out " Edit the output file :23,$!cat :23,$s/\r$// " remove CR for when sed adds them -:au! FileReadPre *.gz !gzip -d <afile> +:au! FileReadPre *.gz exe '!gzip -d ' . shellescape(expand("<afile>")) :au FileReadPre *.gz call rename(expand("<afile>:r"), expand("<afile>")) :au! FileReadPost *.gz '[,']s/l/L/ :$r Xtestfile.gz " Read compressed file |