From 379ef6f0b1e41f53820f07041bc615c0a1ca0352 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 1 Dec 2022 13:47:13 +0100 Subject: envvar editor --- bash/env.profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bash') diff --git a/bash/env.profile b/bash/env.profile index ac3f13b..d7e09b9 100644 --- a/bash/env.profile +++ b/bash/env.profile @@ -17,7 +17,11 @@ appendpath "$HOME/.ghcup/bin" export PATH unset appendpath -export EDITOR=nvim +if which nvim > /dev/null 2>&1 && [ ! "$FORCE_VANILLA_VIM" = "yes" ] ; then + export EDITOR=nvim +else + export EDITOR=vim +fi #Java Gradle hopme PATH export GRADLE_USER_HOME=~/.gradle -- cgit v1.2.3