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