Isolate vim misbehavior in subshell