update makeprg before write buf, since we suggest autobuild after write buf with BufWritePost