From 42ab2d39e8ef466f2dffdf6521f4f9658a18f188 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Thu, 22 Jul 2021 08:53:02 +0200 Subject: [PATCH] Change EDITOR to nvim when available --- profile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/profile b/profile index 0a2ce29..331148e 100644 --- a/profile +++ b/profile @@ -1,6 +1,9 @@ # vim: set noexpandtab filetype=sh :miv # -export EDITOR=vim +if which nvim +then export EDITOR=nvim +else export EDITOR=vim +fi export LESSCHARSET=utf-8