As part of T10491 we've come up with a simple mechanism/policy (see R2131:d8bb69ae847c) for ensuring that nano is set as the default editor for e.g. git and other console tools respecting the $EDITOR and/or $VISUAL environment variables.
However, for consistency, it might be smart to ensure that select console editors all ship with a similar config file, such that if a user removes all editors but their preferred one, it still sets the appropriate env vars by default.
It is worth noting that these env vars will typically be overwritten by the user in their shell startup configs (~/.bashrc or similar).
nano uses a prefix of 81- and I'm proposing that all other editors use a prefix of 80- to avoid overwriting nano if more than one editor is installed. This is simply to avoid curious users getting into the "how do I quit vi" scenario.
List of suggested editors:
- vim (@ermo)
- neovim (@EbonJaeger)
- micro (@Harvey ?)
- kakoune (@davidjharder)
- (...)