Note: Ctrl-U and Ctrl-W are not from Emacs. They are instead from the same group as Ctrl-C for interrupt, Ctrl-D for End-of-File, etc; i.e. traditional Unix TTY driver keys. Run “stty -a” to see them all; the stty command can also be used to change them.
Thanks! fixed.
I never noticed C-u was from cursor. I tend to use it mostly from the end of the line.
And that's why C-e C-u is burned into my hands :^)
Is it any different from C-a C-k ? Both seem to stuff things into the kill ring (or whatever it's called in bash).
I guess lots of people leave C-a as the default escape key for screen.
Yea, there's the GNU Screen mapping conflict, and also I rarely use C-k so it's not in my muscle memory.
Re:Quick tip for developers who use OS X
by philsnow on Wednesday January 15, 2014 @03:32AM
(#7062256)
Makes sense; I use emacs in addition to just the emacs-like readline bindings, so C-u conflicts with "prefix argument". I also nest screen sessions using ^Z as the outer one's escape key and ^O as the inner one's, partly so I can use C-a / ^A.
C-u kills from cursor to start of line.
C-w kills from cursor to start of previous word. M-d is its friendly forward sibling.