3 ms·
Just wanted to note: 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.
by oinksoft 13y ago
Just wanted to note:
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.
- pavanky 13y agoThanks! fixed. I never noticed C-u was from cursor. I tend to use it mostly from the end of the line.
- oinksoft 13y agoAnd that's why C-e C-u is burned into my hands :^)
- philsnow 13y agoIs 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.
- oinksoft 13y agoYea, there's the GNU Screen mapping conflict, and also I rarely use C-k so it's not in my muscle memory.
- philsnow 13y agoMakes 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.
- teddyh 13y agoNote: 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.