From c50a5ce3600715cd82edc72d842d42ff33bd146e Mon Sep 17 00:00:00 2001 From: liv Date: Tue, 16 Jul 2024 00:10:31 +0200 Subject: [PATCH] alias nvim over vim if installed --- dot_config/fish/config.fish | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dot_config/fish/config.fish b/dot_config/fish/config.fish index 39d5164..3c27e74 100644 --- a/dot_config/fish/config.fish +++ b/dot_config/fish/config.fish @@ -75,6 +75,11 @@ alias cd.. "cd ../" alias rmrf "rm -rf" alias czm chezmoi +# If nvim is installed, alias vim with it +if command --search nvim >/dev/null + alias vim nvim +end + # overrides of defaults alias mkdir "mkdir -p" alias cp "cp -r"