Use emacsclient as EDITOR if present, otherwise vim.