my-yadm/.local/dotfiles/aliases/gvim.zsh

17 lines
318 B
Bash
Raw Normal View History

case `uname` in
Linux)
if whence -p nvim-gtk > /dev/null; then
alias vim=nvim-gtk
2022-08-17 21:46:09 -04:00
elif whence -p nvim > /dev/null; then
alias vim=nvim
elif whence -p gvim > /dev/null; then
alias vim=gvim
fi
;;
Darwin)
if whence -p nvim > /dev/null; then
alias vim=nvim
fi
esac
2020-11-29 13:20:11 -05:00