Skip to content

Commit

Permalink
Set GIT_EDITOR and CVSEDITOR when using g/mvim.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfoster committed Jan 17, 2011
1 parent a752ba2 commit 237138c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 05_editor
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export EDITOR
export CVSEDITOR
export GIT_EDITOR

# Define an order or preference for text editors
local editors
Expand All @@ -16,6 +17,7 @@ for editor ($editors) {
# Some editors need specific arguments for VCS
if [[ $EDITOR == 'mvim' || $EDITOR == 'gvim' ]]; then
export CVSEDITOR="$EDITOR -f" # Don't fork.
export GIT_EDITOR="$EDITOR -f" # Don't fork.
fi

# Print a warning if there's still no editor set.
Expand Down

0 comments on commit 237138c

Please sign in to comment.