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?

  • 1
    I was simply asking for a list of bundled command-line text editors. I want to walk up to a Mac and edit files. How is this an unclear Question? – Basil Bourque Sep 26 '17 at 22:55
  • 1
    @patrix Choice? I have to say, your decision to close this Question and the ensuing comments leave me mystified. – Basil Bourque Sep 27 '17 at 14:23
  • 1
    Your question gathered more "keep closed" than "reopen" votes in the reopen queue. Nevertheless I've made my fellow mods aware of the question to get another opinion on this. – nohillside Sep 27 '17 at 15:52
  • 1
    @LangLangC Wow, those points would make for a very interesting Answer. – Basil Bourque Sep 27 '17 at 21:09
  • 1
    Yes, GNU nano is the way to go for a simple editor on a Mac, now that I know the Pico project is deceased and FreeBSD’s ee editor is not included. Thanks. – Basil Bourque Sep 27 '17 at 21:27

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.

  • Well, reopened only to be closed again as a duplicate. At least ed wasn't mentioned in the duplicate. (Sorry, I just couldn't resist.) :) – user3439894 Sep 30 '17 at 0:34
  • 1
    Good answer. Thanks. Consider posting on linked Question – Basil Bourque Sep 30 '17 at 2:08
  • @Basil Bourque, Since you mentioned it, I did. Thanks. – user3439894 Sep 30 '17 at 2:18
  • POSIX conformance require ed, ex, and vi are available on the conforming OS. – fd0 Sep 30 '17 at 6:38
  • 1
    @BasilBourque- pubs.opengroup.org/onlinepubs/9699919799/idx/ie.html – fd0 May 31 '18 at 4:55

Not the answer you're looking for? Browse other questions tagged .