Commits

ZyX_I committed ae5fbdb

Moved WriteFile and g:outfile definitions into vimrc

  • Participants
  • Parent commits f863dc4

Comments (0)

Files changed (2)

File test/test.vim

-let g:outfile=g:curtest.'.out'
-if !exists('*WriteFile')
-    function WriteFile(...)
-        let r=[]
-        if filereadable(g:outfile)
-            let r+=readfile(g:outfile, 'b')
-        endif
-        let r+=a:000
-        return writefile(r, g:outfile, 'b')
-    endfunction
-endif
 if !exists('g:testcmd')
     let s:testcmd='call FraworLoad(g:testfile[:-5])'
 else
+function WriteFile(...)
+    let r=[]
+    if filereadable(g:outfile)
+        let r+=readfile(g:outfile, 'b')
+    endif
+    let r+=a:000
+    return writefile(r, g:outfile, 'b')
+endfunction
+let g:outfile=g:curtest.'.out'