fix awkward behavior of "git pull" and "vi <esc>"