From c9c60062cef1115fb394f1fbc6802c948aef7510 Mon Sep 17 00:00:00 2001 From: lara Date: Wed, 23 Dec 2020 16:46:18 +0100 Subject: [PATCH] [zsh] Use neovim as vim if available --- zshrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index ab94575..2464544 100644 --- a/zshrc +++ b/zshrc @@ -26,7 +26,13 @@ if [ -d "$HOME/emsdk" ]; then PATH="$PATH:~/emsdk:~/emsdk/node/12.9.1_64bit/bin:~/emsdk/fastcomp/emscripten" #:~/emsdk/fastcomp/emscripten/tools" fi export BROWSER='/usr/bin/w3m -T "text/html"' -export EDITOR=/usr/bin/vim +if which nvim > /dev/null 2>&1; then + export EDITOR=/usr/bin/nvim +else + export EDITOR=/usr/bin/vim +fi +# Disable `less` history file +export LESSHISTFILE='/dev/null' export GPG_TTY="$(tty)" # Prevent mime associations by wine export WINEPREFIX="$HOME/.wine"