Added Linux vs Darwin differences for vim/nvim

This commit is contained in:
Eric Renfro 2020-11-29 17:44:32 -05:00
parent c1cab658d1
commit 870f20734e
Signed by untrusted user who does not match committer: psi-jack
GPG key ID: 14977F3A50D9A5BF
2 changed files with 26 additions and 7 deletions

View file

@ -1,6 +1,14 @@
if whence -p nvim-gtk > /dev/null; then case `uname` in
alias vim=nvim-gtk Linux)
elif whence -p gvim > /dev/null; then if whence -p nvim-gtk > /dev/null; then
alias vim=gvim alias vim=nvim-gtk
fi 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 # Default Environment
export EDITOR=vim export EDITOR
export VISUAL=vim export VISUAL
export PAGER=less export PAGER=less
export VIMINIT=":set runtimepath^=$HOME/.SpaceVim|:source $HOME/.SpaceVim/vimrc" export VIMINIT=":set runtimepath^=$HOME/.SpaceVim|:source $HOME/.SpaceVim/vimrc"
export SPACEVIMDIR="$HOME/.SpaceVim.d/" export SPACEVIMDIR="$HOME/.SpaceVim.d/"