dotfiles/.config/zsh/6-nvim-to-vim-if-installed

4 lines
128 B
Bash

#!/bin/sh
# Check for existence of nvim command. If found, substitute vim with it.
type nvim >/dev/null 2>&1 && alias vim=nvim