Swap to nvim, but make sure vim still works

This commit is contained in:
Andrew Tomaka 2017-08-31 00:19:46 -04:00
parent fbc528da5f
commit f113e0428c
No known key found for this signature in database
GPG key ID: C78D1A81582BAC86
7 changed files with 34 additions and 14 deletions

8
zshenv
View file

@ -28,4 +28,12 @@ fi
# MAN
[[ -d "$GNU_TOOLS_MAN_PATH" ]] && MANPATH="$GNU_TOOLS_MAN_PATH:$MANPATH"
# EDITOR
if [[ -x "$(command -v nvim)" ]]; then
export {EDITOR,GIT_EDITOR}=nvim
else
export {EDITOR,GIT_EDITOR}=vim
fi
export GOPATH="$HOME/go-workspace/"