Added the ability to specify editor. Defaults to vim.