Lurker News
Back to discussion

Comment by oinksoft

oinksoft2 replies#
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.

pavanky1 reply#
Thanks! fixed.

I never noticed C-u was from cursor. I tend to use it mostly from the end of the line.

oinksoft1 reply#
And that's why C-e C-u is burned into my hands :^)
philsnow2 replies#
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.

Continue this thread — 2 replies

teddyh#
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.