Offset 1, 1001 lines modifiedOffset 1, 935 lines modified
1 .TH·EDITLINE·7·"May·7,·2016"·""1 .\"»    $NetBSD:·editline.7,v·1.5·2016/05/09·21:27:55·christos·Exp·$
 2 .\"»    $OpenBSD:·editline.7,v·1.1·2016/04/20·01:11:45·schwarze·Exp·$
 3 .\"
 4 .\"·Copyright·(c)·2016·Ingo·Schwarze·<schwarze@openbsd.org>
 5 .\"
 6 .\"·Permission·to·use,·copy,·modify,·and·distribute·this·software·for·any
 7 .\"·purpose·with·or·without·fee·is·hereby·granted,·provided·that·the·above
 8 .\"·copyright·notice·and·this·permission·notice·appear·in·all·copies.
 9 .\"
 10 .\"·THE·SOFTWARE·IS·PROVIDED·"AS·IS"·AND·THE·AUTHOR·DISCLAIMS·ALL·WARRANTIES
 11 .\"·WITH·REGARD·TO·THIS·SOFTWARE·INCLUDING·ALL·IMPLIED·WARRANTIES·OF
 12 .\"·MERCHANTABILITY·AND·FITNESS.·IN·NO·EVENT·SHALL·THE·AUTHOR·BE·LIABLE·FOR
 13 .\"·ANY·SPECIAL,·DIRECT,·INDIRECT,·OR·CONSEQUENTIAL·DAMAGES·OR·ANY·DAMAGES
 14 .\"·WHATSOEVER·RESULTING·FROM·LOSS·OF·USE,·DATA·OR·PROFITS,·WHETHER·IN·AN
 15 .\"·ACTION·OF·CONTRACT,·NEGLIGENCE·OR·OTHER·TORTIOUS·ACTION,·ARISING·OUT·OF
 16 .\"·OR·IN·CONNECTION·WITH·THE·USE·OR·PERFORMANCE·OF·THIS·SOFTWARE.
 17 .\"
 18 .Dd·May·7,·2016
 19 .Dt·EDITLINE·7
 20 .Os
2 .SH·NAME21 .Sh·NAME
3 \fBeditline\fP22 .Nm·editline
4 \-·line·editing·user·interface23 .Nd·line·editing·user·interface
5 .SH·DESCRIPTION24 .Sh·DESCRIPTION
6 When·a·program·using·the25 When·a·program·using·the
7 \fBeditline\fP(3)26 .Xr·editline·3
8 library·prompts·for·an·input·string·using·the·function27 library·prompts·for·an·input·string·using·the·function
9 \fBel_wgets\fP(3),28 .Xr·el_wgets·3·,
10 it·reads·characters·from·the·terminal.29 it·reads·characters·from·the·terminal.
11 Invalid·input·bytes·that·do·not·form·characters·are·silently30 Invalid·input·bytes·that·do·not·form·characters·are·silently
12 discarded.31 discarded.
13 For·each·character·read,·one·editor·command·is·executed.32 For·each·character·read,·one·editor·command·is·executed.
14 The·mapping·of·input·characters·to·editor·commands·depends·on·the33 The·mapping·of·input·characters·to·editor·commands·depends·on·the
15 editing·mode.34 editing·mode.
16 There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode,35 There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode,
17 and·emacs·mode.36 and·emacs·mode.
18 The·default·is·vi·insert·mode.37 The·default·is·vi·insert·mode.
19 The·program·can·switch·the·default·to·emacs·mode·by·using·the38 The·program·can·switch·the·default·to·emacs·mode·by·using·the
20 \fBel_set\fP(3)39 .Xr·el_set·3
21 or40 or
22 \fBel_parse\fP(3)41 .Xr·el_parse·3
23 functions,·and·the·user·can·switch·to·emacs·mode·either·in·the42 functions,·and·the·user·can·switch·to·emacs·mode·either·in·the
24 \fBeditrc\fP(5)43 .Xr·editrc·5
25 configuration·file·or·interactively·with·the44 configuration·file·or·interactively·with·the
26 \fBed-command\fP45 .Ic·ed-command
27 editor·command,·in·all·three·cases·executing·the46 editor·command,·in·all·three·cases·executing·the
28 \fBbind·Fl·e\fP47 .Ic·bind·Fl·e
29 builtin·command.48 builtin·command.
 49 .Pp
30 If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an50 If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an
31 error,·the·library·signals·end·of·file·to·the·program·and·does·not51 error,·the·library·signals·end·of·file·to·the·program·and·does·not
32 return·a·string.52 return·a·string.
33 .SS·Input·character·bindings53 .Ss·Input·character·bindings
34 All·default·bindings·described·below·can·be·overridden·by·individual54 All·default·bindings·described·below·can·be·overridden·by·individual
35 programs·and·can·be·changed·with·the55 programs·and·can·be·changed·with·the
36 \fBeditrc\fP(5) 
37 \fBbind\fP56 .Xr·editrc·5
 57 .Ic·bind
38 builtin·command.58 builtin·command.
 59 .Pp
39 In·the·following·tables,60 In·the·following·tables,
40 `Ctrl-'61 .Sq·Ctrl-
41 indicates·a·character·with·the·bit·0x40·flipped,·and62 indicates·a·character·with·the·bit·0x40·flipped,·and
42 `Meta-'63 .Sq·Meta-
43 indicates·a·character·with·the·bit·0x80·set.64 indicates·a·character·with·the·bit·0x80·set.
44 In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered65 In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered
45 printable·by·the·current66 printable·by·the·current
46 \fBlocale\fP(1)67 .Xr·locale·1
47 are·bound·to68 are·bound·to
48 \fBed-insert\fP69 .Ic·ed-insert
49 instead·of·to·the·editor·command·listed·below.70 instead·of·to·the·editor·command·listed·below.
50 Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not71 Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not
51 directly·accessible·because·their·code·points·are·occupied·by72 directly·accessible·because·their·code·points·are·occupied·by
52 printable·Unicode·characters,·and·Meta-characters·are·usually·input73 printable·Unicode·characters,·and·Meta-characters·are·usually·input
53 using·the74 using·the
54 \fBem-meta-next\fP75 .Ic·em-meta-next
55 editor·command.76 editor·command.
56 For·example,·to·enter77 For·example,·to·enter
57 `Meta-B'78 .Sq·Meta-B
58 in·order·to·call·the79 in·order·to·call·the
59 \fBed-prev-word\fP80 .Ic·ed-prev-word
60 editor·command·in·emacs·mode,·call81 editor·command·in·emacs·mode,·call
61 \fBem-meta-next\fP82 .Ic·em-meta-next
62 by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[),83 by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[),
63 then·press·and·release·the84 then·press·and·release·the
64 `B'85 .Sq·B
65 key.86 key.
66 If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example87 If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example
67 with88 with
68 `setxkbmap'·-option·altwin:left_meta_win·,89 .Ql·setxkbmap·-option·altwin:left_meta_win·,
69 the·Ctrl-Meta-characters·are·directly·accessible.90 the·Ctrl-Meta-characters·are·directly·accessible.
70 For·example,·to·enter91 For·example,·to·enter
71 `Ctrl-Meta-H'92 .Sq·Ctrl-Meta-H
72 in·order·to·call·the93 in·order·to·call·the
73 \fBed-delete-prev-word\fP94 .Ic·ed-delete-prev-word
74 editor·command·in·emacs·mode,·hold·down·the·keys95 editor·command·in·emacs·mode,·hold·down·the·keys
75 `Ctrl', 
76 `Meta',96 .Sq·Ctrl·,
 97 .Sq·Meta·,
77 and98 and
78 `H'99 .Sq·H
79 at·the·same·time.100 at·the·same·time.
80 Alternatively,·press·and·release·the·escape·key,·then·press·and101 Alternatively,·press·and·release·the·escape·key,·then·press·and
81 release102 release
82 `Ctrl-H'. 
 103 .Sq·Ctrl-H·.
 104 .Pp
83 In·vi·input·mode,·input·characters·are·bound·to·the·following·editor105 In·vi·input·mode,·input·characters·are·bound·to·the·following·editor
84 commands·by·default:106 commands·by·default:
 107 .Bl·-column·-offset·indent·"Ctrl-Z,·TSTP"·"ed-search-next-history"
