1*0a6a1f1dSLionel Sambuc.\" $NetBSD: editrc.5,v 1.29 2014/12/25 13:39:41 wiz Exp $ 23e1db26aSLionel Sambuc.\" 33e1db26aSLionel Sambuc.\" Copyright (c) 1997-2000 The NetBSD Foundation, Inc. 43e1db26aSLionel Sambuc.\" All rights reserved. 53e1db26aSLionel Sambuc.\" 63e1db26aSLionel Sambuc.\" This file was contributed to The NetBSD Foundation by Luke Mewburn. 73e1db26aSLionel Sambuc.\" 83e1db26aSLionel Sambuc.\" Redistribution and use in source and binary forms, with or without 93e1db26aSLionel Sambuc.\" modification, are permitted provided that the following conditions 103e1db26aSLionel Sambuc.\" are met: 113e1db26aSLionel Sambuc.\" 1. Redistributions of source code must retain the above copyright 123e1db26aSLionel Sambuc.\" notice, this list of conditions and the following disclaimer. 133e1db26aSLionel Sambuc.\" 2. Redistributions in binary form must reproduce the above copyright 143e1db26aSLionel Sambuc.\" notice, this list of conditions and the following disclaimer in the 153e1db26aSLionel Sambuc.\" documentation and/or other materials provided with the distribution. 163e1db26aSLionel Sambuc.\" 173e1db26aSLionel Sambuc.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 183e1db26aSLionel Sambuc.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 193e1db26aSLionel Sambuc.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 203e1db26aSLionel Sambuc.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 213e1db26aSLionel Sambuc.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 223e1db26aSLionel Sambuc.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 233e1db26aSLionel Sambuc.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 243e1db26aSLionel Sambuc.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 253e1db26aSLionel Sambuc.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 263e1db26aSLionel Sambuc.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 273e1db26aSLionel Sambuc.\" POSSIBILITY OF SUCH DAMAGE. 283e1db26aSLionel Sambuc.\" 29*0a6a1f1dSLionel Sambuc.Dd December 25, 2014 303e1db26aSLionel Sambuc.Dt EDITRC 5 313e1db26aSLionel Sambuc.Os 323e1db26aSLionel Sambuc.Sh NAME 333e1db26aSLionel Sambuc.Nm editrc 343e1db26aSLionel Sambuc.Nd configuration file for editline library 353e1db26aSLionel Sambuc.Sh SYNOPSIS 363e1db26aSLionel Sambuc.Nm 373e1db26aSLionel Sambuc.Sh DESCRIPTION 383e1db26aSLionel SambucThe 393e1db26aSLionel Sambuc.Nm 403e1db26aSLionel Sambucfile defines various settings to be used by the 413e1db26aSLionel Sambuc.Xr editline 3 423e1db26aSLionel Sambuclibrary. 433e1db26aSLionel Sambuc.Pp 443e1db26aSLionel SambucThe format of each line is: 45*0a6a1f1dSLionel Sambuc.Pp 46*0a6a1f1dSLionel Sambuc.Dl [prog:]command [arg ...] 473e1db26aSLionel Sambuc.Pp 483e1db26aSLionel Sambuc.Ar command 493e1db26aSLionel Sambucis one of the 503e1db26aSLionel Sambuc.Xr editline 3 513e1db26aSLionel Sambucbuiltin commands. 523e1db26aSLionel SambucRefer to 533e1db26aSLionel Sambuc.Sx BUILTIN COMMANDS 543e1db26aSLionel Sambucfor more information. 553e1db26aSLionel Sambuc.Pp 563e1db26aSLionel Sambuc.Ar prog 573e1db26aSLionel Sambucis the program name string that a program defines when it calls 583e1db26aSLionel Sambuc.Xr el_init 3 593e1db26aSLionel Sambucto set up 603e1db26aSLionel Sambuc.Xr editline 3 , 613e1db26aSLionel Sambucwhich is usually 623e1db26aSLionel Sambuc.Va argv[0] . 633e1db26aSLionel Sambuc.Ar command 643e1db26aSLionel Sambucwill be executed for any program which matches 653e1db26aSLionel Sambuc.Ar prog . 663e1db26aSLionel Sambuc.Pp 673e1db26aSLionel Sambuc.Ar prog 683e1db26aSLionel Sambucmay also be a 693e1db26aSLionel Sambuc.Xr regex 3 703e1db26aSLionel Sambucstyle 713e1db26aSLionel Sambucregular expression, in which case 723e1db26aSLionel Sambuc.Ar command 733e1db26aSLionel Sambucwill be executed for any program that matches the regular expression. 743e1db26aSLionel Sambuc.Pp 753e1db26aSLionel SambucIf 763e1db26aSLionel Sambuc.Ar prog 773e1db26aSLionel Sambucis absent, 783e1db26aSLionel Sambuc.Ar command 793e1db26aSLionel Sambucis executed for all programs. 803e1db26aSLionel Sambuc.Sh BUILTIN COMMANDS 813e1db26aSLionel SambucThe 823e1db26aSLionel Sambuc.Nm editline 833e1db26aSLionel Sambuclibrary has some builtin commands, which affect the way 843e1db26aSLionel Sambucthat the line editing and history functions operate. 853e1db26aSLionel SambucThese are based on similar named builtins present in the 863e1db26aSLionel Sambuc.Xr tcsh 1 873e1db26aSLionel Sambucshell. 883e1db26aSLionel Sambuc.Pp 893e1db26aSLionel SambucThe following builtin commands are available: 903e1db26aSLionel Sambuc.Bl -tag -width 4n 913e1db26aSLionel Sambuc.It Ic bind Oo Fl a Oc Oo Fl e Oc Oo Fl k Oc Oo Fl l Oc Oo Fl r Oc \ 923e1db26aSLionel SambucOo Fl s Oc Oo Fl v Oc Oo Ar key Oo Ar command Oc Oc 933e1db26aSLionel SambucWithout options, list all bound keys, and the editor command to which 943e1db26aSLionel Sambuceach is bound. 953e1db26aSLionel SambucIf 963e1db26aSLionel Sambuc.Ar key 973e1db26aSLionel Sambucis supplied, show the bindings for 983e1db26aSLionel Sambuc.Ar key . 993e1db26aSLionel SambucIf 1003e1db26aSLionel Sambuc.Ar key command 1013e1db26aSLionel Sambucis supplied, bind 1023e1db26aSLionel Sambuc.Ar command 1033e1db26aSLionel Sambucto 1043e1db26aSLionel Sambuc.Ar key . 1053e1db26aSLionel SambucOptions include: 1063e1db26aSLionel Sambuc.Bl -tag -width 4n 1073e1db26aSLionel Sambuc.It Fl a 1083e1db26aSLionel SambucList or change key bindings in the 1093e1db26aSLionel Sambuc.Xr vi 1 1103e1db26aSLionel Sambucmode alternate (command mode) key map. 111*0a6a1f1dSLionel Sambuc.It Fl e 112*0a6a1f1dSLionel SambucBind all keys to the standard GNU Emacs-like bindings. 1133e1db26aSLionel Sambuc.It Fl k 1143e1db26aSLionel Sambuc.Ar key 1153e1db26aSLionel Sambucis interpreted as a symbolic arrow key name, which may be one of 1163e1db26aSLionel Sambuc.Sq up , 1173e1db26aSLionel Sambuc.Sq down , 1183e1db26aSLionel Sambuc.Sq left 1193e1db26aSLionel Sambucor 1203e1db26aSLionel Sambuc.Sq right . 1213e1db26aSLionel Sambuc.It Fl l 1223e1db26aSLionel SambucList all editor commands and a short description of each. 1233e1db26aSLionel Sambuc.It Fl r 1243e1db26aSLionel SambucRemove a key's binding. 1253e1db26aSLionel Sambuc.It Fl s 1263e1db26aSLionel Sambuc.Ar command 1273e1db26aSLionel Sambucis taken as a literal string and treated as terminal input when 1283e1db26aSLionel Sambuc.Ar key 1293e1db26aSLionel Sambucis typed. 1303e1db26aSLionel SambucBound keys in 1313e1db26aSLionel Sambuc.Ar command 1323e1db26aSLionel Sambucare themselves reinterpreted, and this continues for ten levels of 1333e1db26aSLionel Sambucinterpretation. 134*0a6a1f1dSLionel Sambuc.It Fl v 135*0a6a1f1dSLionel SambucBind all keys to the standard 136*0a6a1f1dSLionel Sambuc.Xr vi 1 Ns -like 137*0a6a1f1dSLionel Sambucbindings. 1383e1db26aSLionel Sambuc.El 1393e1db26aSLionel Sambuc.Pp 1403e1db26aSLionel Sambuc.Ar command 1413e1db26aSLionel Sambucmay be one of the commands documented in 1423e1db26aSLionel Sambuc.Sx "EDITOR COMMANDS" 1433e1db26aSLionel Sambucbelow, or another key. 1443e1db26aSLionel Sambuc.Pp 1453e1db26aSLionel Sambuc.Ar key 1463e1db26aSLionel Sambucand 1473e1db26aSLionel Sambuc.Ar command 1483e1db26aSLionel Sambuccan contain control characters of the form 1493e1db26aSLionel Sambuc.Sm off 1503e1db26aSLionel Sambuc.Sq No ^ Ar character 1513e1db26aSLionel Sambuc.Sm on 1523e1db26aSLionel Sambuc.Po 153*0a6a1f1dSLionel Sambuce.g.\& 1543e1db26aSLionel Sambuc.Sq ^A 1553e1db26aSLionel Sambuc.Pc , 1563e1db26aSLionel Sambucand the following backslashed escape sequences: 1573e1db26aSLionel Sambuc.Pp 1583e1db26aSLionel Sambuc.Bl -tag -compact -offset indent -width 4n 1593e1db26aSLionel Sambuc.It Ic \ea 1603e1db26aSLionel SambucBell 1613e1db26aSLionel Sambuc.It Ic \eb 1623e1db26aSLionel SambucBackspace 1633e1db26aSLionel Sambuc.It Ic \ee 1643e1db26aSLionel SambucEscape 1653e1db26aSLionel Sambuc.It Ic \ef 1663e1db26aSLionel SambucFormfeed 1673e1db26aSLionel Sambuc.It Ic \en 1683e1db26aSLionel SambucNewline 1693e1db26aSLionel Sambuc.It Ic \er 1703e1db26aSLionel SambucCarriage return 1713e1db26aSLionel Sambuc.It Ic \et 1723e1db26aSLionel SambucHorizontal tab 1733e1db26aSLionel Sambuc.It Ic \ev 1743e1db26aSLionel SambucVertical tab 1753e1db26aSLionel Sambuc.Sm off 1763e1db26aSLionel Sambuc.It Sy \e Ar nnn 1773e1db26aSLionel Sambuc.Sm on 1783e1db26aSLionel SambucThe ASCII character corresponding to the octal number 1793e1db26aSLionel Sambuc.Ar nnn . 1803e1db26aSLionel Sambuc.El 1813e1db26aSLionel Sambuc.Pp 1823e1db26aSLionel Sambuc.Sq \e 1833e1db26aSLionel Sambucnullifies the special meaning of the following character, 1843e1db26aSLionel Sambucif it has any, notably 1853e1db26aSLionel Sambuc.Sq \e 1863e1db26aSLionel Sambucand 1873e1db26aSLionel Sambuc.Sq ^ . 1883e1db26aSLionel Sambuc.It Ic echotc Oo Fl sv Oc Ar arg Ar ... 1893e1db26aSLionel SambucExercise terminal capabilities given in 190*0a6a1f1dSLionel Sambuc.Ar arg ... . 1913e1db26aSLionel SambucIf 1923e1db26aSLionel Sambuc.Ar arg 1933e1db26aSLionel Sambucis 1943e1db26aSLionel Sambuc.Sq baud , 1953e1db26aSLionel Sambuc.Sq cols , 1963e1db26aSLionel Sambuc.Sq lines , 1973e1db26aSLionel Sambuc.Sq rows , 1983e1db26aSLionel Sambuc.Sq meta , 1993e1db26aSLionel Sambucor 2003e1db26aSLionel Sambuc.Sq tabs , 2013e1db26aSLionel Sambucthe value of that capability is printed, with 2023e1db26aSLionel Sambuc.Dq yes 2033e1db26aSLionel Sambucor 2043e1db26aSLionel Sambuc.Dq no 2053e1db26aSLionel Sambucindicating that the terminal does or does not have that capability. 2063e1db26aSLionel Sambuc.Pp 2073e1db26aSLionel Sambuc.Fl s 2083e1db26aSLionel Sambucreturns an empty string for non-existent capabilities, rather than 2093e1db26aSLionel Sambuccausing an error. 2103e1db26aSLionel Sambuc.Fl v 2113e1db26aSLionel Sambuccauses messages to be verbose. 2123e1db26aSLionel Sambuc.It Ic edit Op Li on | Li off 2133e1db26aSLionel SambucEnable or disable the 2143e1db26aSLionel Sambuc.Nm editline 2153e1db26aSLionel Sambucfunctionality in a program. 2163e1db26aSLionel Sambuc.It Ic history Ar list | Ar size Dv n | Ar unique Dv n 2173e1db26aSLionel SambucThe 2183e1db26aSLionel Sambuc.Ar list 2193e1db26aSLionel Sambuccommand lists all entries in the history. 2203e1db26aSLionel SambucThe 2213e1db26aSLionel Sambuc.Ar size 2223e1db26aSLionel Sambuccommand sets the history size to 2233e1db26aSLionel Sambuc.Dv n 2243e1db26aSLionel Sambucentries. 2253e1db26aSLionel SambucThe 2263e1db26aSLionel Sambuc.Ar unique 2273e1db26aSLionel Sambuccommand controls if history should keep duplicate entries. 2283e1db26aSLionel SambucIf 2293e1db26aSLionel Sambuc.Dv n 2303e1db26aSLionel Sambucis non zero, only keep unique history entries. 2313e1db26aSLionel SambucIf 2323e1db26aSLionel Sambuc.Dv n 2333e1db26aSLionel Sambucis zero, then keep all entries (the default). 2343e1db26aSLionel Sambuc.It Ic settc Ar cap Ar val 2353e1db26aSLionel SambucSet the terminal capability 2363e1db26aSLionel Sambuc.Ar cap 2373e1db26aSLionel Sambucto 2383e1db26aSLionel Sambuc.Ar val , 2393e1db26aSLionel Sambucas defined in 2403e1db26aSLionel Sambuc.Xr termcap 5 . 2413e1db26aSLionel SambucNo sanity checking is done. 2423e1db26aSLionel Sambuc.It Ic setty Oo Fl a Oc Oo Fl d Oc Oo Fl q Oc Oo Fl x Oc Oo Ar +mode Oc \ 2433e1db26aSLionel SambucOo Ar -mode Oc Oo Ar mode Oc Oo Ar char=c Oc 2443e1db26aSLionel SambucControl which tty modes that 2453e1db26aSLionel Sambuc.Nm 2463e1db26aSLionel Sambucwon't allow the user to change. 2473e1db26aSLionel Sambuc.Fl d , 2483e1db26aSLionel Sambuc.Fl q 2493e1db26aSLionel Sambucor 2503e1db26aSLionel Sambuc.Fl x 2513e1db26aSLionel Sambuctells 2523e1db26aSLionel Sambuc.Ic setty 2533e1db26aSLionel Sambucto act on the 2543e1db26aSLionel Sambuc.Sq edit , 2553e1db26aSLionel Sambuc.Sq quote 2563e1db26aSLionel Sambucor 2573e1db26aSLionel Sambuc.Sq execute 2583e1db26aSLionel Sambucset of tty modes respectively; defaulting to 2593e1db26aSLionel Sambuc.Fl x . 2603e1db26aSLionel Sambuc.Pp 2613e1db26aSLionel SambucWithout other arguments, 2623e1db26aSLionel Sambuc.Ic setty 2633e1db26aSLionel Sambuclists the modes in the chosen set which are fixed on 2643e1db26aSLionel Sambuc.Po 2653e1db26aSLionel Sambuc.Sq +mode 2663e1db26aSLionel Sambuc.Pc 2673e1db26aSLionel Sambucor off 2683e1db26aSLionel Sambuc.Po 2693e1db26aSLionel Sambuc.Sq -mode 2703e1db26aSLionel Sambuc.Pc . 2713e1db26aSLionel Sambuc.Fl a 2723e1db26aSLionel Sambuclists all tty modes in the chosen set regardless of the setting. 2733e1db26aSLionel SambucWith 2743e1db26aSLionel Sambuc.Ar +mode , 2753e1db26aSLionel Sambuc.Ar -mode 2763e1db26aSLionel Sambucor 2773e1db26aSLionel Sambuc.Ar mode , 2783e1db26aSLionel Sambucfixes 2793e1db26aSLionel Sambuc.Ar mode 2803e1db26aSLionel Sambucon or off or removes control of 2813e1db26aSLionel Sambuc.Ar mode 2823e1db26aSLionel Sambucin the chosen set. 2833e1db26aSLionel Sambuc.Pp 2843e1db26aSLionel Sambuc.Ic Setty 2853e1db26aSLionel Sambuccan also be used to set tty characters to particular values using 2863e1db26aSLionel Sambuc.Ar char=value . 2873e1db26aSLionel SambucIf 2883e1db26aSLionel Sambuc.Ar value 2893e1db26aSLionel Sambucis empty 2903e1db26aSLionel Sambucthen the character is set to 2913e1db26aSLionel Sambuc.Dv _POSIX_VDISABLE . 292*0a6a1f1dSLionel Sambuc.It Ic telltc 293*0a6a1f1dSLionel SambucList the values of all the terminal capabilities (see 294*0a6a1f1dSLionel Sambuc.Xr termcap 5 ) . 2953e1db26aSLionel Sambuc.El 2963e1db26aSLionel Sambuc.Sh EDITOR COMMANDS 2973e1db26aSLionel SambucThe following editor commands are available for use in key bindings: 2983e1db26aSLionel Sambuc.\" Section automatically generated with makelist 2993e1db26aSLionel Sambuc.Bl -tag -width 4n 3003e1db26aSLionel Sambuc.It Ic vi-paste-next 3013e1db26aSLionel SambucVi paste previous deletion to the right of the cursor. 3023e1db26aSLionel Sambuc.It Ic vi-paste-prev 3033e1db26aSLionel SambucVi paste previous deletion to the left of the cursor. 304*0a6a1f1dSLionel Sambuc.It Ic vi-prev-big-word 3053e1db26aSLionel SambucVi move to the previous space delimited word. 3063e1db26aSLionel Sambuc.It Ic vi-prev-word 3073e1db26aSLionel SambucVi move to the previous word. 308*0a6a1f1dSLionel Sambuc.It Ic vi-next-big-word 3093e1db26aSLionel SambucVi move to the next space delimited word. 3103e1db26aSLionel Sambuc.It Ic vi-next-word 3113e1db26aSLionel SambucVi move to the next word. 3123e1db26aSLionel Sambuc.It Ic vi-change-case 3133e1db26aSLionel SambucVi change case of character under the cursor and advance one character. 3143e1db26aSLionel Sambuc.It Ic vi-change-meta 3153e1db26aSLionel SambucVi change prefix command. 3163e1db26aSLionel Sambuc.It Ic vi-insert-at-bol 3173e1db26aSLionel SambucVi enter insert mode at the beginning of line. 3183e1db26aSLionel Sambuc.It Ic vi-replace-char 3193e1db26aSLionel SambucVi replace character under the cursor with the next character typed. 3203e1db26aSLionel Sambuc.It Ic vi-replace-mode 3213e1db26aSLionel SambucVi enter replace mode. 3223e1db26aSLionel Sambuc.It Ic vi-substitute-char 3233e1db26aSLionel SambucVi replace character under the cursor and enter insert mode. 3243e1db26aSLionel Sambuc.It Ic vi-substitute-line 3253e1db26aSLionel SambucVi substitute entire line. 3263e1db26aSLionel Sambuc.It Ic vi-change-to-eol 3273e1db26aSLionel SambucVi change to end of line. 3283e1db26aSLionel Sambuc.It Ic vi-insert 3293e1db26aSLionel SambucVi enter insert mode. 3303e1db26aSLionel Sambuc.It Ic vi-add 3313e1db26aSLionel SambucVi enter insert mode after the cursor. 3323e1db26aSLionel Sambuc.It Ic vi-add-at-eol 3333e1db26aSLionel SambucVi enter insert mode at end of line. 3343e1db26aSLionel Sambuc.It Ic vi-delete-meta 3353e1db26aSLionel SambucVi delete prefix command. 336*0a6a1f1dSLionel Sambuc.It Ic vi-end-big-word 3373e1db26aSLionel SambucVi move to the end of the current space delimited word. 338*0a6a1f1dSLionel Sambuc.It Ic vi-end-word 3393e1db26aSLionel SambucVi move to the end of the current word. 3403e1db26aSLionel Sambuc.It Ic vi-undo 3413e1db26aSLionel SambucVi undo last change. 3423e1db26aSLionel Sambuc.It Ic vi-command-mode 3433e1db26aSLionel SambucVi enter command mode (use alternative key bindings). 3443e1db26aSLionel Sambuc.It Ic vi-zero 3453e1db26aSLionel SambucVi move to the beginning of line. 3463e1db26aSLionel Sambuc.It Ic vi-delete-prev-char 3473e1db26aSLionel SambucVi move to previous character (backspace). 3483e1db26aSLionel Sambuc.It Ic vi-list-or-eof 3493e1db26aSLionel SambucVi list choices for completion or indicate end of file if empty line. 3503e1db26aSLionel Sambuc.It Ic vi-kill-line-prev 3513e1db26aSLionel SambucVi cut from beginning of line to cursor. 3523e1db26aSLionel Sambuc.It Ic vi-search-prev 3533e1db26aSLionel SambucVi search history previous. 3543e1db26aSLionel Sambuc.It Ic vi-search-next 3553e1db26aSLionel SambucVi search history next. 3563e1db26aSLionel Sambuc.It Ic vi-repeat-search-next 3573e1db26aSLionel SambucVi repeat current search in the same search direction. 3583e1db26aSLionel Sambuc.It Ic vi-repeat-search-prev 3593e1db26aSLionel SambucVi repeat current search in the opposite search direction. 3603e1db26aSLionel Sambuc.It Ic vi-next-char 3613e1db26aSLionel SambucVi move to the character specified next. 3623e1db26aSLionel Sambuc.It Ic vi-prev-char 3633e1db26aSLionel SambucVi move to the character specified previous. 3643e1db26aSLionel Sambuc.It Ic vi-to-next-char 3653e1db26aSLionel SambucVi move up to the character specified next. 3663e1db26aSLionel Sambuc.It Ic vi-to-prev-char 3673e1db26aSLionel SambucVi move up to the character specified previous. 3683e1db26aSLionel Sambuc.It Ic vi-repeat-next-char 3693e1db26aSLionel SambucVi repeat current character search in the same search direction. 3703e1db26aSLionel Sambuc.It Ic vi-repeat-prev-char 3713e1db26aSLionel SambucVi repeat current character search in the opposite search direction. 372*0a6a1f1dSLionel Sambuc.It Ic vi-match 373*0a6a1f1dSLionel SambucVi go to matching () {} or []. 374*0a6a1f1dSLionel Sambuc.It Ic vi-undo-line 375*0a6a1f1dSLionel SambucVi undo all changes to line. 376*0a6a1f1dSLionel Sambuc.It Ic vi-to-column 377*0a6a1f1dSLionel SambucVi go to specified column. 378*0a6a1f1dSLionel Sambuc.It Ic vi-yank-end 379*0a6a1f1dSLionel SambucVi yank to end of line. 380*0a6a1f1dSLionel Sambuc.It Ic vi-yank 381*0a6a1f1dSLionel SambucVi yank. 382*0a6a1f1dSLionel Sambuc.It Ic vi-comment-out 383*0a6a1f1dSLionel SambucVi comment out current command. 384*0a6a1f1dSLionel Sambuc.It Ic vi-alias 385*0a6a1f1dSLionel SambucVi include shell alias. 386*0a6a1f1dSLionel Sambuc.It Ic vi-to-history-line 387*0a6a1f1dSLionel SambucVi go to specified history file line.. 388*0a6a1f1dSLionel Sambuc.It Ic vi-histedit 389*0a6a1f1dSLionel SambucVi edit history line with vi. 390*0a6a1f1dSLionel Sambuc.It Ic vi-history-word 391*0a6a1f1dSLionel SambucVi append word from previous input line. 392*0a6a1f1dSLionel Sambuc.It Ic vi-redo 393*0a6a1f1dSLionel SambucVi redo last non-motion command. 3943e1db26aSLionel Sambuc.It Ic em-delete-or-list 3953e1db26aSLionel SambucDelete character under cursor or list completions if at end of line. 3963e1db26aSLionel Sambuc.It Ic em-delete-next-word 3973e1db26aSLionel SambucCut from cursor to end of current word. 3983e1db26aSLionel Sambuc.It Ic em-yank 3993e1db26aSLionel SambucPaste cut buffer at cursor position. 4003e1db26aSLionel Sambuc.It Ic em-kill-line 4013e1db26aSLionel SambucCut the entire line and save in cut buffer. 4023e1db26aSLionel Sambuc.It Ic em-kill-region 4033e1db26aSLionel SambucCut area between mark and cursor and save in cut buffer. 4043e1db26aSLionel Sambuc.It Ic em-copy-region 4053e1db26aSLionel SambucCopy area between mark and cursor to cut buffer. 4063e1db26aSLionel Sambuc.It Ic em-gosmacs-transpose 4073e1db26aSLionel SambucExchange the two characters before the cursor. 4083e1db26aSLionel Sambuc.It Ic em-next-word 4093e1db26aSLionel SambucMove next to end of current word. 4103e1db26aSLionel Sambuc.It Ic em-upper-case 4113e1db26aSLionel SambucUppercase the characters from cursor to end of current word. 4123e1db26aSLionel Sambuc.It Ic em-capitol-case 4133e1db26aSLionel SambucCapitalize the characters from cursor to end of current word. 4143e1db26aSLionel Sambuc.It Ic em-lower-case 4153e1db26aSLionel SambucLowercase the characters from cursor to end of current word. 4163e1db26aSLionel Sambuc.It Ic em-set-mark 4173e1db26aSLionel SambucSet the mark at cursor. 4183e1db26aSLionel Sambuc.It Ic em-exchange-mark 4193e1db26aSLionel SambucExchange the cursor and mark. 4203e1db26aSLionel Sambuc.It Ic em-universal-argument 4213e1db26aSLionel SambucUniversal argument (argument times 4). 4223e1db26aSLionel Sambuc.It Ic em-meta-next 4233e1db26aSLionel SambucAdd 8th bit to next character typed. 4243e1db26aSLionel Sambuc.It Ic em-toggle-overwrite 4253e1db26aSLionel SambucSwitch from insert to overwrite mode or vice versa. 4263e1db26aSLionel Sambuc.It Ic em-copy-prev-word 4273e1db26aSLionel SambucCopy current word to cursor. 4283e1db26aSLionel Sambuc.It Ic em-inc-search-next 4293e1db26aSLionel SambucEmacs incremental next search. 4303e1db26aSLionel Sambuc.It Ic em-inc-search-prev 4313e1db26aSLionel SambucEmacs incremental reverse search. 4323e1db26aSLionel Sambuc.It Ic ed-end-of-file 4333e1db26aSLionel SambucIndicate end of file. 4343e1db26aSLionel Sambuc.It Ic ed-insert 4353e1db26aSLionel SambucAdd character to the line. 4363e1db26aSLionel Sambuc.It Ic ed-delete-prev-word 4373e1db26aSLionel SambucDelete from beginning of current word to cursor. 4383e1db26aSLionel Sambuc.It Ic ed-delete-next-char 4393e1db26aSLionel SambucDelete character under cursor. 4403e1db26aSLionel Sambuc.It Ic ed-kill-line 4413e1db26aSLionel SambucCut to the end of line. 4423e1db26aSLionel Sambuc.It Ic ed-move-to-end 4433e1db26aSLionel SambucMove cursor to the end of line. 4443e1db26aSLionel Sambuc.It Ic ed-move-to-beg 4453e1db26aSLionel SambucMove cursor to the beginning of line. 4463e1db26aSLionel Sambuc.It Ic ed-transpose-chars 4473e1db26aSLionel SambucExchange the character to the left of the cursor with the one under it. 4483e1db26aSLionel Sambuc.It Ic ed-next-char 4493e1db26aSLionel SambucMove to the right one character. 4503e1db26aSLionel Sambuc.It Ic ed-prev-word 4513e1db26aSLionel SambucMove to the beginning of the current word. 4523e1db26aSLionel Sambuc.It Ic ed-prev-char 4533e1db26aSLionel SambucMove to the left one character. 4543e1db26aSLionel Sambuc.It Ic ed-quoted-insert 4553e1db26aSLionel SambucAdd the next character typed verbatim. 4563e1db26aSLionel Sambuc.It Ic ed-digit 4573e1db26aSLionel SambucAdds to argument or enters a digit. 4583e1db26aSLionel Sambuc.It Ic ed-argument-digit 4593e1db26aSLionel SambucDigit that starts argument. 4603e1db26aSLionel Sambuc.It Ic ed-unassigned 4613e1db26aSLionel SambucIndicates unbound character. 4623e1db26aSLionel Sambuc.It Ic ed-tty-sigint 4633e1db26aSLionel SambucTty interrupt character. 4643e1db26aSLionel Sambuc.It Ic ed-tty-dsusp 4653e1db26aSLionel SambucTty delayed suspend character. 4663e1db26aSLionel Sambuc.It Ic ed-tty-flush-output 4673e1db26aSLionel SambucTty flush output characters. 4683e1db26aSLionel Sambuc.It Ic ed-tty-sigquit 4693e1db26aSLionel SambucTty quit character. 4703e1db26aSLionel Sambuc.It Ic ed-tty-sigtstp 4713e1db26aSLionel SambucTty suspend character. 4723e1db26aSLionel Sambuc.It Ic ed-tty-stop-output 4733e1db26aSLionel SambucTty disallow output characters. 4743e1db26aSLionel Sambuc.It Ic ed-tty-start-output 4753e1db26aSLionel SambucTty allow output characters. 4763e1db26aSLionel Sambuc.It Ic ed-newline 4773e1db26aSLionel SambucExecute command. 4783e1db26aSLionel Sambuc.It Ic ed-delete-prev-char 4793e1db26aSLionel SambucDelete the character to the left of the cursor. 4803e1db26aSLionel Sambuc.It Ic ed-clear-screen 4813e1db26aSLionel SambucClear screen leaving current line at the top. 4823e1db26aSLionel Sambuc.It Ic ed-redisplay 4833e1db26aSLionel SambucRedisplay everything. 4843e1db26aSLionel Sambuc.It Ic ed-start-over 4853e1db26aSLionel SambucErase current line and start from scratch. 4863e1db26aSLionel Sambuc.It Ic ed-sequence-lead-in 4873e1db26aSLionel SambucFirst character in a bound sequence. 4883e1db26aSLionel Sambuc.It Ic ed-prev-history 4893e1db26aSLionel SambucMove to the previous history line. 4903e1db26aSLionel Sambuc.It Ic ed-next-history 4913e1db26aSLionel SambucMove to the next history line. 4923e1db26aSLionel Sambuc.It Ic ed-search-prev-history 4933e1db26aSLionel SambucSearch previous in history for a line matching the current. 4943e1db26aSLionel Sambuc.It Ic ed-search-next-history 4953e1db26aSLionel SambucSearch next in history for a line matching the current. 4963e1db26aSLionel Sambuc.It Ic ed-prev-line 4973e1db26aSLionel SambucMove up one line. 4983e1db26aSLionel Sambuc.It Ic ed-next-line 4993e1db26aSLionel SambucMove down one line. 5003e1db26aSLionel Sambuc.It Ic ed-command 5013e1db26aSLionel SambucEditline extended command. 5023e1db26aSLionel Sambuc.El 5033e1db26aSLionel Sambuc.\" End of section automatically generated with makelist 50484d9c625SLionel Sambuc.Sh FILES 50584d9c625SLionel Sambuc.Bl -tag -width "~/.editrcXXX" 50684d9c625SLionel Sambuc.It Pa ~/.editrc 50784d9c625SLionel SambucUser configuration file for the 50884d9c625SLionel Sambuc.Xr editline 3 50984d9c625SLionel Sambuclibrary. 51084d9c625SLionel Sambuc.El 5113e1db26aSLionel Sambuc.Sh SEE ALSO 5123e1db26aSLionel Sambuc.Xr editline 3 , 5133e1db26aSLionel Sambuc.Xr regex 3 , 5143e1db26aSLionel Sambuc.Xr termcap 5 5153e1db26aSLionel Sambuc.Sh AUTHORS 516*0a6a1f1dSLionel Sambuc.An -nosplit 5173e1db26aSLionel SambucThe 5183e1db26aSLionel Sambuc.Nm editline 519*0a6a1f1dSLionel Sambuclibrary was written by 520*0a6a1f1dSLionel Sambuc.An Christos Zoulas , 521*0a6a1f1dSLionel Sambucand this manual was written by 522*0a6a1f1dSLionel Sambuc.An Luke Mewburn , 5233e1db26aSLionel Sambucwith some sections inspired by 5243e1db26aSLionel Sambuc.Xr tcsh 1 . 525