From c90383f88363ba6061b9457df262035f65caf3d8 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 2 Mar 2022 21:22:34 +0100 Subject: [PATCH] [nvim]: set vim alias for nvim. --- .bashrc.dotfiles | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bashrc.dotfiles b/.bashrc.dotfiles index 5b4cc27..b752406 100644 --- a/.bashrc.dotfiles +++ b/.bashrc.dotfiles @@ -41,7 +41,8 @@ fi # Set the editor if command -v nvim &> /dev/null; then + alias vim=nvim export EDITOR=nvim -elif command -v vim &> /dev/null; then +else export EDITOR=vim fi