Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Readline-vi-Mode.html
blob389fcfe903d04cf012e3c3780b8fd5bad52a4350
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%20vi%20Mode">Readline vi Mode</a>,
13 Previous:<a rel="previous" accesskey="p" href="Bindable-Readline-Commands.html#Bindable%20Readline%20Commands">Bindable Readline Commands</a>,
14 Up:<a rel="up" accesskey="u" href="Command-Line-Editing.html#Command%20Line%20Editing">Command Line Editing</a>
15 <hr><br>
16 </div>
18 <h3 class="section">Readline vi Mode</h3>
20 <p>While the Readline library does not have a full set of <code>vi</code>
21 editing functions, it does contain enough to allow simple editing
22 of the line. The Readline <code>vi</code> mode behaves as specified in
23 the <small>POSIX</small> 1003.2 standard.
25 <p>In order to switch interactively between <code>emacs</code> and <code>vi</code>
26 editing modes, use the command <kbd>M-C-j</kbd> (bound to emacs-editing-mode
27 when in <code>vi</code> mode and to vi-editing-mode in <code>emacs</code> mode).
28 The Readline default is <code>emacs</code> mode.
30 <p>When you enter a line in <code>vi</code> mode, you are already placed in
31 `insertion' mode, as if you had typed an <code>i</code>. Pressing &lt;ESC&gt;
32 switches you into `command' mode, where you can edit the text of the
33 line with the standard <code>vi</code> movement keys, move to previous
34 history lines with <code>k</code> and subsequent lines with <code>j</code>, and
35 so forth.
37 </body></html>