Use `command` to check if the editor is available
Merge pull request #1 from badboy/patch-1

Use `command` to check if the editor is available