Deleted Added
full compact
editrc.5 (245325) editrc.5 (276881)
1.\" $NetBSD: editrc.5,v 1.24 2009/04/11 22:17:52 wiz Exp $
1.\" $NetBSD: editrc.5,v 1.29 2014/12/25 13:39:41 wiz Exp $
2.\"
3.\" Copyright (c) 1997-2000 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This file was contributed to The NetBSD Foundation by Luke Mewburn.
7.\"
8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions
10.\" are met:
11.\" 1. Redistributions of source code must retain the above copyright
12.\" notice, this list of conditions and the following disclaimer.
13.\" 2. Redistributions in binary form must reproduce the above copyright
14.\" notice, this list of conditions and the following disclaimer in the
15.\" documentation and/or other materials provided with the distribution.
16.\"
17.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
18.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
21.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27.\" POSSIBILITY OF SUCH DAMAGE.
28.\"
2.\"
3.\" Copyright (c) 1997-2000 The NetBSD Foundation, Inc.
4.\" All rights reserved.
5.\"
6.\" This file was contributed to The NetBSD Foundation by Luke Mewburn.
7.\"
8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions
10.\" are met:
11.\" 1. Redistributions of source code must retain the above copyright
12.\" notice, this list of conditions and the following disclaimer.
13.\" 2. Redistributions in binary form must reproduce the above copyright
14.\" notice, this list of conditions and the following disclaimer in the
15.\" documentation and/or other materials provided with the distribution.
16.\"
17.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
18.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
21.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27.\" POSSIBILITY OF SUCH DAMAGE.
28.\"
29.\" $FreeBSD: head/lib/libedit/editrc.5 245325 2013-01-12 09:08:37Z joel $
29.\" $FreeBSD: head/lib/libedit/editrc.5 276881 2015-01-09 07:40:56Z bapt $
30.\"
30.\"
31.Dd October 18, 2003
31.Dd December 25, 2014
32.Dt EDITRC 5
33.Os
34.Sh NAME
35.Nm editrc
36.Nd configuration file for editline library
37.Sh SYNOPSIS
38.Nm
39.Sh DESCRIPTION
40The
41.Nm
42file defines various settings to be used by the
43.Xr editline 3
44library.
45.Pp
46The format of each line is:
32.Dt EDITRC 5
33.Os
34.Sh NAME
35.Nm editrc
36.Nd configuration file for editline library
37.Sh SYNOPSIS
38.Nm
39.Sh DESCRIPTION
40The
41.Nm
42file defines various settings to be used by the
43.Xr editline 3
44library.
45.Pp
46The format of each line is:
47.Dl [prog:]command [arg [...]]
48.Pp
47.Pp
48.Dl [prog:]command [arg ...]
49.Pp
49.Ar command
50is one of the
51.Xr editline 3
52builtin commands.
53Refer to
54.Sx BUILTIN COMMANDS
55for more information.
56.Pp
57.Ar prog
58is the program name string that a program defines when it calls
59.Xr el_init 3
60to set up
61.Xr editline 3 ,
62which is usually
63.Va argv[0] .
64.Ar command
65will be executed for any program which matches
66.Ar prog .
67.Pp
68.Ar prog
69may also be a
70.Xr regex 3
71style
72regular expression, in which case
73.Ar command
74will be executed for any program that matches the regular expression.
75.Pp
76If
77.Ar prog
78is absent,
79.Ar command
80is executed for all programs.
81.Sh BUILTIN COMMANDS
82The
83.Nm editline
84library has some builtin commands, which affect the way
85that the line editing and history functions operate.
86These are based on similar named builtins present in the
87.Xr tcsh 1
88shell.
89.Pp
90The following builtin commands are available:
91.Bl -tag -width 4n
92.It Ic bind Oo Fl a Oc Oo Fl e Oc Oo Fl k Oc Oo Fl l Oc Oo Fl r Oc \
93Oo Fl s Oc Oo Fl v Oc Oo Ar key Oo Ar command Oc Oc
94Without options, list all bound keys, and the editor command to which
95each is bound.
96If
97.Ar key
98is supplied, show the bindings for
99.Ar key .
100If
101.Ar key command
102is supplied, bind
103.Ar command
104to
105.Ar key .
106Options include:
107.Bl -tag -width 4n
50.Ar command
51is one of the
52.Xr editline 3
53builtin commands.
54Refer to
55.Sx BUILTIN COMMANDS
56for more information.
57.Pp
58.Ar prog
59is the program name string that a program defines when it calls
60.Xr el_init 3
61to set up
62.Xr editline 3 ,
63which is usually
64.Va argv[0] .
65.Ar command
66will be executed for any program which matches
67.Ar prog .
68.Pp
69.Ar prog
70may also be a
71.Xr regex 3
72style
73regular expression, in which case
74.Ar command
75will be executed for any program that matches the regular expression.
76.Pp
77If
78.Ar prog
79is absent,
80.Ar command
81is executed for all programs.
82.Sh BUILTIN COMMANDS
83The
84.Nm editline
85library has some builtin commands, which affect the way
86that the line editing and history functions operate.
87These are based on similar named builtins present in the
88.Xr tcsh 1
89shell.
90.Pp
91The following builtin commands are available:
92.Bl -tag -width 4n
93.It Ic bind Oo Fl a Oc Oo Fl e Oc Oo Fl k Oc Oo Fl l Oc Oo Fl r Oc \
94Oo Fl s Oc Oo Fl v Oc Oo Ar key Oo Ar command Oc Oc
95Without options, list all bound keys, and the editor command to which
96each is bound.
97If
98.Ar key
99is supplied, show the bindings for
100.Ar key .
101If
102.Ar key command
103is supplied, bind
104.Ar command
105to
106.Ar key .
107Options include:
108.Bl -tag -width 4n
108.It Fl e
109Bind all keys to the standard GNU Emacs-like bindings.
110.It Fl v
111Bind all keys to the standard
112.Xr vi 1 Ns -like
113bindings.
114.It Fl a
115List or change key bindings in the
116.Xr vi 1
117mode alternate (command mode) key map.
109.It Fl a
110List or change key bindings in the
111.Xr vi 1
112mode alternate (command mode) key map.
113.It Fl e
114Bind all keys to the standard GNU Emacs-like bindings.
118.It Fl k
119.Ar key
120is interpreted as a symbolic arrow key name, which may be one of
121.Sq up ,
122.Sq down ,
123.Sq left
124or
125.Sq right .
126.It Fl l
127List all editor commands and a short description of each.
128.It Fl r
129Remove a key's binding.
130.It Fl s
131.Ar command
132is taken as a literal string and treated as terminal input when
133.Ar key
134is typed.
135Bound keys in
136.Ar command
137are themselves reinterpreted, and this continues for ten levels of
138interpretation.
115.It Fl k
116.Ar key
117is interpreted as a symbolic arrow key name, which may be one of
118.Sq up ,
119.Sq down ,
120.Sq left
121or
122.Sq right .
123.It Fl l
124List all editor commands and a short description of each.
125.It Fl r
126Remove a key's binding.
127.It Fl s
128.Ar command
129is taken as a literal string and treated as terminal input when
130.Ar key
131is typed.
132Bound keys in
133.Ar command
134are themselves reinterpreted, and this continues for ten levels of
135interpretation.
136.It Fl v
137Bind all keys to the standard
138.Xr vi 1 Ns -like
139bindings.
139.El
140.Pp
141.Ar command
142may be one of the commands documented in
143.Sx "EDITOR COMMANDS"
144below, or another key.
145.Pp
146.Ar key
147and
148.Ar command
149can contain control characters of the form
150.Sm off
151.Sq No ^ Ar character
152.Sm on
140.El
141.Pp
142.Ar command
143may be one of the commands documented in
144.Sx "EDITOR COMMANDS"
145below, or another key.
146.Pp
147.Ar key
148and
149.Ar command
150can contain control characters of the form
151.Sm off
152.Sq No ^ Ar character
153.Sm on
153(e.g.\&
154.Sq ^A ) ,
154.Po
155e.g.\&
156.Sq ^A
157.Pc ,
155and the following backslashed escape sequences:
156.Pp
157.Bl -tag -compact -offset indent -width 4n
158.It Ic \ea
159Bell
160.It Ic \eb
161Backspace
162.It Ic \ee
163Escape
164.It Ic \ef
165Formfeed
166.It Ic \en
167Newline
168.It Ic \er
169Carriage return
170.It Ic \et
171Horizontal tab
172.It Ic \ev
173Vertical tab
174.Sm off
175.It Sy \e Ar nnn
176.Sm on
177The ASCII character corresponding to the octal number
178.Ar nnn .
179.El
180.Pp
181.Sq \e
182nullifies the special meaning of the following character,
183if it has any, notably
184.Sq \e
185and
186.Sq ^ .
187.It Ic echotc Oo Fl sv Oc Ar arg Ar ...
188Exercise terminal capabilities given in
158and the following backslashed escape sequences:
159.Pp
160.Bl -tag -compact -offset indent -width 4n
161.It Ic \ea
162Bell
163.It Ic \eb
164Backspace
165.It Ic \ee
166Escape
167.It Ic \ef
168Formfeed
169.It Ic \en
170Newline
171.It Ic \er
172Carriage return
173.It Ic \et
174Horizontal tab
175.It Ic \ev
176Vertical tab
177.Sm off
178.It Sy \e Ar nnn
179.Sm on
180The ASCII character corresponding to the octal number
181.Ar nnn .
182.El
183.Pp
184.Sq \e
185nullifies the special meaning of the following character,
186if it has any, notably
187.Sq \e
188and
189.Sq ^ .
190.It Ic echotc Oo Fl sv Oc Ar arg Ar ...
191Exercise terminal capabilities given in
189.Ar arg Ar ... .
192.Ar arg ... .
190If
191.Ar arg
192is
193.Sq baud ,
194.Sq cols ,
195.Sq lines ,
196.Sq rows ,
193If
194.Ar arg
195is
196.Sq baud ,
197.Sq cols ,
198.Sq lines ,
199.Sq rows ,
197.Sq meta or
200.Sq meta ,
201or
198.Sq tabs ,
199the value of that capability is printed, with
200.Dq yes
201or
202.Dq no
203indicating that the terminal does or does not have that capability.
204.Pp
205.Fl s
206returns an empty string for non-existent capabilities, rather than
207causing an error.
208.Fl v
209causes messages to be verbose.
202.Sq tabs ,
203the value of that capability is printed, with
204.Dq yes
205or
206.Dq no
207indicating that the terminal does or does not have that capability.
208.Pp
209.Fl s
210returns an empty string for non-existent capabilities, rather than
211causing an error.
212.Fl v
213causes messages to be verbose.
210.It Ic edit Op Cm on | off
214.It Ic edit Op Li on | Li off
211Enable or disable the
212.Nm editline
213functionality in a program.
214.It Ic history Ar list | Ar size Dv n | Ar unique Dv n
215The
216.Ar list
217command lists all entries in the history.
218The
219.Ar size
220command sets the history size to
221.Dv n
222entries.
223The
224.Ar unique
225command controls if history should keep duplicate entries.
226If
227.Dv n
228is non zero, only keep unique history entries.
229If
230.Dv n
231is zero, then keep all entries (the default).
215Enable or disable the
216.Nm editline
217functionality in a program.
218.It Ic history Ar list | Ar size Dv n | Ar unique Dv n
219The
220.Ar list
221command lists all entries in the history.
222The
223.Ar size
224command sets the history size to
225.Dv n
226entries.
227The
228.Ar unique
229command controls if history should keep duplicate entries.
230If
231.Dv n
232is non zero, only keep unique history entries.
233If
234.Dv n
235is zero, then keep all entries (the default).
232.It Ic telltc
233List the values of all the terminal capabilities (see
234.Xr termcap 5 ) .
235.It Ic settc Ar cap Ar val
236Set the terminal capability
237.Ar cap
238to
239.Ar val ,
240as defined in
241.Xr termcap 5 .
242No sanity checking is done.
243.It Ic setty Oo Fl a Oc Oo Fl d Oc Oo Fl q Oc Oo Fl x Oc Oo Ar +mode Oc \
244Oo Ar -mode Oc Oo Ar mode Oc Oo Ar char=c Oc
245Control which tty modes that
246.Nm
247will not allow the user to change.
248.Fl d ,
249.Fl q
250or
251.Fl x
252tells
253.Ic setty
254to act on the
255.Sq edit ,
256.Sq quote
257or
258.Sq execute
259set of tty modes respectively; defaulting to
260.Fl x .
261.Pp
262Without other arguments,
263.Ic setty
264lists the modes in the chosen set which are fixed on
236.It Ic settc Ar cap Ar val
237Set the terminal capability
238.Ar cap
239to
240.Ar val ,
241as defined in
242.Xr termcap 5 .
243No sanity checking is done.
244.It Ic setty Oo Fl a Oc Oo Fl d Oc Oo Fl q Oc Oo Fl x Oc Oo Ar +mode Oc \
245Oo Ar -mode Oc Oo Ar mode Oc Oo Ar char=c Oc
246Control which tty modes that
247.Nm
248will not allow the user to change.
249.Fl d ,
250.Fl q
251or
252.Fl x
253tells
254.Ic setty
255to act on the
256.Sq edit ,
257.Sq quote
258or
259.Sq execute
260set of tty modes respectively; defaulting to
261.Fl x .
262.Pp
263Without other arguments,
264.Ic setty
265lists the modes in the chosen set which are fixed on
265.Pq Sq +mode
266.Po
267.Sq +mode
268.Pc
266or off
269or off
267.Pq Sq -mode .
270.Po
271.Sq -mode
272.Pc .
268.Fl a
269lists all tty modes in the chosen set regardless of the setting.
270With
271.Ar +mode ,
272.Ar -mode
273or
274.Ar mode ,
275fixes
276.Ar mode
277on or off or removes control of
278.Ar mode
279in the chosen set.
280.Pp
281.Ic Setty
282can also be used to set tty characters to particular values using
283.Ar char=value .
284If
285.Ar value
286is empty
287then the character is set to
288.Dv _POSIX_VDISABLE .
273.Fl a
274lists all tty modes in the chosen set regardless of the setting.
275With
276.Ar +mode ,
277.Ar -mode
278or
279.Ar mode ,
280fixes
281.Ar mode
282on or off or removes control of
283.Ar mode
284in the chosen set.
285.Pp
286.Ic Setty
287can also be used to set tty characters to particular values using
288.Ar char=value .
289If
290.Ar value
291is empty
292then the character is set to
293.Dv _POSIX_VDISABLE .
294.It Ic telltc
295List the values of all the terminal capabilities (see
296.Xr termcap 5 ) .
289.El
290.Sh EDITOR COMMANDS
291The following editor commands are available for use in key bindings:
292.\" Section automatically generated with makelist
293.Bl -tag -width 4n
294.It Ic vi-paste-next
295Vi paste previous deletion to the right of the cursor.
296.It Ic vi-paste-prev
297Vi paste previous deletion to the left of the cursor.
297.El
298.Sh EDITOR COMMANDS
299The following editor commands are available for use in key bindings:
300.\" Section automatically generated with makelist
301.Bl -tag -width 4n
302.It Ic vi-paste-next
303Vi paste previous deletion to the right of the cursor.
304.It Ic vi-paste-prev
305Vi paste previous deletion to the left of the cursor.
298.It Ic vi-prev-space-word
306.It Ic vi-prev-big-word
299Vi move to the previous space delimited word.
300.It Ic vi-prev-word
301Vi move to the previous word.
307Vi move to the previous space delimited word.
308.It Ic vi-prev-word
309Vi move to the previous word.
302.It Ic vi-next-space-word
310.It Ic vi-next-big-word
303Vi move to the next space delimited word.
304.It Ic vi-next-word
305Vi move to the next word.
306.It Ic vi-change-case
307Vi change case of character under the cursor and advance one character.
308.It Ic vi-change-meta
309Vi change prefix command.
310.It Ic vi-insert-at-bol
311Vi enter insert mode at the beginning of line.
312.It Ic vi-replace-char
313Vi replace character under the cursor with the next character typed.
314.It Ic vi-replace-mode
315Vi enter replace mode.
316.It Ic vi-substitute-char
317Vi replace character under the cursor and enter insert mode.
318.It Ic vi-substitute-line
319Vi substitute entire line.
320.It Ic vi-change-to-eol
321Vi change to end of line.
322.It Ic vi-insert
323Vi enter insert mode.
324.It Ic vi-add
325Vi enter insert mode after the cursor.
326.It Ic vi-add-at-eol
327Vi enter insert mode at end of line.
328.It Ic vi-delete-meta
329Vi delete prefix command.
311Vi move to the next space delimited word.
312.It Ic vi-next-word
313Vi move to the next word.
314.It Ic vi-change-case
315Vi change case of character under the cursor and advance one character.
316.It Ic vi-change-meta
317Vi change prefix command.
318.It Ic vi-insert-at-bol
319Vi enter insert mode at the beginning of line.
320.It Ic vi-replace-char
321Vi replace character under the cursor with the next character typed.
322.It Ic vi-replace-mode
323Vi enter replace mode.
324.It Ic vi-substitute-char
325Vi replace character under the cursor and enter insert mode.
326.It Ic vi-substitute-line
327Vi substitute entire line.
328.It Ic vi-change-to-eol
329Vi change to end of line.
330.It Ic vi-insert
331Vi enter insert mode.
332.It Ic vi-add
333Vi enter insert mode after the cursor.
334.It Ic vi-add-at-eol
335Vi enter insert mode at end of line.
336.It Ic vi-delete-meta
337Vi delete prefix command.
330.It Ic vi-end-word
338.It Ic vi-end-big-word
331Vi move to the end of the current space delimited word.
339Vi move to the end of the current space delimited word.
332.It Ic vi-to-end-word
340.It Ic vi-end-word
333Vi move to the end of the current word.
334.It Ic vi-undo
335Vi undo last change.
336.It Ic vi-command-mode
337Vi enter command mode (use alternative key bindings).
338.It Ic vi-zero
339Vi move to the beginning of line.
340.It Ic vi-delete-prev-char
341Vi move to previous character (backspace).
342.It Ic vi-list-or-eof
343Vi list choices for completion or indicate end of file if empty line.
344.It Ic vi-kill-line-prev
345Vi cut from beginning of line to cursor.
346.It Ic vi-search-prev
347Vi search history previous.
348.It Ic vi-search-next
349Vi search history next.
350.It Ic vi-repeat-search-next
351Vi repeat current search in the same search direction.
352.It Ic vi-repeat-search-prev
353Vi repeat current search in the opposite search direction.
354.It Ic vi-next-char
355Vi move to the character specified next.
356.It Ic vi-prev-char
357Vi move to the character specified previous.
358.It Ic vi-to-next-char
359Vi move up to the character specified next.
360.It Ic vi-to-prev-char
361Vi move up to the character specified previous.
362.It Ic vi-repeat-next-char
363Vi repeat current character search in the same search direction.
364.It Ic vi-repeat-prev-char
365Vi repeat current character search in the opposite search direction.
341Vi move to the end of the current word.
342.It Ic vi-undo
343Vi undo last change.
344.It Ic vi-command-mode
345Vi enter command mode (use alternative key bindings).
346.It Ic vi-zero
347Vi move to the beginning of line.
348.It Ic vi-delete-prev-char
349Vi move to previous character (backspace).
350.It Ic vi-list-or-eof
351Vi list choices for completion or indicate end of file if empty line.
352.It Ic vi-kill-line-prev
353Vi cut from beginning of line to cursor.
354.It Ic vi-search-prev
355Vi search history previous.
356.It Ic vi-search-next
357Vi search history next.
358.It Ic vi-repeat-search-next
359Vi repeat current search in the same search direction.
360.It Ic vi-repeat-search-prev
361Vi repeat current search in the opposite search direction.
362.It Ic vi-next-char
363Vi move to the character specified next.
364.It Ic vi-prev-char
365Vi move to the character specified previous.
366.It Ic vi-to-next-char
367Vi move up to the character specified next.
368.It Ic vi-to-prev-char
369Vi move up to the character specified previous.
370.It Ic vi-repeat-next-char
371Vi repeat current character search in the same search direction.
372.It Ic vi-repeat-prev-char
373Vi repeat current character search in the opposite search direction.
374.It Ic vi-match
375Vi go to matching () {} or [].
376.It Ic vi-undo-line
377Vi undo all changes to line.
378.It Ic vi-to-column
379Vi go to specified column.
380.It Ic vi-yank-end
381Vi yank to end of line.
382.It Ic vi-yank
383Vi yank.
384.It Ic vi-comment-out
385Vi comment out current command.
386.It Ic vi-alias
387Vi include shell alias.
388.It Ic vi-to-history-line
389Vi go to specified history file line..
390.It Ic vi-histedit
391Vi edit history line with vi.
392.It Ic vi-history-word
393Vi append word from previous input line.
394.It Ic vi-redo
395Vi redo last non-motion command.
366.It Ic em-delete-or-list
367Delete character under cursor or list completions if at end of line.
368.It Ic em-delete-next-word
369Cut from cursor to end of current word.
370.It Ic em-yank
371Paste cut buffer at cursor position.
372.It Ic em-kill-line
373Cut the entire line and save in cut buffer.
374.It Ic em-kill-region
375Cut area between mark and cursor and save in cut buffer.
376.It Ic em-copy-region
377Copy area between mark and cursor to cut buffer.
378.It Ic em-gosmacs-transpose
379Exchange the two characters before the cursor.
380.It Ic em-next-word
381Move next to end of current word.
382.It Ic em-upper-case
383Uppercase the characters from cursor to end of current word.
384.It Ic em-capitol-case
385Capitalize the characters from cursor to end of current word.
386.It Ic em-lower-case
387Lowercase the characters from cursor to end of current word.
388.It Ic em-set-mark
389Set the mark at cursor.
390.It Ic em-exchange-mark
391Exchange the cursor and mark.
392.It Ic em-universal-argument
393Universal argument (argument times 4).
394.It Ic em-meta-next
395Add 8th bit to next character typed.
396.It Ic em-toggle-overwrite
397Switch from insert to overwrite mode or vice versa.
398.It Ic em-copy-prev-word
399Copy current word to cursor.
400.It Ic em-inc-search-next
401Emacs incremental next search.
402.It Ic em-inc-search-prev
403Emacs incremental reverse search.
404.It Ic ed-end-of-file
405Indicate end of file.
406.It Ic ed-insert
407Add character to the line.
408.It Ic ed-delete-prev-word
409Delete from beginning of current word to cursor.
410.It Ic ed-delete-next-char
411Delete character under cursor.
412.It Ic ed-kill-line
413Cut to the end of line.
414.It Ic ed-move-to-end
415Move cursor to the end of line.
416.It Ic ed-move-to-beg
417Move cursor to the beginning of line.
418.It Ic ed-transpose-chars
419Exchange the character to the left of the cursor with the one under it.
420.It Ic ed-next-char
421Move to the right one character.
422.It Ic ed-prev-word
423Move to the beginning of the current word.
424.It Ic ed-prev-char
425Move to the left one character.
426.It Ic ed-quoted-insert
427Add the next character typed verbatim.
428.It Ic ed-digit
429Adds to argument or enters a digit.
430.It Ic ed-argument-digit
431Digit that starts argument.
432.It Ic ed-unassigned
433Indicates unbound character.
434.It Ic ed-tty-sigint
435Tty interrupt character.
436.It Ic ed-tty-dsusp
437Tty delayed suspend character.
438.It Ic ed-tty-flush-output
439Tty flush output characters.
440.It Ic ed-tty-sigquit
441Tty quit character.
442.It Ic ed-tty-sigtstp
443Tty suspend character.
444.It Ic ed-tty-stop-output
445Tty disallow output characters.
446.It Ic ed-tty-start-output
447Tty allow output characters.
448.It Ic ed-newline
449Execute command.
450.It Ic ed-delete-prev-char
451Delete the character to the left of the cursor.
452.It Ic ed-clear-screen
453Clear screen leaving current line at the top.
454.It Ic ed-redisplay
455Redisplay everything.
456.It Ic ed-start-over
457Erase current line and start from scratch.
458.It Ic ed-sequence-lead-in
459First character in a bound sequence.
460.It Ic ed-prev-history
461Move to the previous history line.
462.It Ic ed-next-history
463Move to the next history line.
464.It Ic ed-search-prev-history
465Search previous in history for a line matching the current.
466.It Ic ed-search-next-history
467Search next in history for a line matching the current.
468.It Ic ed-prev-line
469Move up one line.
470.It Ic ed-next-line
471Move down one line.
472.It Ic ed-command
473Editline extended command.
474.El
475.\" End of section automatically generated with makelist
476.Sh FILES
477.Bl -tag -width "~/.editrcXXX"
478.It Pa ~/.editrc
479User configuration file for the
480.Xr editline 3
481library.
482.El
483.Sh SEE ALSO
484.Xr editline 3 ,
485.Xr regex 3 ,
486.Xr termcap 5
487.Sh AUTHORS
488.An -nosplit
489The
490.Nm editline
491library was written by
492.An Christos Zoulas ,
493and this manual was written by
494.An Luke Mewburn ,
495with some sections inspired by
496.Xr tcsh 1 .
396.It Ic em-delete-or-list
397Delete character under cursor or list completions if at end of line.
398.It Ic em-delete-next-word
399Cut from cursor to end of current word.
400.It Ic em-yank
401Paste cut buffer at cursor position.
402.It Ic em-kill-line
403Cut the entire line and save in cut buffer.
404.It Ic em-kill-region
405Cut area between mark and cursor and save in cut buffer.
406.It Ic em-copy-region
407Copy area between mark and cursor to cut buffer.
408.It Ic em-gosmacs-transpose
409Exchange the two characters before the cursor.
410.It Ic em-next-word
411Move next to end of current word.
412.It Ic em-upper-case
413Uppercase the characters from cursor to end of current word.
414.It Ic em-capitol-case
415Capitalize the characters from cursor to end of current word.
416.It Ic em-lower-case
417Lowercase the characters from cursor to end of current word.
418.It Ic em-set-mark
419Set the mark at cursor.
420.It Ic em-exchange-mark
421Exchange the cursor and mark.
422.It Ic em-universal-argument
423Universal argument (argument times 4).
424.It Ic em-meta-next
425Add 8th bit to next character typed.
426.It Ic em-toggle-overwrite
427Switch from insert to overwrite mode or vice versa.
428.It Ic em-copy-prev-word
429Copy current word to cursor.
430.It Ic em-inc-search-next
431Emacs incremental next search.
432.It Ic em-inc-search-prev
433Emacs incremental reverse search.
434.It Ic ed-end-of-file
435Indicate end of file.
436.It Ic ed-insert
437Add character to the line.
438.It Ic ed-delete-prev-word
439Delete from beginning of current word to cursor.
440.It Ic ed-delete-next-char
441Delete character under cursor.
442.It Ic ed-kill-line
443Cut to the end of line.
444.It Ic ed-move-to-end
445Move cursor to the end of line.
446.It Ic ed-move-to-beg
447Move cursor to the beginning of line.
448.It Ic ed-transpose-chars
449Exchange the character to the left of the cursor with the one under it.
450.It Ic ed-next-char
451Move to the right one character.
452.It Ic ed-prev-word
453Move to the beginning of the current word.
454.It Ic ed-prev-char
455Move to the left one character.
456.It Ic ed-quoted-insert
457Add the next character typed verbatim.
458.It Ic ed-digit
459Adds to argument or enters a digit.
460.It Ic ed-argument-digit
461Digit that starts argument.
462.It Ic ed-unassigned
463Indicates unbound character.
464.It Ic ed-tty-sigint
465Tty interrupt character.
466.It Ic ed-tty-dsusp
467Tty delayed suspend character.
468.It Ic ed-tty-flush-output
469Tty flush output characters.
470.It Ic ed-tty-sigquit
471Tty quit character.
472.It Ic ed-tty-sigtstp
473Tty suspend character.
474.It Ic ed-tty-stop-output
475Tty disallow output characters.
476.It Ic ed-tty-start-output
477Tty allow output characters.
478.It Ic ed-newline
479Execute command.
480.It Ic ed-delete-prev-char
481Delete the character to the left of the cursor.
482.It Ic ed-clear-screen
483Clear screen leaving current line at the top.
484.It Ic ed-redisplay
485Redisplay everything.
486.It Ic ed-start-over
487Erase current line and start from scratch.
488.It Ic ed-sequence-lead-in
489First character in a bound sequence.
490.It Ic ed-prev-history
491Move to the previous history line.
492.It Ic ed-next-history
493Move to the next history line.
494.It Ic ed-search-prev-history
495Search previous in history for a line matching the current.
496.It Ic ed-search-next-history
497Search next in history for a line matching the current.
498.It Ic ed-prev-line
499Move up one line.
500.It Ic ed-next-line
501Move down one line.
502.It Ic ed-command
503Editline extended command.
504.El
505.\" End of section automatically generated with makelist
506.Sh FILES
507.Bl -tag -width "~/.editrcXXX"
508.It Pa ~/.editrc
509User configuration file for the
510.Xr editline 3
511library.
512.El
513.Sh SEE ALSO
514.Xr editline 3 ,
515.Xr regex 3 ,
516.Xr termcap 5
517.Sh AUTHORS
518.An -nosplit
519The
520.Nm editline
521library was written by
522.An Christos Zoulas ,
523and this manual was written by
524.An Luke Mewburn ,
525with some sections inspired by
526.Xr tcsh 1 .