zsh vim mode, more careful checking for environment variables