X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/a3bfc8208a7d8fb6c0aa34d6398f29f7334ad421..d5c95f6a8f274f42cce81bfe544266a7bb53474b:/.zsh/zshenv/parts.d/50-vim?ds=inline diff --git a/.zsh/zshenv/parts.d/50-vim b/.zsh/zshenv/parts.d/50-vim index 2818885..51d633e 100644 --- a/.zsh/zshenv/parts.d/50-vim +++ b/.zsh/zshenv/parts.d/50-vim @@ -7,7 +7,9 @@ # Source repository: http://git.madduck.net/v/etc/zsh.git # -export EDITOR==vim -export VISUAL=$EDITOR +if command -v vim >/dev/null; then + export EDITOR==vim + export VISUAL=$EDITOR +fi # vim:ft=zsh