# export BROWSER=/usr/bin/firefox
# editor and other mixed settings...
- export EDITOR="$(which vim)"
+ export EDITOR="$(which gvim)"
+ if [ -z "$EDITOR" ]; then
+ export EDITOR="$(which vim)"
+ else
+ # special case for gvim; tell it not to fork or we can't wait for it.
+ EDITOR+=" --nofork"
+ fi
if [ -z "$EDITOR" ]; then
EDITOR="$(which vi)"
- if [ -z "$EDITOR" ]; then
- EDITOR="$(which emacs)"
- if [ -z "$EDITOR" ]; then
- echo "Cannot find a friendly editor."
- fi
- fi
+ fi
+ if [ -z "$EDITOR" ]; then
+ EDITOR="$(which emacs)"
+ fi
+ if [ -z "$EDITOR" ]; then
+ echo "Cannot find a friendly editor."
fi
export VISUAL="$EDITOR"
# the editors for revision control must wait while document is edited,