check g:user_tmpdir at first