Swap to nvim, but make sure vim still works
This commit is contained in:
parent
fbc528da5f
commit
f113e0428c
7 changed files with 34 additions and 14 deletions
8
zshenv
8
zshenv
|
@ -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/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue