Added Linux vs Darwin differences for vim/nvim

This commit is contained in:
Eric Renfro 2020-11-29 17:44:32 -05:00
parent 6078a4c601
commit 010dc4505d
2 changed files with 26 additions and 7 deletions

View file

@ -1,6 +1,14 @@
case `uname` in
Linux)
if whence -p nvim-gtk > /dev/null; then
alias vim=nvim-gtk
elif whence -p gvim > /dev/null; then
alias vim=gvim
fi
;;
Darwin)
if whence -p nvim > /dev/null; then
alias vim=nvim
fi
esac

View file

@ -1,6 +1,17 @@
case `uname` in
Linux)
EDITOR=vim
VISUAL=vim
;;
Darwin)
EDITOR=nvim
VISUAL=nvim
;;
esac
# Default Environment
export EDITOR=vim
export VISUAL=vim
export EDITOR
export VISUAL
export PAGER=less
export VIMINIT=":set runtimepath^=$HOME/.SpaceVim|:source $HOME/.SpaceVim/vimrc"
export SPACEVIMDIR="$HOME/.SpaceVim.d/"