As almost everything in Linux there are always divided opinions, the terminal text editors are no exception. There are those who prefer vi, vim, others mcedit and others (a bit most I think) who prefer dwarf.
Has it happened to you that an application (when you install it or etc) opens a text file for you to edit, and it is opened with a text editor that is NOT your favorite?
For example, users who like vim open that file with nano ... this obviously does not show a smile on their face 😀
In order for the system to always use the text editor in terminal that you want, you must add the following in your .bashrc:
To add it to the .bashrc it would be:
echo "export EDITOR=vim" >> $HOME/.bashrc
And voila, matter solved.