# Short answer: # In Ubuntu, run select-editor which will create a ~/.selected_editor file # with your preferred editor select-editor
export EDITOR='vim'