use absolute path in $EDITOR
/bin/bash => /bin/sh
use "!" instead of checking "$?"