From aeca37d359ef236bc3562f2bb3b8b6f6fca4fe8f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 17 Dec 2015 05:31:29 -0500 Subject: [PATCH] EDITOR=nvim --- zshenv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zshenv b/zshenv index 33f24321..73b3a7b3 100644 --- a/zshenv +++ b/zshenv @@ -7,8 +7,8 @@ is-cygwin() { [[ "$OSTYPE" == "cygwin"* ]]; } export BROWSER='open' ## Editors -export EDITOR='vim' -export VISUAL='vim' +export EDITOR=$(is-callable nvim && echo 'nvim' || echo 'vim') +export VISUAL=$EDITOR export PAGER='less' export RUBYOPT=rubygems # export CC=/usr/bin/clang