Several commands you can issue from composer automatically open a text editor. The type of editor is determined by the value of two shell variables. If the variable VISUAL is set, it defines the editor, otherwise the variable EDITOR defines the editor. If neither of the variables is set, a vi editor is opened.