summary refs log tree commit diff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc3
1 files changed, 2 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index c0f1fd19..3106dc79 100644
--- a/.zshrc
+++ b/.zshrc
@@ -11,7 +11,8 @@ bindkey -v
 KEYTIMEOUT=1
 
 PATH=$PATH:~/.bin
-export EDITOR=vim
+export EDITOR=vim GIT_EDITOR=vim
+type nvim > /dev/null && EDITOR=nvim GIT_EDITOR=nvim && alias vim=nvim
 
 [[ "$OSTYPE" =~ 'darwin' ]] && alias osx=true || alias osx=false
 osx && export CLICOLOR=1 || alias ls='ls --color' grep='grep --color'