Add vim to neovim alias

This commit is contained in:
Arti Zirk 2019-08-12 10:12:10 +03:00
parent c12d97ecb7
commit 6eeb4da26e
1 changed files with 8 additions and 0 deletions

8
.bin/vim Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
NVIM=$(which nvim)
if [ -n "${NVIM} ] && [ -x "${NVIM} ]; then
exec ${NVIM} "$@"
else
exec vim "$@"
fi