Comment by piekvorst
11 hours ago
This reminds me of an excerpt from an old Emacs manual:
. . . if you forget which commands deal with windows, just type @b[ESC-?]@t[window]@b[ESC].
This weird command is presented with such a benevolent innocence as if it's the simplest thing in the world.
I think the better advice for command-line editing would be to set up the mouse.
For a bit about the language, read `3bcw` as move `b`ackward by `3` words and `c`hange the `w`ord under the cursor.
The general form of `b` is `[count]b` where
https://vimdoc.sourceforge.net/htmldoc/intro.html#[count]
https://vimdoc.sourceforge.net/htmldoc/motion.html#b
For `c` it’s
https://vimdoc.sourceforge.net/htmldoc/change.html#c
https://vimdoc.sourceforge.net/htmldoc/intro.html#{motion}
I have yet to see a shell that has mouse enabled line editing support. It should certainly be possible though.
I do prefer vi bindings at the same time though. Vi bindings and mouse support complement each other well, you don't have to choose one or the other, just use whichever feels most natural and convenient in that exact moment.
> This weird command is presented with such a benevolent innocence as if it's the simplest thing in the world.
I think it's a question of context and familiarity. To a vim user, like me and, I assume, ahmedfromtunis, their examples do indeed seem simple and natural. Presumably, to an emacs user, the example you quote (if it's quoted literally—I don't use emacs and can't even tell) is just as natural, and assuming some comfort with emacs is presumably OK in a manual for the software!
> assuming some comfort with emacs is presumably OK in a manual for the software!
How do you get familiar with the software, if the manual expects you to be an expert in it already?
I got familiar with vi by reading a book that had the main vi commands listed out. First learnt how to quit without saving changes, the rest was just practice.
Not sure if it did at the time, but today emacs comes with a tutorial. You’re not expected to learn it by starting on page 1 of the manual.
2 replies →
By reading introductory material.
The example confusingly includes some weird markup. It's just saying press `ESC-?` then type "window" to search for window commands. These isn't even valid in modern Emacs. The equivalent is `C-h` followed by `a` then type "window".