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 @@
|
|||
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
|
||||
|
||||
|
|
|
@ -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