diff --git a/cmd/config.go b/cmd/config.go index 2ca769f..a3ffeb3 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -51,7 +51,10 @@ var editCmd = &cobra.Command{ editor := os.Getenv("EDITOR") if editor == "" { - editor = "vim" + editor = os.Getenv("VISUAL") + } + if editor == "" { + editor = "vi" } editCmd := exec.Command(editor, tmpFile.Name())