Added Linux vs Darwin differences for vim/nvim
This commit is contained in:
parent
957f362ff1
commit
c8fcd6d3d2
2 changed files with 26 additions and 7 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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/"
|
||||||
|
|
Loading…
Reference in a new issue