From 7111005253341e391e2a698464463cbe94cf8676 Mon Sep 17 00:00:00 2001 From: materus Date: Sat, 21 Mar 2026 10:36:26 +0100 Subject: [PATCH] Add nvim aliases to zsh --- config/shell/zsh/zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/shell/zsh/zshrc b/config/shell/zsh/zshrc index 75e8c72..a57b38e 100644 --- a/config/shell/zsh/zshrc +++ b/config/shell/zsh/zshrc @@ -107,6 +107,13 @@ speedtest() { if [[ "$TERM" = "xterm-kitty" ]]; then alias ssh="kitty +kitten ssh" fi +if [[ $(whence -p "nvim") ]]; then + EDITOR="${EDITOR:-nvim}" + alias vim="nvim" + alias vi="nvim" + alias vimdiff="nvim -d" +fi + #endregion if [[ "$__MATERUS_ZSH_256COLORS" = "1" ]] ; then [[ ! -f ${ZSH_CONFIG_DIR}/p10kcfg/fullcolor.zsh ]] || source ${ZSH_CONFIG_DIR}/p10kcfg/fullcolor.zsh;