Add command exist check

if /usr/local/bin/vim exist export EDITOR to vim.