/usr/bin/bash: Difference between revisions

Line 1,846: Line 1,846:


=== Killing and Yanking ===
=== Killing and Yanking ===
      kill-line (C-k)
;kill-line (C-k)
              Kill the text from point to the end of the line.
:Kill the text from point to the end of the line.
      backward-kill-line (C-x Rubout)
;backward-kill-line (C-x Rubout)
              Kill backward to the beginning of the line.
:Kill backward to the beginning of the line.
      unix-line-discard (C-u)
;unix-line-discard (C-u)
              Kill backward from point to the beginning of the line.  The killed text is  saved  on  the
:Kill backward from point to the beginning of the line.  The killed text is  saved  on  the kill-ring.
              kill-ring.
;kill-whole-line
      kill-whole-line
:Kill all characters on the current line, no matter where point is.
              Kill all characters on the current line, no matter where point is.
;kill-word (M-d)
      kill-word (M-d)
:Kill  from  point  to  the end of the current word, or if between words, to the end of the next word.  Word boundaries are the same as those used by forward-word.
              Kill  from  point  to  the end of the current word, or if between words, to the end of the
;backward-kill-word (M-Rubout)
              next word.  Word boundaries are the same as those used by forward-word.
:Kill the word behind point.  Word boundaries are the same as those used by backward-word.
      backward-kill-word (M-Rubout)
;shell-kill-word
              Kill the word behind point.  Word boundaries are the same as those used by backward-word.
:Kill from point to the end of the current word, or if between words, to  the  end  of  the next word.  Word boundaries are the same as those used by shell-forward-word.
      shell-kill-word
;shell-backward-kill-word
              Kill from point to the end of the current word, or if between words, to  the  end  of  the
:Kill  the  word  behind  point.  Word boundaries are the same as those used by shell-backward-word.
              next word.  Word boundaries are the same as those used by shell-forward-word.
;unix-word-rubout (C-w)
      shell-backward-kill-word
:Kill the word behind point, using white space as a word  boundary.  The  killed  text  is saved on the kill-ring.
              Kill  the  word  behind  point.  Word boundaries are the same as those used by shell-back‐
;unix-filename-rubout
              ward-word.
:Kill  the  word behind point, using white space and the slash character as the word boundaries.  The killed text is saved on the kill-ring.
      unix-word-rubout (C-w)
;delete-horizontal-space (M-\)
              Kill the word behind point, using white space as a word  boundary.  The  killed  text  is
:Delete all spaces and tabs around point.
              saved on the kill-ring.
;kill-region
      unix-filename-rubout
:Kill the text in the current region.
              Kill  the  word behind point, using white space and the slash character as the word bound‐
;copy-region-as-kill
              aries.  The killed text is saved on the kill-ring.
:Copy the text in the region to the kill buffer.
      delete-horizontal-space (M-\)
;copy-backward-word
              Delete all spaces and tabs around point.
:Copy the word before point to the kill buffer.  The word boundaries are the same as  backward-word.
      kill-region
;copy-forward-word
              Kill the text in the current region.
:Copy  the  word  following  point to the kill buffer.  The word boundaries are the same as forward-word.
      copy-region-as-kill
;yank (C-y)
              Copy the text in the region to the kill buffer.
:Yank the top of the kill ring into the buffer at point.
      copy-backward-word
;yank-pop (M-y)
              Copy the word before point to the kill buffer.  The word boundaries are the same as  back‐
:Rotate the kill ring, and yank the new top.  Only works following yank or yank-pop.
              ward-word.
      copy-forward-word
              Copy  the  word  following  point to the kill buffer.  The word boundaries are the same as
              forward-word.
      yank (C-y)
              Yank the top of the kill ring into the buffer at point.
      yank-pop (M-y)
              Rotate the kill ring, and yank the new top.  Only works following yank or yank-pop.


=== Numeric Arguments ===
=== Numeric Arguments ===