3 ms·
> ^XX - Toggle between beginning of line & current cursor positions This is not true. ^X^X is actually a well known for Emacs users command "exchange-point-an
by klibertp 12y ago
> ^XX - Toggle between beginning of line & current cursor positions
This is not true. ^X^X is actually a well known for Emacs users command "exchange-point-and-mark" and it only skips to the beginning of line because that's where the mark is by default. You can set the mark yourself with C-<space> anywhere on the line. From this point on pressing ^X^X will move your cursor to where you activated the mark, and move the mark to where your cursor was. That's pretty useful sometimes.
These two should be equivalent, I think, unless there is something strange going on:
Alt+T - Swap current word with prev
Esc+T Swap last 2 words with prev
C-c abandons current line without saving it in the kill ring and no matter where on the line you are. Faster than C-e C-u or C-a C-k.
M-r (Alt R) works as if you pressed undo (C-/ or C-_) enough times to get back to the empty line.
I put a little cheatsheet for those things some time ago for my coworkers, it lives here: http://klibert.pl/readline.html http://klibert.pl/readline.html