kill-line - Delete all characters to the end of the line
n kill-line (C-k)
kill-line, when used with no argument n, deletes all text from the cursor to the end of a line, the end of line character is also deleted if the cursor is in the first column and the line(2m) mode is disabled. The deleted text is placed in the kill buffer, see yank(2) for more information on the kill buffer. When used on a blank line, it always deletes it.
If a +ve argument n is supplied the specified number of lines is deleted, the setting of the line mode is ignore. If n is 0 the command has no effect. If a -ve argument is given, +n lines are deleted but the text is NOT added to the kill buffer.
If a line is accidentally removed then yank the text back immediately or use undo(2).
The -ve argument is typically used in macro scripts where the yank buffer is more precisely controlled by the script.
(c) Copyright JASSPA 2001
Last Modified: 2001/08/12
Generated On: 2001/08/15