85 It·Ctrl-D,·EOF·Ta·\fBvi-list-or-eof\fP108 .It·Ctrl-D,·EOF·Ta·Ic·vi-list-or-eof
86 It·Ctrl-H,·BS·Ta·\fBvi-delete-prev-char\fP109 .It·Ctrl-H,·BS·Ta·Ic·vi-delete-prev-char
87 It·Ctrl-J,·LF·Ta·\fBed-newline\fP110 .It·Ctrl-J,·LF·Ta·Ic·ed-newline
88 It·Ctrl-M,·CR·Ta·\fBed-newline\fP111 .It·Ctrl-M,·CR·Ta·Ic·ed-newline
89 It·Ctrl-Q·Ta·\fBed-tty-start-output\fP112 .It·Ctrl-Q·Ta·Ic·ed-tty-start-output
90 It·Ctrl-S·Ta·\fBed-tty-stop-output\fP113 .It·Ctrl-S·Ta·Ic·ed-tty-stop-output
91 It·Ctrl-U·Ta·\fBvi-kill-line-prev\fP114 .It·Ctrl-U·Ta·Ic·vi-kill-line-prev
92 It·Ctrl-V·Ta·\fBed-quoted-insert\fP115 .It·Ctrl-V·Ta·Ic·ed-quoted-insert
93 It·Ctrl-W·Ta·\fBed-delete-prev-word\fP116 .It·Ctrl-W·Ta·Ic·ed-delete-prev-word
94 It·Ctrl-[,·ESC·Ta·\fBvi-command-mode\fP117 .It·Ctrl-[,·ESC·Ta·Ic·vi-command-mode
95 It·Ctrl-\e,·QUIT·Ta·\fBed-tty-sigquit\fP118 .It·Ctrl-\e,·QUIT·Ta·Ic·ed-tty-sigquit
96 It·Ctrl-?,·DEL·Ta·\fBvi-delete-prev-char\fP119 .It·Ctrl-?,·DEL·Ta·Ic·vi-delete-prev-char
 120 .El
 121 .Pp
97 All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are122 All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are
98 bound·to123 bound·to
99 \fBed-insert\fP. 
 124 .Ic·ed-insert·.
 125 .Pp
100 In·vi·command·mode,·input·characters·are·bound·to·the·following126 In·vi·command·mode,·input·characters·are·bound·to·the·following
101 editor·commands·by·default:127 editor·commands·by·default:
 128 .Bl·-column·-offset·indent·"Ctrl-Z,·TSTP"·"ed-search-next-history"
102 It·Ctrl-A·Ta·\fBed-move-to-beg\fP129 .It·Ctrl-A·Ta·Ic·ed-move-to-beg
103 It·Ctrl-C,·INT·Ta·\fBed-tty-sigint\fP130 .It·Ctrl-C,·INT·Ta·Ic·ed-tty-sigint
104 It·Ctrl-E·Ta·\fBed-move-to-end\fP131 .It·Ctrl-E·Ta·Ic·ed-move-to-end
105 It·Ctrl-H,·BS·Ta·\fBed-delete-prev-char\fP132 .It·Ctrl-H,·BS·Ta·Ic·ed-delete-prev-char
106 It·Ctrl-J,·LF·Ta·\fBed-newline\fP133 .It·Ctrl-J,·LF·Ta·Ic·ed-newline
107 It·Ctrl-K·Ta·\fBed-kill-line\fP134 .It·Ctrl-K·Ta·Ic·ed-kill-line
108 It·Ctrl-L,·FF·Ta·\fBed-clear-screen\fP135 .It·Ctrl-L,·FF·Ta·Ic·ed-clear-screen
109 It·Ctrl-M,·CR·Ta·\fBed-newline\fP136 .It·Ctrl-M,·CR·Ta·Ic·ed-newline
110 It·Ctrl-N·Ta·\fBed-next-history\fP137 .It·Ctrl-N·Ta·Ic·ed-next-history
111 It·Ctrl-O·Ta·\fBed-tty-flush-output\fP138 .It·Ctrl-O·Ta·Ic·ed-tty-flush-output
112 It·Ctrl-P·Ta·\fBed-prev-history\fP139 .It·Ctrl-P·Ta·Ic·ed-prev-history
113 It·Ctrl-Q·Ta·\fBed-tty-start-output\fP140 .It·Ctrl-Q·Ta·Ic·ed-tty-start-output
114 It·Ctrl-R·Ta·\fBed-redisplay\fP141 .It·Ctrl-R·Ta·Ic·ed-redisplay
115 It·Ctrl-S·Ta·\fBed-tty-stop-output\fP142 .It·Ctrl-S·Ta·Ic·ed-tty-stop-output
116 It·Ctrl-U·Ta·\fBvi-kill-line-prev\fP143 .It·Ctrl-U·Ta·Ic·vi-kill-line-prev
117 It·Ctrl-W·Ta·\fBed-delete-prev-word\fP144 .It·Ctrl-W·Ta·Ic·ed-delete-prev-word
118 It·Ctrl-[,·ESC·Ta·\fBem-meta-next\fP145 .It·Ctrl-[,·ESC·Ta·Ic·em-meta-next
119 It·Ctrl-\e,·QUIT·Ta·\fBed-tty-sigquit\fP146 .It·Ctrl-\e,·QUIT·Ta·Ic·ed-tty-sigquit
120 It·Space·Ta·\fBed-next-char\fP147 .It·Space·Ta·Ic·ed-next-char
121 It·#·Ta·\fBvi-comment-out\fP148 .It·#·Ta·Ic·vi-comment-out
122 It·$·Ta·\fBed-move-to-end\fP149 .It·$·Ta·Ic·ed-move-to-end
123 It·%·Ta·\fBvi-match\fP150 .It·%·Ta·Ic·vi-match
124 It·+·Ta·\fBed-next-history\fP151 .It·+·Ta·Ic·ed-next-history
125 It·\&,·Ta·\fBvi-repeat-prev-char\fP152 .It·\&,·Ta·Ic·vi-repeat-prev-char
126 It·-·Ta·\fBed-prev-history\fP153 .It·-·Ta·Ic·ed-prev-history
127 It·\&.·Ta·\fBvi-redo\fP154 .It·\&.·Ta·Ic·vi-redo
128 It·/·Ta·\fBvi-search-prev\fP155 .It·/·Ta·Ic·vi-search-prev
129 It·0·Ta·\fBvi-zero\fP156 .It·0·Ta·Ic·vi-zero
130 It·1·to·9·Ta·\fBed-argument-digit\fP157 .It·1·to·9·Ta·Ic·ed-argument-digit
131 It·\&:·Ta·\fBed-command\fP158 .It·\&:·Ta·Ic·ed-command
132 It·\&;·Ta·\fBvi-repeat-next-char\fP159 .It·\&;·Ta·Ic·vi-repeat-next-char
133 It·\&?·Ta·\fBvi-search-next\fP160 .It·\&?·Ta·Ic·vi-search-next
134 It·@·Ta·\fBvi-alias\fP161 .It·@·Ta·Ic·vi-alias
135 It·A·Ta·\fBvi-add-at-eol\fP162 .It·A·Ta·Ic·vi-add-at-eol
136 It·B·Ta·\fBvi-prev-big-word\fP163 .It·B·Ta·Ic·vi-prev-big-word
137 It·C·Ta·\fBvi-change-to-eol\fP164 .It·C·Ta·Ic·vi-change-to-eol
138 It·D·Ta·\fBed-kill-line\fP165 .It·D·Ta·Ic·ed-kill-line
139 It·E·Ta·\fBvi-end-big-word\fP166 .It·E·Ta·Ic·vi-end-big-word
140 It·F·Ta·\fBvi-prev-char\fP167 .It·F·Ta·Ic·vi-prev-char
141 It·G·Ta·\fBvi-to-history-line\fP168 .It·G·Ta·Ic·vi-to-history-line
142 It·I·Ta·\fBvi-insert-at-bol\fP169 .It·I·Ta·Ic·vi-insert-at-bol
143 It·J·Ta·\fBed-search-next-history\fP170 .It·J·Ta·Ic·ed-search-next-history
144 It·K·Ta·\fBed-search-prev-history\fP171 .It·K·Ta·Ic·ed-search-prev-history
145 It·N·Ta·\fBvi-repeat-search-prev\fP172 .It·N·Ta·Ic·vi-repeat-search-prev
146 It·O·Ta·\fBed-sequence-lead-in\fP173 .It·O·Ta·Ic·ed-sequence-lead-in
147 It·P·Ta·\fBvi-paste-prev\fP174 .It·P·Ta·Ic·vi-paste-prev
148 It·R·Ta·\fBvi-replace-mode\fP175 .It·R·Ta·Ic·vi-replace-mode
149 It·S·Ta·\fBvi-substitute-line\fP176 .It·S·Ta·Ic·vi-substitute-line
150 It·T·Ta·\fBvi-to-prev-char\fP177 .It·T·Ta·Ic·vi-to-prev-char
151 It·U·Ta·\fBvi-undo-line\fP178 .It·U·Ta·Ic·vi-undo-line
152 It·W·Ta·\fBvi-next-big-word\fP179 .It·W·Ta·Ic·vi-next-big-word
153 It·X·Ta·\fBed-delete-prev-char\fP180 .It·X·Ta·Ic·ed-delete-prev-char
154 It·Y·Ta·\fBvi-yank-end\fP181 .It·Y·Ta·Ic·vi-yank-end
155 It·\&[·Ta·\fBed-sequence-lead-in\fP182 .It·\&[·Ta·Ic·ed-sequence-lead-in
156 It·^·Ta·\fBed-move-to-beg\fP183 .It·^·Ta·Ic·ed-move-to-beg
157 It·_·Ta·\fBvi-history-word\fP184 .It·_·Ta·Ic·vi-history-word
158 It·a·Ta·\fBvi-add\fP185 .It·a·Ta·Ic·vi-add
159 It·b·Ta·\fBvi-prev-word\fP186 .It·b·Ta·Ic·vi-prev-word
160 It·c·Ta·\fBvi-change-meta\fP187 .It·c·Ta·Ic·vi-change-meta
161 It·d·Ta·\fBvi-delete-meta\fP188 .It·d·Ta·Ic·vi-delete-meta
162 It·e·Ta·\fBvi-end-word\fP189 .It·e·Ta·Ic·vi-end-word
163 It·f·Ta·\fBvi-next-char\fP190 .It·f·Ta·Ic·vi-next-char
164 It·h·Ta·\fBed-prev-char\fP191 .It·h·Ta·Ic·ed-prev-char
165 It·i·Ta·\fBvi-insert\fP192 .It·i·Ta·Ic·vi-insert
166 It·j·Ta·\fBed-next-history\fP193 .It·j·Ta·Ic·ed-next-history
167 It·k·Ta·\fBed-prev-history\fP194 .It·k·Ta·Ic·ed-prev-history
168 It·l·Ta·\fBed-next-char\fP195 .It·l·Ta·Ic·ed-next-char
169 It·n·Ta·\fBvi-repeat-search-next\fP196 .It·n·Ta·Ic·vi-repeat-search-next
170 It·p·Ta·\fBvi-paste-next\fP197 .It·p·Ta·Ic·vi-paste-next
171 It·r·Ta·\fBvi-replace-char\fP198 .It·r·Ta·Ic·vi-replace-char
172 It·s·Ta·\fBvi-substitute-char\fP199 .It·s·Ta·Ic·vi-substitute-char
173 It·t·Ta·\fBvi-to-next-char\fP200 .It·t·Ta·Ic·vi-to-next-char
174 It·u·Ta·\fBvi-undo\fP201 .It·u·Ta·Ic·vi-undo
175 It·v·Ta·\fBvi-histedit\fP202 .It·v·Ta·Ic·vi-histedit
176 It·w·Ta·\fBvi-next-word\fP203 .It·w·Ta·Ic·vi-next-word
177 It·x·Ta·\fBed-delete-next-char\fP204 .It·x·Ta·Ic·ed-delete-next-char
178 It·y·Ta·\fBvi-yank\fP205 .It·y·Ta·Ic·vi-yank
179 It·\&|·Ta·\fBvi-to-column\fP206 .It·\&|·Ta·Ic·vi-to-column
180 It·~·Ta·\fBvi-change-case\fP207 .It·~·Ta·Ic·vi-change-case
181 It·Ctrl-?,·DEL·Ta·\fBed-delete-prev-char\fP208 .It·Ctrl-?,·DEL·Ta·Ic·ed-delete-prev-char
182 It·Meta-O·Ta·\fBed-sequence-lead-in\fP209 .It·Meta-O·Ta·Ic·ed-sequence-lead-in
183 It·Meta-[·Ta·\fBed-sequence-lead-in\fP210 .It·Meta-[·Ta·Ic·ed-sequence-lead-in
 211 .El
 212 .Pp
184 In·emacs·mode,·input·characters·are·bound·to·the·following·editor213 In·emacs·mode,·input·characters·are·bound·to·the·following·editor
185 commands·by·default:214 commands·by·default:
 215 .Bl·-column·-offset·indent·"Ctrl-Z,·TSTP"·"ed-search-next-history"
186 It·0·to·9·Ta·\fBed-digit\fP216 .It·0·to·9·Ta·Ic·ed-digit
187 It·Ctrl-@,·NUL·Ta·\fBem-set-mark\fP217 .It·Ctrl-@,·NUL·Ta·Ic·em-set-mark
188 It·Ctrl-A·Ta·\fBed-move-to-beg\fP218 .It·Ctrl-A·Ta·Ic·ed-move-to-beg
189 It·Ctrl-B·Ta·\fBed-prev-char\fP219 .It·Ctrl-B·Ta·Ic·ed-prev-char
190 It·Ctrl-C,·INT·Ta·\fBed-tty-sigint\fP220 .It·Ctrl-C,·INT·Ta·Ic·ed-tty-sigint
191 It·Ctrl-D,·EOF·Ta·\fBem-delete-or-list\fP221 .It·Ctrl-D,·EOF·Ta·Ic·em-delete-or-list
192 It·Ctrl-E·Ta·\fBed-move-to-end\fP222 .It·Ctrl-E·Ta·Ic·ed-move-to-end
193 It·Ctrl-F·Ta·\fBed-next-char\fP223 .It·Ctrl-F·Ta·Ic·ed-next-char
194 It·Ctrl-H,·BS·Ta·\fBem-delete-prev-char\fP224 .It·Ctrl-H,·BS·Ta·Ic·em-delete-prev-char
195 It·Ctrl-J,·LF·Ta·\fBed-newline\fP225 .It·Ctrl-J,·LF·Ta·Ic·ed-newline
196 It·Ctrl-K·Ta·\fBed-kill-line\fP226 .It·Ctrl-K·Ta·Ic·ed-kill-line
197 It·Ctrl-L,·FF·Ta·\fBed-clear-screen\fP227 .It·Ctrl-L,·FF·Ta·Ic·ed-clear-screen
198 It·Ctrl-M,·CR·Ta·\fBed-newline\fP228 .It·Ctrl-M,·CR·Ta·Ic·ed-newline
199 It·Ctrl-N·Ta·\fBed-next-history\fP229 .It·Ctrl-N·Ta·Ic·ed-next-history
200 It·Ctrl-O·Ta·\fBed-tty-flush-output\fP230 .It·Ctrl-O·Ta·Ic·ed-tty-flush-output
201 It·Ctrl-P·Ta·\fBed-prev-history\fP231 .It·Ctrl-P·Ta·Ic·ed-prev-history
202 It·Ctrl-Q·Ta·\fBed-tty-start-output\fP232 .It·Ctrl-Q·Ta·Ic·ed-tty-start-output
203 It·Ctrl-R·Ta·\fBed-redisplay\fP233 .It·Ctrl-R·Ta·Ic·ed-redisplay
204 It·Ctrl-S·Ta·\fBed-tty-stop-output\fP234 .It·Ctrl-S·Ta·Ic·ed-tty-stop-output
205 It·Ctrl-T·Ta·\fBed-transpose-chars\fP235 .It·Ctrl-T·Ta·Ic·ed-transpose-chars
206 It·Ctrl-U·Ta·\fBed-kill-line\fP236 .It·Ctrl-U·Ta·Ic·ed-kill-line
207 It·Ctrl-V·Ta·\fBed-quoted-insert\fP237 .It·Ctrl-V·Ta·Ic·ed-quoted-insert
208 It·Ctrl-W·Ta·\fBem-kill-region\fP238 .It·Ctrl-W·Ta·Ic·em-kill-region
209 It·Ctrl-X·Ta·\fBed-sequence-lead-in\fP239 .It·Ctrl-X·Ta·Ic·ed-sequence-lead-in
210 It·Ctrl-Y·Ta·\fBem-yank\fP240 .It·Ctrl-Y·Ta·Ic·em-yank
211 It·Ctrl-Z,·TSTP·Ta·\fBed-tty-sigtstp\fP241 .It·Ctrl-Z,·TSTP·Ta·Ic·ed-tty-sigtstp
212 It·Ctrl-[,·ESC·Ta·\fBem-meta-next\fP242 .It·Ctrl-[,·ESC·Ta·Ic·em-meta-next
213 It·Ctrl-\e,·QUIT·Ta·\fBed-tty-sigquit\fP243 .It·Ctrl-\e,·QUIT·Ta·Ic·ed-tty-sigquit
214 It·Ctrl-]·Ta·\fBed-tty-dsusp\fP244 .It·Ctrl-]·Ta·Ic·ed-tty-dsusp
215 It·Ctrl-?,·DEL·Ta·\fBem-delete-prev-char\fP245 .It·Ctrl-?,·DEL·Ta·Ic·em-delete-prev-char
216 It·Ctrl-Meta-H·Ta·\fBed-delete-prev-word\fP246 .It·Ctrl-Meta-H·Ta·Ic·ed-delete-prev-word
217 It·Ctrl-Meta-L·Ta·\fBed-clear-screen\fP247 .It·Ctrl-Meta-L·Ta·Ic·ed-clear-screen
218 It·Ctrl-Meta-_·Ta·\fBem-copy-prev-word\fP248 .It·Ctrl-Meta-_·Ta·Ic·em-copy-prev-word
219 It·Meta-0·to·9·Ta·\fBed-argument-digit\fP249 .It·Meta-0·to·9·Ta·Ic·ed-argument-digit
220 It·Meta-B·Ta·\fBed-prev-word\fP250 .It·Meta-B·Ta·Ic·ed-prev-word
221 It·Meta-C·Ta·\fBem-capitol-case\fP251 .It·Meta-C·Ta·Ic·em-capitol-case
222 It·Meta-D·Ta·\fBem-delete-next-word\fP252 .It·Meta-D·Ta·Ic·em-delete-next-word
223 It·Meta-F·Ta·\fBem-next-word\fP253 .It·Meta-F·Ta·Ic·em-next-word
224 It·Meta-L·Ta·\fBem-lower-case\fP254 .It·Meta-L·Ta·Ic·em-lower-case
225 It·Meta-N·Ta·\fBed-search-next-history\fP255 .It·Meta-N·Ta·Ic·ed-search-next-history
226 It·Meta-O·Ta·\fBed-sequence-lead-in\fP256 .It·Meta-O·Ta·Ic·ed-sequence-lead-in
227 It·Meta-P·Ta·\fBed-search-prev-history\fP257 .It·Meta-P·Ta·Ic·ed-search-prev-history
228 It·Meta-U·Ta·\fBem-upper-case\fP258 .It·Meta-U·Ta·Ic·em-upper-case
229 It·Meta-W·Ta·\fBem-copy-region\fP259 .It·Meta-W·Ta·Ic·em-copy-region
230 It·Meta-X·Ta·\fBed-command\fP260 .It·Meta-X·Ta·Ic·ed-command
231 It·Meta-[·Ta·\fBed-sequence-lead-in\fP261 .It·Meta-[·Ta·Ic·ed-sequence-lead-in
232 It·Meta-b·Ta·\fBed-prev-word\fP262 .It·Meta-b·Ta·Ic·ed-prev-word
233 It·Meta-c·Ta·\fBem-capitol-case\fP263 .It·Meta-c·Ta·Ic·em-capitol-case
234 It·Meta-d·Ta·\fBem-delete-next-word\fP264 .It·Meta-d·Ta·Ic·em-delete-next-word
235 It·Meta-f·Ta·\fBem-next-word\fP265 .It·Meta-f·Ta·Ic·em-next-word
236 It·Meta-l·Ta·\fBem-lower-case\fP266 .It·Meta-l·Ta·Ic·em-lower-case
237 It·Meta-n·Ta·\fBed-search-next-history\fP267 .It·Meta-n·Ta·Ic·ed-search-next-history
238 It·Meta-p·Ta·\fBed-search-prev-history\fP268 .It·Meta-p·Ta·Ic·ed-search-prev-history
239 It·Meta-u·Ta·\fBem-upper-case\fP269 .It·Meta-u·Ta·Ic·em-upper-case
240 It·Meta-w·Ta·\fBem-copy-region\fP270 .It·Meta-w·Ta·Ic·em-copy-region
241 It·Meta-x·Ta·\fBed-command\fP271 .It·Meta-x·Ta·Ic·ed-command
242 It·Ctrl-Meta-?·Ta·\fBed-delete-prev-word\fP272 .It·Ctrl-Meta-?·Ta·Ic·ed-delete-prev-word
 273 .El
 274 .Pp
243 The·remaining275 The·remaining
244 \fBascii\fP(7)276 .Xr·ascii·7
245 characters·in·the·range·0x20·to·0x7e·are·bound·to277 characters·in·the·range·0x20·to·0x7e·are·bound·to
246 \fBed-insert\fP. 
 278 .Ic·ed-insert·.
 279 .Pp
247 If·standard·output·is·not·connected·to·a·terminal·device280 If·standard·output·is·not·connected·to·a·terminal·device
248 or281 or
249 \fBel_set\fP(3)282 .Xr·el_set·3
250 was·used·to·set283 was·used·to·set
251 EL_EDITMODE284 .Dv·EL_EDITMODE
252 to·0,·all·input·character·bindings·are·disabled·and·all·characters285 to·0,·all·input·character·bindings·are·disabled·and·all·characters
253 typed·are·appended·to·the·edit·buffer.286 typed·are·appended·to·the·edit·buffer.
254 In·that·case,·the·edit·buffer·is·returned·to·the·program·after·a287 In·that·case,·the·edit·buffer·is·returned·to·the·program·after·a
255 newline·or·carriage·return·character·is·typed,·or·after·the·first288 newline·or·carriage·return·character·is·typed,·or·after·the·first
256 character·typed·if289 character·typed·if
257 \fBel_set\fP(3)290 .Xr·el_set·3
258 was·used·to·set291 was·used·to·set
259 EL_UNBUFFERED292 .Dv·EL_UNBUFFERED
260 to·non-zero.293 to·non-zero.
261 .SS·Editor·commands294 .Ss·Editor·commands
262 Most·editor·commands·accept·an·optional·argument.295 Most·editor·commands·accept·an·optional·argument.
263 The·argument·is·entered·by·prefixing·the·editor·command·with·one296 The·argument·is·entered·by·prefixing·the·editor·command·with·one
264 or·more·of·the·editor·commands297 or·more·of·the·editor·commands
265 \fBed-argument-digit\fP,298 .Ic·ed-argument-digit·,
266 \fBed-digit\fP,299 .Ic·ed-digit·,
267 \fBem-universal-argument\fP,300 .Ic·em-universal-argument·,
268 or301 or
269 \fBvi-zero\fP.302 .Ic·vi-zero·.
270 When·an·argument·is·not·provided,·it·defaults·to·1.303 When·an·argument·is·not·provided,·it·defaults·to·1.
271 For·most·editor·commands,·the·effect·of·an·argument·is·to·repeatedly304 For·most·editor·commands,·the·effect·of·an·argument·is·to·repeatedly
272 execute·the·command·that·number·of·times.305 execute·the·command·that·number·of·times.
 306 .Pp
273 When·talking·about·a·character·string·from·a·left·character·to·a307 When·talking·about·a·character·string·from·a·left·character·to·a
274 right·character,·the·left·character·is·included·in·the·string,·while308 right·character,·the·left·character·is·included·in·the·string,·while
275 the·right·character·is·not·included.309 the·right·character·is·not·included.
 310 .Pp
276 If·an·editor·command·causes·an·error,·the·input·character·is·discarded,311 If·an·editor·command·causes·an·error,·the·input·character·is·discarded,
277 no·action·occurs,·and·the·terminal·bell·is·rung.312 no·action·occurs,·and·the·terminal·bell·is·rung.
278 In·case·of·a·non-fatal·error,·the·terminal·bell·is·also·rung,313 In·case·of·a·non-fatal·error,·the·terminal·bell·is·also·rung,
279 but·the·editor·command·takes·effect·anyway.314 but·the·editor·command·takes·effect·anyway.
 315 .Pp
280 In·the·following·list,·the·default·key·bindings·are·listed·after316 In·the·following·list,·the·default·key·bindings·are·listed·after
281 each·editor·command.317 each·editor·command.
282 .TP318 .Bl·-tag·-width·4n
283 \fBed-argument-digit·Pq·vi·command:·1·to·9;·emacs:·Meta-0·to·Meta-9\fP319 .It·Ic·ed-argument-digit·Pq·vi·command:·1·to·9;·emacs:·Meta-0·to·Meta-9
284 If·in·argument·input·mode,·append·the·input·digit·to·the·argument320 If·in·argument·input·mode,·append·the·input·digit·to·the·argument
285 being·read.321 being·read.
286 Otherwise,·switch·to·argument·input·mode·and·use·the·input·digit322 Otherwise,·switch·to·argument·input·mode·and·use·the·input·digit
287 as·the·most·significant·digit·of·the·argument.323 as·the·most·significant·digit·of·the·argument.
288 It·is·an·error·if·the·input·character·is·not·a·digit·or·if·the324 It·is·an·error·if·the·input·character·is·not·a·digit·or·if·the
289 existing·argument·is·already·greater·than·a·million.325 existing·argument·is·already·greater·than·a·million.
290 .TP 
291 \fBed-clear-screen·Pq·vi·command:·Ctrl-L;·emacs:·Ctrl-L,·Ctrl-Meta-L\fP326 .It·Ic·ed-clear-screen·Pq·vi·command:·Ctrl-L;·emacs:·Ctrl-L,·Ctrl-Meta-L
292 Clear·the·screen·and·display·the·edit·buffer·at·the·top.327 Clear·the·screen·and·display·the·edit·buffer·at·the·top.
293 Ignore·any·argument.328 Ignore·any·argument.
294 .TP 
295 \fBed-command·Pq·vi·command:·So·\&:·Sc·;·emacs:·Meta-X,·Meta-x\fP329 .It·Ic·ed-command·Pq·vi·command:·So·\&:·Sc·;·emacs:·Meta-X,·Meta-x
296 Read·a·line·from·the·terminal·bypassing·the·normal·line·editing330 Read·a·line·from·the·terminal·bypassing·the·normal·line·editing
297 functionality·and·execute·that·line·as·an331 functionality·and·execute·that·line·as·an
298 \fBeditrc\fP(5)332 .Xr·editrc·5
299 builtin·command.333 builtin·command.
300 If·in·vi·command·mode,·also·switch·back·to·vi·insert·mode.334 If·in·vi·command·mode,·also·switch·back·to·vi·insert·mode.
301 Ignore·any·argument.335 Ignore·any·argument.
302 .TP 
303 \fBed-delete-next-char·Pq·vi·command:·x\fP336 .It·Ic·ed-delete-next-char·Pq·vi·command:·x
304 Delete·the·character·at·the·cursor·position.337 Delete·the·character·at·the·cursor·position.
305 With·an·argument,·delete·that·number·of·characters.338 With·an·argument,·delete·that·number·of·characters.
306 In·emacs·mode,·it·is·an·error·if·the·cursor·is·at·the·end·of·the339 In·emacs·mode,·it·is·an·error·if·the·cursor·is·at·the·end·of·the
307 edit·buffer.340 edit·buffer.
308 In·vi·mode,·the·last·character·in·the·edit·buffer·is·deleted·in341 In·vi·mode,·the·last·character·in·the·edit·buffer·is·deleted·in
309 that·case,·and·it·is·an·error·if·the·buffer·is·empty.342 that·case,·and·it·is·an·error·if·the·buffer·is·empty.
310 .TP 
311 \fBed-delete-prev-char·Pq·vi·command:·X,·Ctrl-H,·BS,·Ctrl-?,·DEL\fP343 .It·Ic·ed-delete-prev-char·Pq·vi·command:·X,·Ctrl-H,·BS,·Ctrl-?,·DEL
312 Delete·the·character·to·the·left·of·the·cursor·position.344 Delete·the·character·to·the·left·of·the·cursor·position.
313 With·an·argument,·delete·that·number·of·characters.345 With·an·argument,·delete·that·number·of·characters.
314 It·is·an·error·if·the·cursor·is·at·the·beginning·of·the·edit·buffer.346 It·is·an·error·if·the·cursor·is·at·the·beginning·of·the·edit·buffer.
315 .TP 
316 \fBed-delete-prev-word·Pq·vi:·Ctrl-W;·emacs:·Ctrl-Meta-H,·Ctrl-Meta-?\fP347 .It·Ic·ed-delete-prev-word·Pq·vi:·Ctrl-W;·emacs:·Ctrl-Meta-H,·Ctrl-Meta-?
317 Move·to·the·left·to·the·closest·beginning·of·a·word,·delete·the348 Move·to·the·left·to·the·closest·beginning·of·a·word,·delete·the
318 string·from·that·position·to·the·cursor,·and·save·it·to·the·cut349 string·from·that·position·to·the·cursor,·and·save·it·to·the·cut
319 buffer.350 buffer.
320 With·an·argument,·delete·that·number·of·words.351 With·an·argument,·delete·that·number·of·words.
321 It·is·an·error·if·the·cursor·is·at·the·beginning·of·the·edit·buffer.352 It·is·an·error·if·the·cursor·is·at·the·beginning·of·the·edit·buffer.
322 .TP 
323 \fBed-digit·Pq·emacs:·0·to·9\fP353 .It·Ic·ed-digit·Pq·emacs:·0·to·9
324 If·in·argument·input·mode,·append·the·input·digit·to·the·argument354 If·in·argument·input·mode,·append·the·input·digit·to·the·argument
325 being·read.355 being·read.
326 Otherwise,·call356 Otherwise,·call
327 \fBed-insert\fP.357 .Ic·ed-insert·.
328 It·is·an·error·if·the·input·character·is·not·a·digit·or·if·the358 It·is·an·error·if·the·input·character·is·not·a·digit·or·if·the
329 existing·argument·is·already·greater·than·a·million.359 existing·argument·is·already·greater·than·a·million.
330 .TP 
331 \fBed-end-of-file·Pq·not·bound·by·default\fP360 .It·Ic·ed-end-of-file·Pq·not·bound·by·default
332 Discard·the·edit·buffer·and·indicate·end·of·file·to·the·program.361 Discard·the·edit·buffer·and·indicate·end·of·file·to·the·program.
333 Ignore·any·argument.362 Ignore·any·argument.
334 .TP 
335 \fBed-ignore·Pq·various\fP363 .It·Ic·ed-ignore·Pq·various
336 Discard·the·input·character·and·do·nothing.364 Discard·the·input·character·and·do·nothing.
337 .TP 
338 \fBed-insert·Pq·vi·input:·almost·all;·emacs:·printable·characters\fP365 .It·Ic·ed-insert·Pq·vi·input:·almost·all;·emacs:·printable·characters
339 In·insert·mode,·insert·the·input·character·left·of·the·cursor366 In·insert·mode,·insert·the·input·character·left·of·the·cursor
340 position.367 position.
341 In·replace·mode,·overwrite·the·character·at·the·cursor·and·move·the368 In·replace·mode,·overwrite·the·character·at·the·cursor·and·move·the
342 cursor·to·the·right·by·one·character·position.369 cursor·to·the·right·by·one·character·position.
343 Accept·an·argument·to·do·this·repeatedly.370 Accept·an·argument·to·do·this·repeatedly.
344 It·is·an·error·if·the·input·character·is·the·NUL·character·(Ctrl-@).371 It·is·an·error·if·the·input·character·is·the·NUL·character·(Ctrl-@).
345 Failure·to·enlarge·the·edit·buffer·also·results·in·an·error.372 Failure·to·enlarge·the·edit·buffer·also·results·in·an·error.
346 .TP 
347 \fBed-kill-line·Pq·vi·command:·D,·Ctrl-K;·emacs:·Ctrl-K,·Ctrl-U\fP373 .It·Ic·ed-kill-line·Pq·vi·command:·D,·Ctrl-K;·emacs:·Ctrl-K,·Ctrl-U
348 Delete·the·string·from·the·cursor·position·to·the·end·of·the·line374 Delete·the·string·from·the·cursor·position·to·the·end·of·the·line
349 and·save·it·to·the·cut·buffer.375 and·save·it·to·the·cut·buffer.
350 Ignore·any·argument.376 Ignore·any·argument.
351 .TP 
352 \fBed-move-to-beg·Pq·vi·command:·^,·Ctrl-A;·emacs:·Ctrl-A\fP377 .It·Ic·ed-move-to-beg·Pq·vi·command:·^,·Ctrl-A;·emacs:·Ctrl-A
353 In·vi·mode,·move·the·cursor·to·the·first·non-space·character·in·the378 In·vi·mode,·move·the·cursor·to·the·first·non-space·character·in·the
354 edit·buffer.379 edit·buffer.
355 In·emacs·mode,·move·the·cursor·to·the·beginning·of·the·edit·buffer.380 In·emacs·mode,·move·the·cursor·to·the·beginning·of·the·edit·buffer.
356 Ignore·any·argument.381 Ignore·any·argument.
357 Can·be·used·as·a·movement·command·after382 Can·be·used·as·a·movement·command·after
358 \fBvi_change_meta\fP, 
359 \fBvi_delete_meta\fP,383 .Ic·vi_change_meta·,
 384 .Ic·vi_delete_meta·,
360 or385 or
 386 .Ic·vi_yank·.
361 \fBvi_yank\fP. 
362 .TP 
363 \fBed-move-to-end·Pq·vi·command:·$,·Ctrl-E;·emacs:·Ctrl-E\fP387 .It·Ic·ed-move-to-end·Pq·vi·command:·$,·Ctrl-E;·emacs:·Ctrl-E
364 Move·the·cursor·to·the·end·of·the·edit·buffer.388 Move·the·cursor·to·the·end·of·the·edit·buffer.
365 Ignore·any·argument.389 Ignore·any·argument.
366 Can·be·used·as·a·movement·command·after390 Can·be·used·as·a·movement·command·after
367 \fBvi_change_meta\fP, 
368 \fBvi_delete_meta\fP,391 .Ic·vi_change_meta·,
 392 .Ic·vi_delete_meta·,
369 or393 or
 394 .Ic·vi_yank·.
370 \fBvi_yank\fP. 
371 .TP 
372 \fBed-newline·Pq·all·modes:·Ctrl-J,·LF,·Ctrl-M,·CR\fP395 .It·Ic·ed-newline·Pq·all·modes:·Ctrl-J,·LF,·Ctrl-M,·CR
373 Append·a·newline·character·to·the·edit·buffer·and·return·the·edit396 Append·a·newline·character·to·the·edit·buffer·and·return·the·edit
374 buffer·to·the·program.397 buffer·to·the·program.
375 Ignore·any·argument.398 Ignore·any·argument.
376 .TP 
377 \fBed-next-char·Pq·vi·command:·Space,·l;·emacs:·Ctrl-F\fP399 .It·Ic·ed-next-char·Pq·vi·command:·Space,·l;·emacs:·Ctrl-F
378 Move·the·cursor·one·character·position·to·the·right.400 Move·the·cursor·one·character·position·to·the·right.
379 With·an·argument,·move·by·that·number·of·characters.401 With·an·argument,·move·by·that·number·of·characters.
380 Can·be·used·as·a·movement·command·after402 Can·be·used·as·a·movement·command·after
381 \fBvi_change_meta\fP, 
382 \fBvi_delete_meta\fP,403 .Ic·vi_change_meta·,
 404 .Ic·vi_delete_meta·,
383 or405 or
384 \fBvi_yank\fP.406 .Ic·vi_yank·.
385 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit407 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit
386 buffer.408 buffer.
387 .TP 
388 \fBed-next-history·Pq·vi·command:·j,·+,·Ctrl-N;·emacs:·Ctrl-N\fP409 .It·Ic·ed-next-history·Pq·vi·command:·j,·+,·Ctrl-N;·emacs:·Ctrl-N
389 Replace·the·edit·buffer·with·the·next·history·line.410 Replace·the·edit·buffer·with·the·next·history·line.
390 That·line·is·older·than·the·current·line.411 That·line·is·older·than·the·current·line.
391 With·an·argument,·go·forward·by·that·number·of·history·lines.412 With·an·argument,·go·forward·by·that·number·of·history·lines.
392 It·is·a·non-fatal·error·to·advance·by·more·lines·than·are·available.413 It·is·a·non-fatal·error·to·advance·by·more·lines·than·are·available.
393 .TP 
394 \fBed-next-line·Pq·not·bound·by·default\fP414 .It·Ic·ed-next-line·Pq·not·bound·by·default
395 Move·the·cursor·down·one·line.415 Move·the·cursor·down·one·line.
396 With·an·argument,·move·down·by·that·number·of·lines.416 With·an·argument,·move·down·by·that·number·of·lines.
397 It·is·an·error·if·the·edit·buffer·does·not·contain·enough·newline417 It·is·an·error·if·the·edit·buffer·does·not·contain·enough·newline
398 characters·to·the·right·of·the·cursor·position.418 characters·to·the·right·of·the·cursor·position.
399 .TP 
400 \fBed-prev-char·Pq·vi·command:·h;·emacs:·Ctrl-B\fP419 .It·Ic·ed-prev-char·Pq·vi·command:·h;·emacs:·Ctrl-B
401 Move·the·cursor·one·character·position·to·the·left.420 Move·the·cursor·one·character·position·to·the·left.
402 With·an·argument,·move·by·that·number·of·characters.421 With·an·argument,·move·by·that·number·of·characters.
403 Can·be·used·as·a·movement·command·after422 Can·be·used·as·a·movement·command·after
404 \fBvi_change_meta\fP, 
405 \fBvi_delete_meta\fP,423 .Ic·vi_change_meta·,
 424 .Ic·vi_delete_meta·,
406 or425 or
407 \fBvi_yank\fP.426 .Ic·vi_yank·.
408 It·is·an·error·if·the·cursor·is·already·at·the·beginning·of·the427 It·is·an·error·if·the·cursor·is·already·at·the·beginning·of·the
409 edit·buffer.428 edit·buffer.
410 .TP 
411 \fBed-prev-history·Pq·vi·command:·k,·-,·Ctrl-P;·emacs:·Ctrl-P\fP429 .It·Ic·ed-prev-history·Pq·vi·command:·k,·-,·Ctrl-P;·emacs:·Ctrl-P
412 Replace·the·edit·buffer·with·the·previous·history·line.430 Replace·the·edit·buffer·with·the·previous·history·line.
413 That·line·is·newer·than·the·current·line.431 That·line·is·newer·than·the·current·line.
414 With·an·argument,·go·back·by·that·number·of·lines.432 With·an·argument,·go·back·by·that·number·of·lines.
415 It·is·a·non-fatal·error·to·back·up·by·more·lines·than·are·available.433 It·is·a·non-fatal·error·to·back·up·by·more·lines·than·are·available.
416 .TP 
417 \fBed-prev-line·Pq·not·bound·by·default\fP434 .It·Ic·ed-prev-line·Pq·not·bound·by·default
418 Move·the·cursor·up·one·line.435 Move·the·cursor·up·one·line.
419 With·an·argument,·move·up·by·that·number·of·lines.436 With·an·argument,·move·up·by·that·number·of·lines.
420 It·is·an·error·if·the·edit·buffer·does·not·contain·enough·newline437 It·is·an·error·if·the·edit·buffer·does·not·contain·enough·newline
421 characters·to·the·left·of·the·cursor·position.438 characters·to·the·left·of·the·cursor·position.
422 .TP 
423 \fBed-prev-word·Pq·emacs:·Meta-B,·Meta-b\fP439 .It·Ic·ed-prev-word·Pq·emacs:·Meta-B,·Meta-b
424 Move·the·cursor·to·the·left·to·the·closest·beginning·of·a·word.440 Move·the·cursor·to·the·left·to·the·closest·beginning·of·a·word.
425 With·an·argument,·repeat·that·number·of·times.441 With·an·argument,·repeat·that·number·of·times.
426 Can·be·used·as·a·movement·command·after442 Can·be·used·as·a·movement·command·after
427 \fBvi_change_meta\fP, 
428 \fBvi_delete_meta\fP,443 .Ic·vi_change_meta·,
 444 .Ic·vi_delete_meta·,
429 or445 or
430 \fBvi_yank\fP.446 .Ic·vi_yank·.
431 It·is·an·error·if·the·cursor·is·already·at·the·beginning·of·the447 It·is·an·error·if·the·cursor·is·already·at·the·beginning·of·the
432 edit·buffer.448 edit·buffer.
433 .TP 
434 \fBed-quoted-insert·Pq·vi·insert,·emacs:·Ctrl-V\fP449 .It·Ic·ed-quoted-insert·Pq·vi·insert,·emacs:·Ctrl-V
435 Read·one·character·from·the·terminal·bypassing·the·normal·line450 Read·one·character·from·the·terminal·bypassing·the·normal·line
436 editing·functionality·and·call451 editing·functionality·and·call
437 \fBed-insert\fP452 .Ic·ed-insert
438 on·it.453 on·it.
439 If·trying·to·read·the·character·returns·end·of·file·or·an·error,454 If·trying·to·read·the·character·returns·end·of·file·or·an·error,
440 call455 call
441 \fBed-end-of-file\fP456 .Ic·ed-end-of-file
442 instead.457 instead.
443 .TP 
444 \fBed-redisplay·Pq·vi·command,·emacs:·Ctrl-R\fP458 .It·Ic·ed-redisplay·Pq·vi·command,·emacs:·Ctrl-R
445 Redisplay·everything.459 Redisplay·everything.
446 Ignore·any·argument.460 Ignore·any·argument.
447 .TP 
448 \fBed-search-next-history·Pq·vi·command:·J;·emacs:·Meta-N,·Meta-n\fP461 .It·Ic·ed-search-next-history·Pq·vi·command:·J;·emacs:·Meta-N,·Meta-n
449 Replace·the·edit·buffer·with·the·next·matching·history·entry.462 Replace·the·edit·buffer·with·the·next·matching·history·entry.
450 .TP 
451 \fBed-search-prev-history·Pq·vi·command:·K;·emacs:·Meta-P,·Meta-p\fP463 .It·Ic·ed-search-prev-history·Pq·vi·command:·K;·emacs:·Meta-P,·Meta-p
452 Replace·the·edit·buffer·with·the·previous·matching·history·entry.464 Replace·the·edit·buffer·with·the·previous·matching·history·entry.
453 .TP 
454 \fBed-sequence-lead-in·Pq·vi·cmd:·O,·\&[;·emacs:·Ctrl-X;\\fP465 .It·Ic·ed-sequence-lead-in·Pq·vi·cmd:·O,·\&[;·emacs:·Ctrl-X;\
455 ·both:·Meta-O,·Meta-[466 ·both:·Meta-O,·Meta-[
456 Call·a·macro.467 Call·a·macro.
457 See·the·section·about468 See·the·section·about
458 .B·Macros469 .Sx·Macros
459 below·for·details.470 below·for·details.
460 .TP 
461 \fBed-start-over·Pq·not·bound·by·default\fP471 .It·Ic·ed-start-over·Pq·not·bound·by·default
462 Discard·the·contents·of·the·edit·buffer·and·start·from·scratch.472 Discard·the·contents·of·the·edit·buffer·and·start·from·scratch.
463 Ignore·any·argument.473 Ignore·any·argument.
464 .TP 
465 \fBed-transpose-chars·Pq·emacs:·Ctrl-T\fP474 .It·Ic·ed-transpose-chars·Pq·emacs:·Ctrl-T
466 Exchange·the·character·at·the·cursor·position·with·the·one·to·the475 Exchange·the·character·at·the·cursor·position·with·the·one·to·the
467 left·of·it·and·move·the·cursor·to·the·character·to·the·right·of·the476 left·of·it·and·move·the·cursor·to·the·character·to·the·right·of·the
468 two·exchanged·characters.477 two·exchanged·characters.
469 Ignore·any·argument.478 Ignore·any·argument.
470 It·is·an·error·if·the·cursor·is·at·the·beginning·of·the·edit·buffer479 It·is·an·error·if·the·cursor·is·at·the·beginning·of·the·edit·buffer
471 or·if·the·edit·buffer·contains·less·than·two·characters.480 or·if·the·edit·buffer·contains·less·than·two·characters.
472 .TP 
473 \fBed-unassigned·Pq·all·characters·not·listed\fP481 .It·Ic·ed-unassigned·Pq·all·characters·not·listed
474 This·editor·command·always·results·in·an·error.482 This·editor·command·always·results·in·an·error.
475 .TP 
476 \fBem-capitol-case·Pq·emacs:·Meta-C,·Meta-c\fP483 .It·Ic·em-capitol-case·Pq·emacs:·Meta-C,·Meta-c
477 Capitalize·the·string·from·the·cursor·to·the·end·of·the·current484 Capitalize·the·string·from·the·cursor·to·the·end·of·the·current
478 word.485 word.
479 That·is,·if·it·contains·at·least·one·alphabetic·character,·convert486 That·is,·if·it·contains·at·least·one·alphabetic·character,·convert
480 the·first·alphabetic·character·to·upper·case,·and·convert·all487 the·first·alphabetic·character·to·upper·case,·and·convert·all
481 characters·to·the·right·of·it·to·lower·case.488 characters·to·the·right·of·it·to·lower·case.
482 In·any·case,·move·the·cursor·to·the·next·character·after·the·end489 In·any·case,·move·the·cursor·to·the·next·character·after·the·end
483 of·the·current·word.490 of·the·current·word.
484 .TP 
485 \fBem-copy-prev-word·Pq·emacs:·Ctrl-Meta-_\fP491 .It·Ic·em-copy-prev-word·Pq·emacs:·Ctrl-Meta-_
486 Copy·the·string·from·the·beginning·of·the·current·word·to·the·cursor492 Copy·the·string·from·the·beginning·of·the·current·word·to·the·cursor
487 and·insert·it·to·the·left·of·the·cursor.493 and·insert·it·to·the·left·of·the·cursor.
488 Move·the·cursor·to·the·character·after·the·inserted·string.494 Move·the·cursor·to·the·character·after·the·inserted·string.
489 It·is·an·error·if·the·cursor·is·at·the·beginning·of·the·edit·buffer.495 It·is·an·error·if·the·cursor·is·at·the·beginning·of·the·edit·buffer.
490 .TP 
491 \fBem-copy-region·Pq·emacs:·Meta-W,·Meta-w\fP496 .It·Ic·em-copy-region·Pq·emacs:·Meta-W,·Meta-w
492 Copy·the·string·from·the·cursor·to·the·mark·to·the·cut·buffer.497 Copy·the·string·from·the·cursor·to·the·mark·to·the·cut·buffer.
493 It·is·an·error·if·the·mark·is·not·set.498 It·is·an·error·if·the·mark·is·not·set.
494 .TP 
495 \fBem-delete-next-word·Pq·emacs:·Meta-D,·Meta-d\fP499 .It·Ic·em-delete-next-word·Pq·emacs:·Meta-D,·Meta-d
496 Delete·the·string·from·the·cursor·to·the·end·of·the·current·word500 Delete·the·string·from·the·cursor·to·the·end·of·the·current·word
497 and·save·it·to·the·cut·buffer.501 and·save·it·to·the·cut·buffer.
498 It·is·an·error·if·the·cursor·is·at·the·end·of·the·edit·buffer.502 It·is·an·error·if·the·cursor·is·at·the·end·of·the·edit·buffer.
499 .TP 
500 \fBem-delete-or-list·Pq·emacs:·Ctrl-D,·EOF\fP503 .It·Ic·em-delete-or-list·Pq·emacs:·Ctrl-D,·EOF
501 If·the·cursor·is·not·at·the·end·of·the·line,·delete·the·character504 If·the·cursor·is·not·at·the·end·of·the·line,·delete·the·character
502 at·the·cursor.505 at·the·cursor.
503 If·the·edit·buffer·is·empty,·indicate·end·of·file·to·the·program.506 If·the·edit·buffer·is·empty,·indicate·end·of·file·to·the·program.
504 It·is·an·error·if·the·cursor·is·at·the·end·of·the·edit·buffer·and507 It·is·an·error·if·the·cursor·is·at·the·end·of·the·edit·buffer·and
505 the·edit·buffer·is·not·empty.508 the·edit·buffer·is·not·empty.
506 .TP 
507 \fBem-delete-prev-char·Pq·emacs:·Ctrl-H,·BS,·Ctrl-?,·DEL\fP509 .It·Ic·em-delete-prev-char·Pq·emacs:·Ctrl-H,·BS,·Ctrl-?,·DEL
508 Delete·the·character·to·the·left·of·the·cursor.510 Delete·the·character·to·the·left·of·the·cursor.
509 It·is·an·error·if·the·cursor·is·at·the·beginning·of·the·edit·buffer.511 It·is·an·error·if·the·cursor·is·at·the·beginning·of·the·edit·buffer.
510 .TP 
511 \fBem-exchange-mark·Pq·not·bound·by·default\fP512 .It·Ic·em-exchange-mark·Pq·not·bound·by·default
512 Exchange·the·cursor·and·the·mark.513 Exchange·the·cursor·and·the·mark.
513 .TP 
514 \fBem-gosmacs-transpose·Pq·not·bound·by·default\fP514 .It·Ic·em-gosmacs-transpose·Pq·not·bound·by·default
515 Exchange·the·two·characters·to·the·left·of·the·cursor.515 Exchange·the·two·characters·to·the·left·of·the·cursor.
516 It·is·an·error·if·the·cursor·is·on·the·first·or·second·character516 It·is·an·error·if·the·cursor·is·on·the·first·or·second·character
517 of·the·edit·buffer.517 of·the·edit·buffer.
518 .TP 
519 \fBem-inc-search-next·Pq·not·bound·by·default\fP518 .It·Ic·em-inc-search-next·Pq·not·bound·by·default
520 Emacs·incremental·next·search.519 Emacs·incremental·next·search.
521 .TP 
522 \fBem-inc-search-prev·Pq·not·bound·by·default\fP520 .It·Ic·em-inc-search-prev·Pq·not·bound·by·default
523 Emacs·incremental·reverse·search.521 Emacs·incremental·reverse·search.
524 .TP 
525 \fBem-kill-line·Pq·not·bound·by·default\fP522 .It·Ic·em-kill-line·Pq·not·bound·by·default
526 Delete·the·entire·contents·of·the·edit·buffer·and·save·it·to·the523 Delete·the·entire·contents·of·the·edit·buffer·and·save·it·to·the
527 cut·buffer.524 cut·buffer.
528 .TP 
529 \fBem-kill-region·Pq·emacs:·Ctrl-W\fP525 .It·Ic·em-kill-region·Pq·emacs:·Ctrl-W
530 Delete·the·string·from·the·cursor·to·the·mark·and·save·it·to·the526 Delete·the·string·from·the·cursor·to·the·mark·and·save·it·to·the
531 cut·buffer.527 cut·buffer.
532 It·is·an·error·if·the·mark·is·not·set.528 It·is·an·error·if·the·mark·is·not·set.
533 .TP 
534 \fBem-lower-case·Pq·emacs:·Meta-L,·Meta-l\fP529 .It·Ic·em-lower-case·Pq·emacs:·Meta-L,·Meta-l
535 Convert·the·characters·from·the·cursor·to·the·end·of·the·current530 Convert·the·characters·from·the·cursor·to·the·end·of·the·current
536 word·to·lower·case.531 word·to·lower·case.
537 .TP 
538 \fBem-meta-next·Pq·vi·command,·emacs:·Ctrl-[,·ESC\fP532 .It·Ic·em-meta-next·Pq·vi·command,·emacs:·Ctrl-[,·ESC
539 Set·the·bit·0x80·on·the·next·character·typed.533 Set·the·bit·0x80·on·the·next·character·typed.
540 Unless·the·resulting·code·point·is·printable,·holding·down·the534 Unless·the·resulting·code·point·is·printable,·holding·down·the
541 `Meta-'535 .Sq·Meta-
542 key·while·typing·that·character·is·a·simpler·way·to·achieve·the536 key·while·typing·that·character·is·a·simpler·way·to·achieve·the
543 same·effect.537 same·effect.
544 .TP 
545 \fBem-next-word·Pq·Meta-F,·Meta-f\fP538 .It·Ic·em-next-word·Pq·Meta-F,·Meta-f
546 Move·the·cursor·to·the·end·of·the·current·word.539 Move·the·cursor·to·the·end·of·the·current·word.
547 Can·be·used·as·a·movement·command·after540 Can·be·used·as·a·movement·command·after
548 \fBvi_change_meta\fP, 
549 \fBvi_delete_meta\fP,541 .Ic·vi_change_meta·,
 542 .Ic·vi_delete_meta·,
550 or543 or
551 \fBvi_yank\fP.544 .Ic·vi_yank·.
552 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit545 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit
553 buffer.546 buffer.
554 .TP 
555 \fBem-set-mark·Pq·emacs:·Ctrl-Q,·NUL\fP547 .It·Ic·em-set-mark·Pq·emacs:·Ctrl-Q,·NUL
556 Set·the·mark·at·the·current·cursor·position.548 Set·the·mark·at·the·current·cursor·position.
557 .TP 
558 \fBem-toggle-overwrite·Pq·not·bound·by·default\fP549 .It·Ic·em-toggle-overwrite·Pq·not·bound·by·default
559 Switch·from·insert·to·overwrite·mode·or·vice·versa.550 Switch·from·insert·to·overwrite·mode·or·vice·versa.
560 .TP 
561 \fBem-universal-argument·Pq·not·bound·by·default\fP551 .It·Ic·em-universal-argument·Pq·not·bound·by·default
562 If·in·argument·input·mode,·multiply·the·argument·by·4.552 If·in·argument·input·mode,·multiply·the·argument·by·4.
563 Otherwise,·switch·to·argument·input·mode·and·set·the·argument·to·4.553 Otherwise,·switch·to·argument·input·mode·and·set·the·argument·to·4.
564 It·is·an·error·if·the·existing·argument·is·already·greater·than·a554 It·is·an·error·if·the·existing·argument·is·already·greater·than·a
565 million.555 million.
566 .TP 
567 \fBem-upper-case·Pq·emacs:·Meta-U,·Meta-u\fP556 .It·Ic·em-upper-case·Pq·emacs:·Meta-U,·Meta-u
568 Convert·the·characters·from·the·cursor·to·the·end·of·the·current557 Convert·the·characters·from·the·cursor·to·the·end·of·the·current
569 word·to·upper·case.558 word·to·upper·case.
570 .TP 
571 \fBem-yank·Pq·emacs:·Ctrl-Y\fP559 .It·Ic·em-yank·Pq·emacs:·Ctrl-Y
572 Paste·the·cut·buffer·to·the·left·of·the·cursor.560 Paste·the·cut·buffer·to·the·left·of·the·cursor.
573 .TP 
574 \fBvi-add·Pq·vi·command:·a\fP561 .It·Ic·vi-add·Pq·vi·command:·a
575 Switch·to·vi·insert·mode.562 Switch·to·vi·insert·mode.
576 Unless·the·cursor·is·already·at·the·end·of·the·edit·buffer,·move563 Unless·the·cursor·is·already·at·the·end·of·the·edit·buffer,·move
577 it·one·character·position·to·the·right.564 it·one·character·position·to·the·right.
578 .TP 
579 \fBvi-add-at-eol·Pq·vi·command:·A\fP565 .It·Ic·vi-add-at-eol·Pq·vi·command:·A
580 Switch·to·vi·insert·mode·and·move·the·cursor·to·the·end·of·the·edit566 Switch·to·vi·insert·mode·and·move·the·cursor·to·the·end·of·the·edit
581 buffer.567 buffer.
582 .TP 
583 \fBvi-alias·Pq·vi·command:·@\fP568 .It·Ic·vi-alias·Pq·vi·command:·@
584 If·an·alias·function·was·defined·by·calling·the569 If·an·alias·function·was·defined·by·calling·the
585 \fBel_set\fP(3)570 .Xr·el_set·3
586 or571 or
587 \fBel_wset\fP(3)572 .Xr·el_wset·3
588 function·with·the·argument573 function·with·the·argument
589 EL_ALIAS_TEXT·,574 .Dv·EL_ALIAS_TEXT·,
590 read·one·character·from·the·terminal·bypassing·the·normal·line575 read·one·character·from·the·terminal·bypassing·the·normal·line
591 editing·functionality,·call·the·alias·function·passing·the·argument·that·was·specified·with576 editing·functionality,·call·the·alias·function·passing·the·argument·that·was·specified·with
592 EL_ALIAS_TEXT577 .Dv·EL_ALIAS_TEXT
593 as·the·first·argument·and·the·character·read,·with·an·underscore578 as·the·first·argument·and·the·character·read,·with·an·underscore
594 prepended,·as·the·second·argument,·and·pass·the·string·returned579 prepended,·as·the·second·argument,·and·pass·the·string·returned
595 from·the·alias·function·to580 from·the·alias·function·to
596 \fBel_wpush\fP(3).581 .Xr·el_wpush·3·.
597 It·is·an·error·if·no·alias·function·is·defined·or·if·trying·to·read582 It·is·an·error·if·no·alias·function·is·defined·or·if·trying·to·read
598 the·character·results·in·end·of·file·or·an·error.583 the·character·results·in·end·of·file·or·an·error.
599 .TP 
600 \fBvi-change-case·Pq·vi·command:·~\fP584 .It·Ic·vi-change-case·Pq·vi·command:·~
601 Change·the·case·of·the·character·at·the·cursor·and·move·the·cursor585 Change·the·case·of·the·character·at·the·cursor·and·move·the·cursor
602 one·character·position·to·the·right.586 one·character·position·to·the·right.
603 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit587 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit
604 buffer.588 buffer.
605 .TP 
606 \fBvi-change-meta·Pq·vi·command:·c\fP589 .It·Ic·vi-change-meta·Pq·vi·command:·c
607 Delete·the·string·from·the·cursor·to·the·position·specified·by·the590 Delete·the·string·from·the·cursor·to·the·position·specified·by·the
608 following·movement·command·and·save·a·copy·of·it·to·the·cut·buffer.591 following·movement·command·and·save·a·copy·of·it·to·the·cut·buffer.
609 When·given·twice·in·a·row,·instead·delete·the·whole·contents·of·the592 When·given·twice·in·a·row,·instead·delete·the·whole·contents·of·the
610 edit·buffer·and·save·a·copy·of·it·to·the·cut·buffer.593 edit·buffer·and·save·a·copy·of·it·to·the·cut·buffer.
611 In·either·case,·switch·to·vi·insert·mode·after·that.594 In·either·case,·switch·to·vi·insert·mode·after·that.
612 .TP 
613 \fBvi-change-to-eol·Pq·vi·command:·C\fP595 .It·Ic·vi-change-to-eol·Pq·vi·command:·C
614 Delete·the·string·from·the·cursor·position·to·the·end·of·the·line596 Delete·the·string·from·the·cursor·position·to·the·end·of·the·line
615 and·save·it·to·the·cut·buffer,·then·switch·to·vi·insert·mode.597 and·save·it·to·the·cut·buffer,·then·switch·to·vi·insert·mode.
616 .TP 
617 \fBvi-command-mode·Pq·vi·insert:·Ctrl-[,·ESC\fP598 .It·Ic·vi-command-mode·Pq·vi·insert:·Ctrl-[,·ESC
618 Discard·pending·actions·and·arguments·and·switch·to·vi·command·mode.599 Discard·pending·actions·and·arguments·and·switch·to·vi·command·mode.
619 Unless·the·cursor·is·already·at·the·beginning·of·the·edit·buffer,600 Unless·the·cursor·is·already·at·the·beginning·of·the·edit·buffer,
620 move·it·to·the·left·by·one·character·position.601 move·it·to·the·left·by·one·character·position.
621 .TP 
622 \fBvi-comment-out·Pq·vi·command:·#\fP602 .It·Ic·vi-comment-out·Pq·vi·command:·#
623 Insert·a603 Insert·a
624 `#'604 .Sq·#
625 character·at·the·beginning·of·the·edit·buffer·and·return·the·edit605 character·at·the·beginning·of·the·edit·buffer·and·return·the·edit
626 buffer·to·the·program.606 buffer·to·the·program.
627 .TP 
628 \fBvi-delete-meta·Pq·vi·command:·d\fP607 .It·Ic·vi-delete-meta·Pq·vi·command:·d
629 Delete·the·string·from·the·cursor·to·the·position·specified·by·the608 Delete·the·string·from·the·cursor·to·the·position·specified·by·the
630 following·movement·command·and·save·a·copy·of·it·to·the·cut·buffer.609 following·movement·command·and·save·a·copy·of·it·to·the·cut·buffer.
631 When·given·twice·in·a·row,·instead·delete·the·whole·contents·of·the610 When·given·twice·in·a·row,·instead·delete·the·whole·contents·of·the
632 edit·buffer·and·save·a·copy·of·it·to·the·cut·buffer.611 edit·buffer·and·save·a·copy·of·it·to·the·cut·buffer.
633 .TP 
634 \fBvi-delete-prev-char·Pq·vi·insert:·Ctrl-H,·BS,·Ctrl-?,·DEL\fP612 .It·Ic·vi-delete-prev-char·Pq·vi·insert:·Ctrl-H,·BS,·Ctrl-?,·DEL
635 Delete·the·character·to·the·left·of·the·cursor.613 Delete·the·character·to·the·left·of·the·cursor.
636 It·is·an·error·if·the·cursor·is·already·at·the·beginning·of·the614 It·is·an·error·if·the·cursor·is·already·at·the·beginning·of·the
637 edit·buffer.615 edit·buffer.
638 .TP 
639 \fBvi-end-big-word·Pq·vi·command:·E\fP616 .It·Ic·vi-end-big-word·Pq·vi·command:·E
640 Move·the·cursor·to·the·end·of·the·current·space·delimited·word.617 Move·the·cursor·to·the·end·of·the·current·space·delimited·word.
641 Can·be·used·as·a·movement·command·after618 Can·be·used·as·a·movement·command·after
642 \fBvi_change_meta\fP, 
643 \fBvi_delete_meta\fP,619 .Ic·vi_change_meta·,
 620 .Ic·vi_delete_meta·,
644 or621 or
645 \fBvi_yank\fP.622 .Ic·vi_yank·.
646 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit623 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit
647 buffer.624 buffer.
648 .TP 
649 \fBvi-end-word·Pq·vi·command:·e\fP625 .It·Ic·vi-end-word·Pq·vi·command:·e
650 Move·the·cursor·to·the·end·of·the·current·word.626 Move·the·cursor·to·the·end·of·the·current·word.
651 Can·be·used·as·a·movement·command·after627 Can·be·used·as·a·movement·command·after
652 \fBvi_change_meta\fP, 
653 \fBvi_delete_meta\fP,628 .Ic·vi_change_meta·,
 629 .Ic·vi_delete_meta·,
654 or630 or
655 \fBvi_yank\fP.631 .Ic·vi_yank·.
656 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit632 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit
657 buffer.633 buffer.
658 .TP 
659 \fBvi-history-word·Pq·vi·command:·_\fP634 .It·Ic·vi-history-word·Pq·vi·command:·_
660 Insert·the·first·word·from·the·most·recent·history·entry·after·the635 Insert·the·first·word·from·the·most·recent·history·entry·after·the
661 cursor,·move·the·cursor·after·to·the·character·after·the·inserted636 cursor,·move·the·cursor·after·to·the·character·after·the·inserted
662 word,·and·switch·to·vi·insert·mode.637 word,·and·switch·to·vi·insert·mode.
663 It·is·an·error·if·there·is·no·history·entry·or·the·most·recent638 It·is·an·error·if·there·is·no·history·entry·or·the·most·recent
664 history·entry·is·empty.639 history·entry·is·empty.
665 .TP 
666 \fBvi-insert·Pq·vi·command:·i\fP640 .It·Ic·vi-insert·Pq·vi·command:·i
667 Enter·insert·mode.641 Enter·insert·mode.
668 .TP 
669 \fBvi-insert-at-bol·Pq·vi·command:·I\fP642 .It·Ic·vi-insert-at-bol·Pq·vi·command:·I
670 Move·the·cursor·to·the·beginning·of·the·edit·buffer·and·switch·to643 Move·the·cursor·to·the·beginning·of·the·edit·buffer·and·switch·to
671 vi·insert·mode.644 vi·insert·mode.
672 .TP 
673 \fBvi-kill-line-prev·Pq·vi:·Ctrl-U\fP645 .It·Ic·vi-kill-line-prev·Pq·vi:·Ctrl-U
674 Delete·the·string·from·the·beginning·of·the·edit·buffer·to·the646 Delete·the·string·from·the·beginning·of·the·edit·buffer·to·the
675 cursor·and·save·it·to·the·cut·buffer.647 cursor·and·save·it·to·the·cut·buffer.
676 .TP 
677 \fBvi-list-or-eof·Pq·vi·insert:·Ctrl-D,·EOF\fP648 .It·Ic·vi-list-or-eof·Pq·vi·insert:·Ctrl-D,·EOF
678 If·the·edit·buffer·is·empty,·indicate·end·of·file·to·the·program.649 If·the·edit·buffer·is·empty,·indicate·end·of·file·to·the·program.
679 It·is·an·error·if·the·edit·buffer·is·not·empty.650 It·is·an·error·if·the·edit·buffer·is·not·empty.
680 .TP 
681 \fBvi-match·Pq·vi·command:·%\fP651 .It·Ic·vi-match·Pq·vi·command:·%
682 Consider·opening·and·closing·parentheses,·braces,·and·brackets·as652 Consider·opening·and·closing·parentheses,·braces,·and·brackets·as
683 delimiters.653 delimiters.
684 If·the·cursor·is·not·at·a·delimiter,·move·it·to·the·right·until·it654 If·the·cursor·is·not·at·a·delimiter,·move·it·to·the·right·until·it
685 gets·to·one,·then·move·it·to·the·matching·delimiter.655 gets·to·one,·then·move·it·to·the·matching·delimiter.
686 Can·be·used·as·a·movement·command·after656 Can·be·used·as·a·movement·command·after
687 \fBvi_change_meta\fP, 
688 \fBvi_delete_meta\fP,657 .Ic·vi_change_meta·,
 658 .Ic·vi_delete_meta·,
689 or659 or
690 \fBvi_yank\fP.660 .Ic·vi_yank·.
691 It·is·an·error·if·there·is·no·delimiter·at·the·cursor·or·in·the661 It·is·an·error·if·there·is·no·delimiter·at·the·cursor·or·in·the
692 string·to·the·right·of·the·cursor,·or·if·the·first·such·delimiter662 string·to·the·right·of·the·cursor,·or·if·the·first·such·delimiter
693 has·no·matching·delimiter.663 has·no·matching·delimiter.
694 .TP 
695 \fBvi-next-big-word·Pq·vi·command:·W\fP664 .It·Ic·vi-next-big-word·Pq·vi·command:·W
696 Move·the·cursor·to·the·right·to·the·beginning·of·the·next·space665 Move·the·cursor·to·the·right·to·the·beginning·of·the·next·space
697 delimited·word.666 delimited·word.
698 Can·be·used·as·a·movement·command·after667 Can·be·used·as·a·movement·command·after
699 \fBvi_change_meta\fP, 
700 \fBvi_delete_meta\fP,668 .Ic·vi_change_meta·,
 669 .Ic·vi_delete_meta·,
701 or670 or
702 \fBvi_yank\fP.671 .Ic·vi_yank·.
703 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit672 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit
704 buffer·or·on·its·last·character.673 buffer·or·on·its·last·character.
705 .TP 
706 \fBvi-next-char·Pq·vi·command:·f\fP674 .It·Ic·vi-next-char·Pq·vi·command:·f
707 Read·one·character·from·the·terminal·bypassing·the·normal·line675 Read·one·character·from·the·terminal·bypassing·the·normal·line
708 editing·functionality·and·move·the·cursor·to·the·right·to·the·next676 editing·functionality·and·move·the·cursor·to·the·right·to·the·next
709 instance·of·that·character·in·the·edit·buffer.677 instance·of·that·character·in·the·edit·buffer.
710 Can·be·used·as·a·movement·command·after678 Can·be·used·as·a·movement·command·after
711 \fBvi_change_meta\fP, 
712 \fBvi_delete_meta\fP,679 .Ic·vi_change_meta·,
 680 .Ic·vi_delete_meta·,
713 or681 or
714 \fBvi_yank\fP.682 .Ic·vi_yank·.
715 If·trying·to·read·the·character·results·in·end·of·file·or·an·error,683 If·trying·to·read·the·character·results·in·end·of·file·or·an·error,
716 call684 call
717 \fBed-end-of-file\fP685 .Ic·ed-end-of-file
718 instead.686 instead.
719 It·is·an·error·if·the·character·is·not·found·searching·to·the·right687 It·is·an·error·if·the·character·is·not·found·searching·to·the·right
720 in·the·edit·buffer.688 in·the·edit·buffer.
721 .TP 
722 \fBvi-next-word·Pq·vi·command:·w\fP689 .It·Ic·vi-next-word·Pq·vi·command:·w
723 Move·the·cursor·to·the·right·to·the·beginning·of·the·next·word.690 Move·the·cursor·to·the·right·to·the·beginning·of·the·next·word.
724 Can·be·used·as·a·movement·command·after691 Can·be·used·as·a·movement·command·after
725 \fBvi_change_meta\fP, 
726 \fBvi_delete_meta\fP,692 .Ic·vi_change_meta·,
 693 .Ic·vi_delete_meta·,
727 or694 or
728 \fBvi_yank\fP.695 .Ic·vi_yank·.
729 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit696 It·is·an·error·if·the·cursor·is·already·at·the·end·of·the·edit
730 buffer·or·on·its·last·character.697 buffer·or·on·its·last·character.
731 .TP 
732 \fBvi-paste-next·Pq·vi·command:·p\fP698 .It·Ic·vi-paste-next·Pq·vi·command:·p
733 Insert·a·copy·of·the·cut·buffer·to·the·right·of·the·cursor.699 Insert·a·copy·of·the·cut·buffer·to·the·right·of·the·cursor.
734 It·is·an·error·if·the·cut·buffer·is·empty.700 It·is·an·error·if·the·cut·buffer·is·empty.
735 .TP 
736 \fBvi-paste-prev·Pq·vi·command:·P\fP701 .It·Ic·vi-paste-prev·Pq·vi·command:·P
737 Insert·a·copy·of·the·cut·buffer·to·the·left·of·the·cursor.702 Insert·a·copy·of·the·cut·buffer·to·the·left·of·the·cursor.
738 It·is·an·error·if·the·cut·buffer·is·empty.703 It·is·an·error·if·the·cut·buffer·is·empty.
739 .TP 
740 \fBvi-prev-big-word·Pq·vi·command:·B\fP704 .It·Ic·vi-prev-big-word·Pq·vi·command:·B
741 Move·the·cursor·to·the·left·to·the·next·beginning·of·a·space·delimited705 Move·the·cursor·to·the·left·to·the·next·beginning·of·a·space·delimited
742 word.706 word.
743 Can·be·used·as·a·movement·command·after707 Can·be·used·as·a·movement·command·after
744 \fBvi_change_meta\fP, 
745 \fBvi_delete_meta\fP,708 .Ic·vi_change_meta·,
 709 .Ic·vi_delete_meta·,
746 or710 or
747 \fBvi_yank\fP.711 .Ic·vi_yank·.
748 It·is·an·error·if·the·cursor·is·already·at·the·beginning·of·the712 It·is·an·error·if·the·cursor·is·already·at·the·beginning·of·the
749 edit·buffer.713 edit·buffer.
750 .TP 
751 \fBvi-prev-char·Pq·vi·command:·F\fP714 .It·Ic·vi-prev-char·Pq·vi·command:·F
752 Read·one·character·from·the·terminal·bypassing·the·normal·line715 Read·one·character·from·the·terminal·bypassing·the·normal·line
753 editing·functionality·and·move·the·cursor·to·the·left·to·the·next716 editing·functionality·and·move·the·cursor·to·the·left·to·the·next
754 instance·of·that·character·in·the·edit·buffer.717 instance·of·that·character·in·the·edit·buffer.
755 Can·be·used·as·a·movement·command·after718 Can·be·used·as·a·movement·command·after
756 \fBvi_change_meta\fP, 
757 \fBvi_delete_meta\fP,719 .Ic·vi_change_meta·,
 720 .Ic·vi_delete_meta·,
758 or721 or
759 \fBvi_yank\fP.722 .Ic·vi_yank·.
760 If·trying·to·read·the·character·results·in·end·of·file·or·an·error,723 If·trying·to·read·the·character·results·in·end·of·file·or·an·error,
761 call724 call
762 \fBed-end-of-file\fP725 .Ic·ed-end-of-file
763 instead.726 instead.
764 It·is·an·error·if·the·character·is·not·found·searching·to·the·left727 It·is·an·error·if·the·character·is·not·found·searching·to·the·left
765 in·the·edit·buffer.728 in·the·edit·buffer.
766 .TP 
767 \fBvi-prev-word·Pq·vi·command:·b\fP729 .It·Ic·vi-prev-word·Pq·vi·command:·b
768 Move·the·cursor·to·the·left·to·the·next·beginning·of·a·word.730 Move·the·cursor·to·the·left·to·the·next·beginning·of·a·word.
769 Can·be·used·as·a·movement·command·after731 Can·be·used·as·a·movement·command·after
770 \fBvi_change_meta\fP, 
771 \fBvi_delete_meta\fP,732 .Ic·vi_change_meta·,
 733 .Ic·vi_delete_meta·,
772 or734 or
773 \fBvi_yank\fP.735 .Ic·vi_yank·.
774 It·is·an·error·if·the·cursor·is·already·at·the·beginning·of·the736 It·is·an·error·if·the·cursor·is·already·at·the·beginning·of·the
775 edit·buffer.737 edit·buffer.
776 .TP 
777 \fBvi-redo·Pq·vi·command:·Sq·\&.\fP738 .It·Ic·vi-redo·Pq·vi·command:·Sq·\&.
778 Redo·the·last·non-motion·command.739 Redo·the·last·non-motion·command.
779 .TP 
780 \fBvi-repeat-next-char·Pq·vi·command:·Sq·\&;\fP740 .It·Ic·vi-repeat-next-char·Pq·vi·command:·Sq·\&;
781 Repeat·the·most·recent·character·search·in·the·same·search·direction.741 Repeat·the·most·recent·character·search·in·the·same·search·direction.
782 Can·be·used·as·a·movement·command·after742 Can·be·used·as·a·movement·command·after
783 \fBvi_change_meta\fP, 
784 \fBvi_delete_meta\fP,743 .Ic·vi_change_meta·,
 744 .Ic·vi_delete_meta·,
785 or745 or
 746 .Ic·vi_yank·.
786 \fBvi_yank\fP. 
787 .TP 
788 \fBvi-repeat-prev-char·Pq·vi·command:·Sq·\&,\fP747 .It·Ic·vi-repeat-prev-char·Pq·vi·command:·Sq·\&,
789 Repeat·the·most·recent·character·search·in·the·opposite·search748 Repeat·the·most·recent·character·search·in·the·opposite·search
790 direction.749 direction.
791 Can·be·used·as·a·movement·command·after750 Can·be·used·as·a·movement·command·after
792 \fBvi_change_meta\fP, 
793 \fBvi_delete_meta\fP,751 .Ic·vi_change_meta·,
 752 .Ic·vi_delete_meta·,
794 or753 or
 754 .Ic·vi_yank·.
795 \fBvi_yank\fP. 
796 .TP 
797 \fBvi-repeat-search-next·Pq·vi·command:·n\fP755 .It·Ic·vi-repeat-search-next·Pq·vi·command:·n
798 Repeat·the·most·recent·history·search·in·the·same·search·direction.756 Repeat·the·most·recent·history·search·in·the·same·search·direction.
799 .TP 
800 \fBvi-repeat-search-prev·Pq·vi·command:·N\fP757 .It·Ic·vi-repeat-search-prev·Pq·vi·command:·N
801 Repeat·the·most·recent·history·search·in·the·opposite·search758 Repeat·the·most·recent·history·search·in·the·opposite·search
802 direction.759 direction.
803 .TP 
804 \fBvi-replace-char·Pq·vi·command:·r\fP760 .It·Ic·vi-replace-char·Pq·vi·command:·r
805 Switch·to·vi·replace·mode,·and·automatically·switch·back·to·vi761 Switch·to·vi·replace·mode,·and·automatically·switch·back·to·vi
806 command·mode·after·the·next·character·typed.762 command·mode·after·the·next·character·typed.
807 See763 See
808 \fBed-insert\fP764 .Ic·ed-insert
809 for·a·description·of·replace·mode.765 for·a·description·of·replace·mode.
810 It·is·an·error·if·the·cursor·is·at·the·end·of·the·edit·buffer.766 It·is·an·error·if·the·cursor·is·at·the·end·of·the·edit·buffer.
811 .TP 
812 \fBvi-replace-mode·Pq·vi·command:·R\fP767 .It·Ic·vi-replace-mode·Pq·vi·command:·R
813 Switch·to·vi·replace·mode.768 Switch·to·vi·replace·mode.
814 This·is·a·variant·of·vi·insert·mode;·see769 This·is·a·variant·of·vi·insert·mode;·see
815 \fBed-insert\fP770 .Ic·ed-insert
816 for·the·difference.771 for·the·difference.
817 .TP 
818 \fBvi-search-next·Pq·vi·command:·\&?\fP772 .It·Ic·vi-search-next·Pq·vi·command:·\&?
819 Replace·the·edit·buffer·with·the·next·matching·history·entry.773 Replace·the·edit·buffer·with·the·next·matching·history·entry.
820 .TP 
821 \fBvi-search-prev·Pq·vi·command:·/\fP774 .It·Ic·vi-search-prev·Pq·vi·command:·/
822 Replace·the·edit·buffer·with·the·previous·matching·history·entry.775 Replace·the·edit·buffer·with·the·previous·matching·history·entry.
823 .TP 
824 \fBvi-substitute-char·Pq·vi·command:·s\fP776 .It·Ic·vi-substitute-char·Pq·vi·command:·s
825 Delete·the·character·at·the·cursor·and·switch·to·vi·insert·mode.777 Delete·the·character·at·the·cursor·and·switch·to·vi·insert·mode.
826 .TP 
827 \fBvi-substitute-line·Pq·vi·command:·S\fP778 .It·Ic·vi-substitute-line·Pq·vi·command:·S
828 Delete·the·entire·contents·of·the·edit·buffer,·save·a·copy·of·it779 Delete·the·entire·contents·of·the·edit·buffer,·save·a·copy·of·it
829 in·the·cut·buffer,·and·enter·vi·insert·mode.780 in·the·cut·buffer,·and·enter·vi·insert·mode.
830 .TP 
831 \fBvi-to-column·Pq·vi·command:·\&|\fP781 .It·Ic·vi-to-column·Pq·vi·command:·\&|
832 Move·the·cursor·to·the·column·specified·as·the·argument.782 Move·the·cursor·to·the·column·specified·as·the·argument.
833 Can·be·used·as·a·movement·command·after783 Can·be·used·as·a·movement·command·after
834 \fBvi_change_meta\fP, 
835 \fBvi_delete_meta\fP,784 .Ic·vi_change_meta·,
 785 .Ic·vi_delete_meta·,
836 or786 or
 787 .Ic·vi_yank·.
837 \fBvi_yank\fP. 
838 .TP 
839 \fBvi-to-history-line·Pq·vi·command:·G\fP788 .It·Ic·vi-to-history-line·Pq·vi·command:·G
840 Replace·the·edit·buffer·with·the·specified·history·entry.789 Replace·the·edit·buffer·with·the·specified·history·entry.
841 .TP 
842 \fBvi-to-next-char·Pq·vi·command:·t\fP790 .It·Ic·vi-to-next-char·Pq·vi·command:·t
843 Read·one·character·from·the·terminal·bypassing·the·normal·line791 Read·one·character·from·the·terminal·bypassing·the·normal·line
844 editing·functionality·and·move·the·cursor·to·the·right·to·the792 editing·functionality·and·move·the·cursor·to·the·right·to·the
845 character·before·the·next·instance·of·that·character·in·the·edit793 character·before·the·next·instance·of·that·character·in·the·edit
846 buffer.794 buffer.
847 Can·be·used·as·a·movement·command·after795 Can·be·used·as·a·movement·command·after
848 \fBvi_change_meta\fP, 
849 \fBvi_delete_meta\fP,796 .Ic·vi_change_meta·,
 797 .Ic·vi_delete_meta·,
850 or798 or
851 \fBvi_yank\fP.799 .Ic·vi_yank·.
852 If·trying·to·read·the·character·results·in·end·of·file·or·an·error,800 If·trying·to·read·the·character·results·in·end·of·file·or·an·error,
853 call801 call
854 \fBed-end-of-file\fP802 .Ic·ed-end-of-file
855 instead.803 instead.
856 It·is·an·error·if·the·character·is·not·found·searching·to·the·right804 It·is·an·error·if·the·character·is·not·found·searching·to·the·right
857 in·the·edit·buffer.805 in·the·edit·buffer.
858 .TP 
859 \fBvi-to-prev-char·Pq·vi·command:·T\fP806 .It·Ic·vi-to-prev-char·Pq·vi·command:·T
860 Read·one·character·from·the·terminal·bypassing·the·normal·line807 Read·one·character·from·the·terminal·bypassing·the·normal·line
861 editing·functionality·and·move·the·cursor·to·the·left·to·the·character808 editing·functionality·and·move·the·cursor·to·the·left·to·the·character
862 after·the·next·instance·of·that·character·in·the·edit·buffer.809 after·the·next·instance·of·that·character·in·the·edit·buffer.
863 Can·be·used·as·a·movement·command·after810 Can·be·used·as·a·movement·command·after
864 \fBvi_change_meta\fP, 
865 \fBvi_delete_meta\fP,811 .Ic·vi_change_meta·,
 812 .Ic·vi_delete_meta·,
866 or813 or
867 \fBvi_yank\fP.814 .Ic·vi_yank·.
868 If·trying·to·read·the·character·results·in·end·of·file·or·an·error,815 If·trying·to·read·the·character·results·in·end·of·file·or·an·error,
869 call816 call
870 \fBed-end-of-file\fP817 .Ic·ed-end-of-file
871 instead.818 instead.
872 It·is·an·error·if·the·character·is·not·found·searching·to·the·left819 It·is·an·error·if·the·character·is·not·found·searching·to·the·left
873 in·the·edit·buffer.820 in·the·edit·buffer.
874 .TP 
875 \fBvi-undo·Pq·vi·command:·u\fP821 .It·Ic·vi-undo·Pq·vi·command:·u
876 Undo·the·last·change.822 Undo·the·last·change.
877 .TP 
878 \fBvi-undo-line·Pq·vi·command:·U\fP823 .It·Ic·vi-undo-line·Pq·vi·command:·U
879 Undo·all·changes·to·the·edit·buffer.824 Undo·all·changes·to·the·edit·buffer.
880 .TP 
881 \fBvi-yank·Pq·vi·command:·y\fP825 .It·Ic·vi-yank·Pq·vi·command:·y
882 Copy·the·string·from·the·cursor·to·the·position·specified·by·the826 Copy·the·string·from·the·cursor·to·the·position·specified·by·the
883 following·movement·command·to·the·cut·buffer.827 following·movement·command·to·the·cut·buffer.
884 When·given·twice·in·a·row,·instead·copy·the·whole·contents·of·the828 When·given·twice·in·a·row,·instead·copy·the·whole·contents·of·the
885 edit·buffer·to·the·cut·buffer.829 edit·buffer·to·the·cut·buffer.
886 .TP 
887 \fBvi-yank-end·Pq·vi·command:·Y\fP830 .It·Ic·vi-yank-end·Pq·vi·command:·Y
888 Copy·the·string·from·the·cursor·to·the·end·of·the·edit·buffer·to831 Copy·the·string·from·the·cursor·to·the·end·of·the·edit·buffer·to
889 the·cut·buffer.832 the·cut·buffer.
890 .TP 
891 \fBvi-zero·Pq·vi·command:·0\fP833 .It·Ic·vi-zero·Pq·vi·command:·0
892 If·in·argument·input·mode,·multiply·the·argument·by·ten.834 If·in·argument·input·mode,·multiply·the·argument·by·ten.
893 Otherwise,·move·the·cursor·to·the·beginning·of·the·edit·buffer.835 Otherwise,·move·the·cursor·to·the·beginning·of·the·edit·buffer.
894 Can·be·used·as·a·movement·command·after836 Can·be·used·as·a·movement·command·after
895 \fBvi_change_meta\fP, 
896 \fBvi_delete_meta\fP,837 .Ic·vi_change_meta·,
 838 .Ic·vi_delete_meta·,
897 or839 or
898 \fBvi_yank\fP.840 .Ic·vi_yank·.
 841 .El
899 .SS·Macros842 .Ss·Macros
900 If·an·input·character·is·bound·to·the·editor·command843 If·an·input·character·is·bound·to·the·editor·command
901 \fBed-sequence-lead-in\fP,844 .Ic·ed-sequence-lead-in·,
902 \fBeditline\fP845 .Nm
903 attempts·to·call·a·macro.846 attempts·to·call·a·macro.
904 If·the·input·character·by·itself·forms·the·name·of·a·macro,·that847 If·the·input·character·by·itself·forms·the·name·of·a·macro,·that
905 macro·is·executed.848 macro·is·executed.
906 Otherwise,·additional·input·characters·are·read·until·the·string849 Otherwise,·additional·input·characters·are·read·until·the·string
907 read·forms·the·name·of·a·macro,·in·which·case·that·macro·is·executed,850 read·forms·the·name·of·a·macro,·in·which·case·that·macro·is·executed,
908 or·until·the·string·read·matches·the·beginning·of·none·of·the·existing851 or·until·the·string·read·matches·the·beginning·of·none·of·the·existing
909 macro·names,·in·which·case·the·string·including·the·final,·mismatching852 macro·names,·in·which·case·the·string·including·the·final,·mismatching
910 character·is·discarded·and·the·terminal·bell·is·rung.853 character·is·discarded·and·the·terminal·bell·is·rung.
 854 .Pp
911 There·are·two·kinds·of·macros.855 There·are·two·kinds·of·macros.
912 Command·macros·execute·a·single·editor·command.856 Command·macros·execute·a·single·editor·command.
913 Keyboard·macros·return·a·string·of·characters·that·is·appended857 Keyboard·macros·return·a·string·of·characters·that·is·appended
914 as·a·new·line·to·the858 as·a·new·line·to·the
915 .B·Input·Queue·.859 .Sx·Input·Queue·.
 860 .Pp
916 The·following·command·macros·are·defined·by·default·in·vi·command861 The·following·command·macros·are·defined·by·default·in·vi·command
917 mode·and·in·emacs·mode:862 mode·and·in·emacs·mode:
 863 .Bl·-column·-offset·indent·"Esc·O·A,·Esc·O·A"·"em-exchange-mark"
918 It·Esc·\&[·A,·Esc·O·A·Ta·\fBed-prev-history\fP864 .It·Esc·\&[·A,·Esc·O·A·Ta·Ic·ed-prev-history
919 It·Esc·\&[·B,·Esc·O·B·Ta·\fBed-next-history\fP865 .It·Esc·\&[·B,·Esc·O·B·Ta·Ic·ed-next-history
920 It·Esc·\&[·C,·Esc·O·C·Ta·\fBed-next-char\fP866 .It·Esc·\&[·C,·Esc·O·C·Ta·Ic·ed-next-char
921 It·Esc·\&[·D,·Esc·O·D·Ta·\fBed-prev-char\fP867 .It·Esc·\&[·D,·Esc·O·D·Ta·Ic·ed-prev-char
922 It·Esc·\&[·F,·Esc·O·F·Ta·\fBed-move-to-end\fP868 .It·Esc·\&[·F,·Esc·O·F·Ta·Ic·ed-move-to-end
923 It·Esc·\&[·H,·Esc·O·H·Ta·\fBed-move-to-beg\fP869 .It·Esc·\&[·H,·Esc·O·H·Ta·Ic·ed-move-to-beg
 870 .El
 871 .Pp
924 In·vi·command·mode,·they·are·also·defined·by·default·without·the872 In·vi·command·mode,·they·are·also·defined·by·default·without·the
925 initial·escape·character.873 initial·escape·character.
 874 .Pp
926 In·addition,·the875 In·addition,·the
927 \fBeditline\fP876 .Nm
928 library·tries·to·bind·the·strings·generated·by·the·arrow·keys877 library·tries·to·bind·the·strings·generated·by·the·arrow·keys
929 as·reported·by·the878 as·reported·by·the
930 \fBterminfo\fP(5)879 .Xr·terminfo·5
931 database·to·these·editor·commands,·unless·that·would·clobber880 database·to·these·editor·commands,·unless·that·would·clobber
932 user·settings.881 user·settings.
 882 .Pp
933 In·emacs·mode,·the·two-character·string883 In·emacs·mode,·the·two-character·string
934 ``Ctrl-X·Ctrl-X''884 .Dq·Ctrl-X·Ctrl-X
935 is·bound·to·the885 is·bound·to·the
936 \fBem-exchange-mark\fP886 .Ic·em-exchange-mark
937 editor·command.887 editor·command.
938 .SS·Input·Queue888 .Ss·Input·Queue
939 The889 The
940 \fBeditline\fP890 .Nm
941 library·maintains·an·input·queue·operated·in·FIFO·mode.891 library·maintains·an·input·queue·operated·in·FIFO·mode.
942 Whenever·it·needs·an·input·character,·it·takes·the·first·character892 Whenever·it·needs·an·input·character,·it·takes·the·first·character
943 from·the·first·line·of·the·input·queue.893 from·the·first·line·of·the·input·queue.
944 When·the·queue·is·empty,·it·reads·from·the·terminal.894 When·the·queue·is·empty,·it·reads·from·the·terminal.
 895 .Pp
945 A·line·can·be·appended·to·the·end·of·the·input·queue·in·several·ways:896 A·line·can·be·appended·to·the·end·of·the·input·queue·in·several·ways:
 897 .Bl·-dash·-offset·indent
946 It898 .It
947 By·calling·one·of·the·keyboard899 By·calling·one·of·the·keyboard
948 .B·Macros·.900 .Sx·Macros·.
949 It901 .It
950 By·calling·the·editor·command902 By·calling·the·editor·command
951 \fBvi-redo\fP.903 .Ic·vi-redo·.
952 It904 .It
953 By·calling·the·editor·command905 By·calling·the·editor·command
954 \fBvi-alias\fP.906 .Ic·vi-alias·.
955 It907 .It
956 By·pressing·a·key·in·emacs·incremental·search·mode·that·doesn't908 By·pressing·a·key·in·emacs·incremental·search·mode·that·doesn't
957 have·a·special·meaning·in·that·mode·but·returns·to·normal·emacs909 have·a·special·meaning·in·that·mode·but·returns·to·normal·emacs
958 mode.910 mode.
959 It911 .It
960 If·an·application·program·directly·calls·the·functions912 If·an·application·program·directly·calls·the·functions
961 \fBel_push\fP(3)913 .Xr·el_push·3
962 or914 or
963 \fBel_wpush\fP(3),915 .Xr·el_wpush·3·,
964 it·can·provide·additional,·program-specific·ways916 it·can·provide·additional,·program-specific·ways
965 of·appending·to·the·input·queue.917 of·appending·to·the·input·queue.
 918 .El
966 .SH·SEE·ALSO919 .Sh·SEE·ALSO
967 \fBmg\fP(1), 
968 \fBvi\fP(1), 
969 \fBeditline\fP(3), 
970 \fBel_wgets\fP(3), 
971 \fBel_wpush\fP(3), 
972 \fBel_wset\fP(3), 
973 \fBeditrc\fP(5)920 .Xr·mg·1·,
 921 .Xr·vi·1·,
 922 .Xr·editline·3·,
 923 .Xr·el_wgets·3·,
 924 .Xr·el_wpush·3·,
 925 .Xr·el_wset·3·,
 926 .Xr·editrc·5
974 .SH·HISTORY927 .Sh·HISTORY
975 This·manual·page·first·appeared·in928 This·manual·page·first·appeared·in
976 Ox·6.0929 .Ox·6.0
977 and930 and
978 Nx·8·.931 .Nx·8·.
979 .SH·AUTHORS932 .Sh·AUTHORS
  
980 -nosplit933 .An·-nosplit
981 This·manual·page·was·written·by934 This·manual·page·was·written·by
  
982 Ingo·Schwarze·<Mt·schwarze@openbsd.org·.>935 .An·Ingo·Schwarze·Aq·Mt·schwarze@openbsd.org·.