diff --git a/zshrc b/zshrc index 5371b8f..5421ab9 100644 --- a/zshrc +++ b/zshrc @@ -45,7 +45,12 @@ alias poweroff='sudo poweroff' alias reboot='sudo reboot' alias n='ninja' alias cmake='cmake -G Ninja' -alias v='vim' +if test -f $(which nvim) +then + alias v='nvim' +else + alias v='vim' +fi if [ -f .zsh_environment ] then source ~/.zsh_environment