added vim backup to gitignore
Made it compatible with MacOSX
fixed uninit error of env without XDG_CURRENT_DESKTOP