dotfiles/.config/shell/rc.d/alias-nvim-to-vim.sh

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