Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Readline-Killing-Commands.html
blobac856e9da3e41912660fea4135932742eed6dbed
1 <html lang="en">
2 <head>
3 <title>Debugging with GDB</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="Debugging with GDB">
6 <meta name="generator" content="makeinfo 4.3">
7 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home">
8 </head>
9 <body>
10 <div class="node">
11 <p>
12 Node:<a name="Readline%20Killing%20Commands">Readline Killing Commands</a>,
13 Next:<a rel="next" accesskey="n" href="Readline-Arguments.html#Readline%20Arguments">Readline Arguments</a>,
14 Previous:<a rel="previous" accesskey="p" href="Readline-Movement-Commands.html#Readline%20Movement%20Commands">Readline Movement Commands</a>,
15 Up:<a rel="up" accesskey="u" href="Readline-Interaction.html#Readline%20Interaction">Readline Interaction</a>
16 <hr><br>
17 </div>
19 <h4 class="subsection">Readline Killing Commands</h4>
21 <p><dfn>Killing</dfn> text means to delete the text from the line, but to save
22 it away for later use, usually by <dfn>yanking</dfn> (re-inserting)
23 it back into the line.
24 (`Cut' and `paste' are more recent jargon for `kill' and `yank'.)
26 <p>If the description for a command says that it `kills' text, then you can
27 be sure that you can get the text back in a different (or the same)
28 place later.
30 <p>When you use a kill command, the text is saved in a <dfn>kill-ring</dfn>.
31 Any number of consecutive kills save all of the killed text together, so
32 that when you yank it back, you get it all. The kill
33 ring is not line specific; the text that you killed on a previously
34 typed line is available to be yanked back later, when you are typing
35 another line.
37 <p>Here is the list of commands for killing text.
39 <dl>
40 <dt><kbd>C-k</kbd>
41 <dd>Kill the text from the current cursor position to the end of the line.
43 <br><dt><kbd>M-d</kbd>
44 <dd>Kill from the cursor to the end of the current word, or, if between
45 words, to the end of the next word.
46 Word boundaries are the same as those used by <kbd>M-f</kbd>.
48 <br><dt><kbd>M-&lt;DEL&gt;</kbd>
49 <dd>Kill from the cursor the start of the previous word, or, if between
50 words, to the start of the previous word.
51 Word boundaries are the same as those used by <kbd>M-b</kbd>.
53 <br><dt><kbd>C-w</kbd>
54 <dd>Kill from the cursor to the previous whitespace. This is different than
55 <kbd>M-&lt;DEL&gt;</kbd> because the word boundaries differ.
57 </dl>
59 <p>Here is how to <dfn>yank</dfn> the text back into the line. Yanking
60 means to copy the most-recently-killed text from the kill buffer.
62 <dl>
63 <dt><kbd>C-y</kbd>
64 <dd>Yank the most recently killed text back into the buffer at the cursor.
66 <br><dt><kbd>M-y</kbd>
67 <dd>Rotate the kill-ring, and yank the new top. You can only do this if
68 the prior command is <kbd>C-y</kbd> or <kbd>M-y</kbd>.
69 </dl>
71 </body></html>