From 75b7a97314fc6eb80b53b6685bd0ecfe451b74fd Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 24 Jul 2018 20:04:32 +0300 Subject: [PATCH] vim alias is back --- zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zshrc b/zshrc index ded5760..7dfefcc 100644 --- a/zshrc +++ b/zshrc @@ -170,6 +170,11 @@ alias rscreen='command screen -Dr' alias scr='command screen sudo -Es' # }}} # {{{ plugins +# vi alias +vim() { + vimcmd=$(whence nvim) || vimcmd=$(whence vim) || vimcmd=$(whence vi) + $vimcmd "$@" +} # grc if [[ -x "$(whence grc)" ]]; then cmds=(\