Skip to content

Commit

Permalink
On Mac, use vim when in tmux, otherwise use mvim.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Alman authored and Ben Alman committed Jul 10, 2017
1 parent 9f55acd commit d5005b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/50_editor.sh
@@ -1,11 +1,11 @@
# Editing

export EDITOR=vim

if [[ ! "$SSH_TTY" ]] && is_osx; then
export EDITOR='mvim'
export LESSEDIT='mvim ?lm+%lm -- %f'
export GIT_EDITOR='mvim -f'
else
export EDITOR='vim'
[[ ! "$TMUX" ]] && EDITOR=mvim
export LESSEDIT="$EDITOR ?lm+%lm -- %f"
export GIT_EDITOR="$EDITOR -f"
fi

export VISUAL="$EDITOR"
Expand Down

0 comments on commit d5005b4

Please sign in to comment.