When comparing ed vs Kakoune, the Slant community recommends Kakoune for most people. In the question“What are the best programming text editors?” Kakoune is ranked 11th while ed is ranked 55th. The most important reason people chose Kakoune is:
Kakoune first started as a rewrite from scratch of vim, but then ended up being another text editor altogether. So it's inspired in a lot of ways from vim.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Tight control over what's displayed, within terminal window
Pro ed is the standard text editor
As the standard text editor, ed
is available on multiple systems.
Pro Consistent UI
ed
has a consistent user interface and error reportage.
Pro Will be familiar to vim users
Kakoune first started as a rewrite from scratch of vim, but then ended up being another text editor altogether. So it's inspired in a lot of ways from vim.
Pro More modern than vim
Pro Good UNIX citizen
It follows the UNIX philosophy by doing one thing well (text editing) and interfaces nicely with other CLI tools.
Pro Text selection mechanism
Kakoune works on selections, which are oriented, inclusive range of characters, selections have an anchor and a cursor character. Most commands move both of them, except when extending selection where the anchor character stays fixed and the cursor one moves around.
Pro Very expressive
Kakoune provides a very expressive set of commands, including various objects selection (paragraph, blocks, words), alignment support, conditional selection filtering...
This set of command is expressive enough to implement all the provided auto indentation logic.
Pro Actively developed and supported
Pro Self-documenting
A helper pops up when typing commands.
Pro Simpler and more consistent than Vim
Some keys select, other keys operate on the selections. Shift
is used to extend the selection, alt
is used for alternative behavior, e.g. reverse the search direction. No inconsistencies like Y
which means yy
and not y$
in Vim.
Cons
Con Obsolete
There's absolutely no need for ed when you have sed and ex.
Con Not a lot of features
While extremely fast and simple, Ed is simply not for programming for a long time because it lacks a lot of important features. It should be used instead for quick edits.
Con Not a persistent UI
You can only view portions of a file through search or regular expression commands. You cannot scan or scroll through a file using the available screen real-estate.
It's not too dissimilar in use to command-line tools (such as grep and sed) for editing a file. In fact, both grep and sed are based on how interaction is performed with Ed.
Con Small community
Con No real Windows support
Will compile under CygWin.