Commands For Text
Bindable Readline Commands
Numeric Arguments
kill-line (C-k)
|
Kill the text from the current cursor position to the end of the line. |
backward-kill-line (C-x Rubout)
|
Kill backward to the beginning of the line. |
unix-line-discard (C-u)
|
Kill backward from the cursor to the beginning of the current line. The killed text is saved on the kill-ring. |
kill-whole-line ()
|
Kill all characters on the current line, no matter where the cursor is. By default, this is unbound. |
kill-word (M-d)
|
Kill from the cursor to the end of the current word, or if between
words, to the end of the next word. Word boundaries are the same
as |
backward-kill-word (M-DEL)
|
Kill the word behind the cursor. Word boundaries are the same
as |
unix-word-rubout (C-w)
|
Kill the word behind the cursor, using white space as a word boundary. The killed text is saved on the kill-ring. |
delete-horizontal-space ()
|
Delete all spaces and tabs around point. By default, this is unbound. |
kill-region ()
|
Kill the text between the point and the mark (saved cursor position). This text is referred to as the region. By default, this command is unbound. |
copy-region-as-kill ()
|
Copy the text in the region to the kill buffer, so it can be yanked right away. By default, this command is unbound. |
copy-backward-word ()
|
Copy the word before point to the kill buffer.
The word boundaries are the same as |
copy-forward-word ()
|
Copy the word following point to the kill buffer.
The word boundaries are the same as |
yank (C-y)
|
Yank the top of the kill ring into the buffer at the current cursor position. |
yank-pop (M-y)
|
Rotate the kill-ring, and yank the new top. You can only do this if the prior command is yank or yank-pop. |