Note that for this to work, there must be a default editor set. Normally this is pre-setup by most distros and systems - but! This generally defaults to Nano.
You can override this by setting the EDITOR environment variable (and for good measure, the VISUAL variable too.
This will do the trick (and not repeat itself if it's already done !)
It checks whether VISUAL or EDITOR are set, and if neither is set, adds the vim editor as default editor. You can replace this with any other command line text editor you care for - normally one of vimemacs or nano. If you know, you know ;-)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Note that for this to work, there must be a default editor set. Normally this is pre-setup by most distros and systems - but! This generally defaults to Nano.
You can override this by setting the
EDITOR
environment variable (and for good measure, theVISUAL
variable too.This will do the trick (and not repeat itself if it's already done !)
It checks whether VISUAL or EDITOR are set, and if neither is set, adds the
vim
editor as default editor. You can replace this with any other command line text editor you care for - normally one ofvim
emacs
ornano
. If you know, you know ;-)