diff options
Diffstat (limited to 'bash/env.profile')
-rw-r--r-- | bash/env.profile | 6 |
1 files changed, 5 insertions, 1 deletions
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 |