Added Linux vs Darwin differences for vim/nvim
This commit is contained in:
parent
c1cab658d1
commit
870f20734e
2 changed files with 26 additions and 7 deletions
|
@ -1,6 +1,14 @@
|
|||
if whence -p nvim-gtk > /dev/null; then
|
||||
case `uname` in
|
||||
Linux)
|
||||
if whence -p nvim-gtk > /dev/null; then
|
||||
alias vim=nvim-gtk
|
||||
elif whence -p gvim > /dev/null; then
|
||||
elif whence -p gvim > /dev/null; then
|
||||
alias vim=gvim
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
Darwin)
|
||||
if whence -p nvim > /dev/null; then
|
||||
alias vim=nvim
|
||||
fi
|
||||
esac
|
||||
|
||||
|
|
|
@ -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/"
|
||||
|
|
Loading…
Reference in a new issue