@@ -4,11 +4,14 @@
if -exe emacs; then
export EDITOR='emacs -nw'
fi
+if -exe vim; then
+ export EDITOR='vim'
+fi
+
+alias e=$EDITOR
if [ -n "$EDITOR" -a -n "$SUDO_USER" -a "$UID" = 0 -a "$EDITOR[1,5]" = 'emacs' ]; then
e="$EDITOR -u $SUDO_USER"
-else
- alias e=$EDITOR
#