diff --git a/rc/bashrc b/rc/bashrc index e8d6383d..612a648a 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -867,12 +867,12 @@ ssh-verify-file() { if hash nvim 2> /dev/null; then vim() { echo 'using nvim instead' - \nvim "$@" + /usr/bin/env nvim "$@" } else vim() { echo 'nvim not found' - \vim "$@" + /usr/bin/env vim "$@" } fi diff --git a/rc/zshrc b/rc/zshrc index ecce4196..74e32520 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -861,12 +861,12 @@ ssh-verify-file () { if hash nvim 2>/dev/null; then vim() { echo 'using nvim instead' - \nvim "$@" + /usr/bin/env nvim "$@" } else vim() { echo 'nvim not found' - \vim "$@" + /usr/bin/env vim "$@" } fi