What command-line text editors come bundled with macOS? When I walk up to a Mac, and open a Terminal.app window, what options do I have for editing text files?

I see that both Pico and GNU nano text editors are included with macOS Sierra, along with vi and Emacs, but apparently not the ee text editor bundled in FreeBSD. 

What other options for command-line text editors are built into macOS?


Pico
GNU nano
vi
Emacs
Since you did ask "What other options for command-line text editors are built into macOS?" and ed was not mention in your OP, let me offer it as an addition to the list.

The manual page for ed states:


  The ed utility is a line-oriented text editor.  It is used to create, display, modify and otherwise manipulate text files.