summary refs log tree commit diff
path: root/.zshrc
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2016-02-05 00:04:15 -0500
committerJune McEnroe <june@causal.agency>2016-02-05 00:04:15 -0500
commit2875edc6b9478e6b008dabdedc64cdce65c38e73 (patch)
tree12e6595de357fb5089076602c34d3b5f821587d2 /.zshrc
parentMore iTerm configuration tweaks (diff)
downloadsrc-2875edc6b9478e6b008dabdedc64cdce65c38e73.tar.gz
src-2875edc6b9478e6b008dabdedc64cdce65c38e73.zip
Add nvim configuration
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'