write error log
append -f option to prevent gvim from exiting immediately