Skip to content

Commit

Permalink
vim: set EDITOR to nvim if available
Browse files Browse the repository at this point in the history
  • Loading branch information
aereal committed Jan 4, 2018
1 parent 1e0f9c2 commit d29cdea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ manpath=(
export PAGER=less
export LESS='--LONG-PROMPT --RAW-CONTROL-CHARS'

if whence nvim 2>&1 >/dev/null; then
EDITOR=nvim
fi

MACVIM_APP=
local -a macvim_app_candidates=(
/opt/homebrew-cask/Caskroom/macvim-kaoriya/*/MacVim.app(N-/)
Expand Down

0 comments on commit d29cdea

Please sign in to comment.