From 6bd642d86394410334733a0f10618769fae7bfad Mon Sep 17 00:00:00 2001 From: He4eT Date: Wed, 1 May 2024 23:42:08 +0200 Subject: [PATCH] zsh: replace vim with nvim inside the NeoVim --- root/.zshrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/root/.zshrc b/root/.zshrc index a3b21dd..231a9de 100644 --- a/root/.zshrc +++ b/root/.zshrc @@ -1,9 +1,12 @@ # Common settings export PATH=$HOME/apps/bin:$PATH -export EDITOR="/usr/bin/vim" -# export SSH_KEY_PATH="~/.ssh/rsa_id" -# export ARCHFLAGS="-arch x86_64" + +if [[ "$NVIM" ]]; then + export EDITOR="/usr/bin/nvim" +else + export EDITOR="/usr/bin/vim" +fi # NVM