File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ @ echo off
2
+ vim -u NONE -N --cmd " let &rtp .= ',' . getcwd()" -S test/run.vim
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ vim -u NONE -N --cmd " let &rtp .= ',' . getcwd()" -S test/run.vim
Original file line number Diff line number Diff line change @@ -19,11 +19,14 @@ function! s:run()
19
19
call writefile ([v: exception ], outfile)
20
20
endtry
21
21
if system (printf (' diff %s %s' , shellescape (okfile), shellescape (outfile))) == " "
22
- echo printf (' %s => ok' , fnamemodify (vimfile, ' :t' ))
22
+ let line = printf (' %s => ok' , fnamemodify (vimfile, ' :t' ))
23
23
else
24
- echoerr printf (' %s => ng' , fnamemodify (vimfile, ' :t' ))
24
+ let line = printf (' %s => ng' , fnamemodify (vimfile, ' :t' ))
25
25
endif
26
+ call append (line (' $' ), line )
26
27
endfor
28
+ syntax enable
29
+ match Error /^.* => ng$/
27
30
endfunction
28
31
29
32
call s: run ()
You can’t perform that action at this time.
0 commit comments