Commits

ZyX_I committed 3bbd137

Improved WriteFile function: it now accepts list as its first argument

Comments (0)

Files changed (1)

     if filereadable(g:outfile)
         let r+=readfile(g:outfile, 'b')
     endif
-    let r+=a:000
+    if type(a:1)==type([])
+        let r+=a:1
+    else
+        let r+=a:000
+    endif
     return writefile(r, g:outfile, 'b')
 endfunction
 let g:outfile=g:curtest.'.out'