Q. I find vi hard to use. How do I change my default text editor from vim / vi to Pico under Debian Linux? A. To use and change an editor to edit your text message, set the variable EDITOR to the pathname of the vi / vim binary file. You need to use export [...]
Read answer to: "Change default Linux / UNIX text editor from VI to Pico"