From 888fb4978fed2ffcf2bb179cdad3d328ebe9e5e7 Mon Sep 17 00:00:00 2001 From: CSRG Date: Fri, 2 Dec 1994 01:50:21 -0800 Subject: [PATCH] BSD 4_4_Lite2 development Work on file usr/src/contrib/nvi.1.43/USD.doc/vi.man/vi.0.ps Synthesized-from: CSRG/cd3/4.4BSD-Lite2 --- .../contrib/nvi.1.43/USD.doc/vi.man/vi.0.ps | 1075 +++++++++++++++++ 1 file changed, 1075 insertions(+) create mode 100644 usr/src/contrib/nvi.1.43/USD.doc/vi.man/vi.0.ps diff --git a/usr/src/contrib/nvi.1.43/USD.doc/vi.man/vi.0.ps b/usr/src/contrib/nvi.1.43/USD.doc/vi.man/vi.0.ps new file mode 100644 index 0000000000..625f81856e --- /dev/null +++ b/usr/src/contrib/nvi.1.43/USD.doc/vi.man/vi.0.ps @@ -0,0 +1,1075 @@ +%!PS-Adobe-3.0 +%%Creator: groff version 1.08 +%%DocumentNeededResources: font Times-Roman +%%+ font Times-Bold +%%+ font Courier-Bold +%%+ font Courier-Oblique +%%+ font Courier +%%+ font Times-Italic +%%+ font Symbol +%%DocumentSuppliedResources: procset grops 1.08 0 +%%Pages: 14 +%%PageOrder: Ascend +%%Orientation: Portrait +%%EndComments +%%BeginProlog +%%BeginResource: procset grops 1.08 0 +/setpacking where{ +pop +currentpacking +true setpacking +}if +/grops 120 dict dup begin +/SC 32 def +/A/show load def +/B{0 SC 3 -1 roll widthshow}bind def +/C{0 exch ashow}bind def +/D{0 exch 0 SC 5 2 roll awidthshow}bind def +/E{0 rmoveto show}bind def +/F{0 rmoveto 0 SC 3 -1 roll widthshow}bind def +/G{0 rmoveto 0 exch ashow}bind def +/H{0 rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def +/I{0 exch rmoveto show}bind def +/J{0 exch rmoveto 0 SC 3 -1 roll widthshow}bind def +/K{0 exch rmoveto 0 exch ashow}bind def +/L{0 exch rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def +/M{rmoveto show}bind def +/N{rmoveto 0 SC 3 -1 roll widthshow}bind def +/O{rmoveto 0 exch ashow}bind def +/P{rmoveto 0 exch 0 SC 5 2 roll awidthshow}bind def +/Q{moveto show}bind def +/R{moveto 0 SC 3 -1 roll widthshow}bind def +/S{moveto 0 exch ashow}bind def +/T{moveto 0 exch 0 SC 5 2 roll awidthshow}bind def +/SF{ +findfont exch +[exch dup 0 exch 0 exch neg 0 0]makefont +dup setfont +[exch/setfont cvx]cvx bind def +}bind def +/MF{ +findfont +[5 2 roll +0 3 1 roll +neg 0 0]makefont +dup setfont +[exch/setfont cvx]cvx bind def +}bind def +/level0 0 def +/RES 0 def +/PL 0 def +/LS 0 def +/PLG{ +gsave newpath clippath pathbbox grestore +exch pop add exch pop +}bind def +/BP{ +/level0 save def +1 setlinecap +1 setlinejoin +72 RES div dup scale +LS{ +90 rotate +}{ +0 PL translate +}ifelse +1 -1 scale +}bind def +/EP{ +level0 restore +showpage +}bind def +/DA{ +newpath arcn stroke +}bind def +/SN{ +transform +.25 sub exch .25 sub exch +round .25 add exch round .25 add exch +itransform +}bind def +/DL{ +SN +moveto +SN +lineto stroke +}bind def +/DC{ +newpath 0 360 arc closepath +}bind def +/TM matrix def +/DE{ +TM currentmatrix pop +translate scale newpath 0 0 .5 0 360 arc closepath +TM setmatrix +}bind def +/RC/rcurveto load def +/RL/rlineto load def +/ST/stroke load def +/MT/moveto load def +/CL/closepath load def +/FL{ +currentgray exch setgray fill setgray +}bind def +/BL/fill load def +/LW/setlinewidth load def +/RE{ +findfont +dup maxlength 1 index/FontName known not{1 add}if dict begin +{ +1 index/FID ne{def}{pop pop}ifelse +}forall +/Encoding exch def +dup/FontName exch def +currentdict end definefont pop +}bind def +/DEFS 0 def +/EBEGIN{ +moveto +DEFS begin +}bind def +/EEND/end load def +/CNT 0 def +/level1 0 def +/PBEGIN{ +/level1 save def +translate +div 3 1 roll div exch scale +neg exch neg exch translate +0 setgray +0 setlinecap +1 setlinewidth +0 setlinejoin +10 setmiterlimit +[]0 setdash +/setstrokeadjust where{ +pop +false setstrokeadjust +}if +/setoverprint where{ +pop +false setoverprint +}if +newpath +/CNT countdictstack def +userdict begin +/showpage{}def +}bind def +/PEND{ +clear +countdictstack CNT sub{end}repeat +level1 restore +}bind def +end def +/setpacking where{ +pop +setpacking +}if +%%EndResource +%%IncludeResource: font Times-Roman +%%IncludeResource: font Times-Bold +%%IncludeResource: font Courier-Bold +%%IncludeResource: font Courier-Oblique +%%IncludeResource: font Courier +%%IncludeResource: font Times-Italic +%%IncludeResource: font Symbol +grops begin/DEFS 1 dict def DEFS begin/u{.001 mul}bind def end/RES 72 def/PL +792 def/LS false def/ENC0[/asciicircum/asciitilde/Scaron/Zcaron/scaron/zcaron +/Ydieresis/trademark/quotesingle/.notdef/.notdef/.notdef/.notdef/.notdef +/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef +/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/space +/exclam/quotedbl/numbersign/dollar/percent/ampersand/quoteright/parenleft +/parenright/asterisk/plus/comma/hyphen/period/slash/zero/one/two/three/four +/five/six/seven/eight/nine/colon/semicolon/less/equal/greater/question/at/A/B/C +/D/E/F/G/H/I/J/K/L/M/N/O/P/Q/R/S/T/U/V/W/X/Y/Z/bracketleft/backslash +/bracketright/circumflex/underscore/quoteleft/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q +/r/s/t/u/v/w/x/y/z/braceleft/bar/braceright/tilde/.notdef/quotesinglbase +/guillemotleft/guillemotright/bullet/florin/fraction/perthousand/dagger +/daggerdbl/endash/emdash/ff/fi/fl/ffi/ffl/dotlessi/dotlessj/grave/hungarumlaut +/dotaccent/breve/caron/ring/ogonek/quotedblleft/quotedblright/oe/lslash +/quotedblbase/OE/Lslash/.notdef/exclamdown/cent/sterling/currency/yen/brokenbar +/section/dieresis/copyright/ordfeminine/guilsinglleft/logicalnot/minus +/registered/macron/degree/plusminus/twosuperior/threesuperior/acute/mu +/paragraph/periodcentered/cedilla/onesuperior/ordmasculine/guilsinglright +/onequarter/onehalf/threequarters/questiondown/Agrave/Aacute/Acircumflex/Atilde +/Adieresis/Aring/AE/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave/Iacute +/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex/Otilde/Odieresis +/multiply/Oslash/Ugrave/Uacute/Ucircumflex/Udieresis/Yacute/Thorn/germandbls +/agrave/aacute/acircumflex/atilde/adieresis/aring/ae/ccedilla/egrave/eacute +/ecircumflex/edieresis/igrave/iacute/icircumflex/idieresis/eth/ntilde/ograve +/oacute/ocircumflex/otilde/odieresis/divide/oslash/ugrave/uacute/ucircumflex +/udieresis/yacute/thorn/ydieresis]def/Times-Italic@0 ENC0/Times-Italic RE +/Courier@0 ENC0/Courier RE/Courier-Oblique@0 ENC0/Courier-Oblique RE +/Courier-Bold@0 ENC0/Courier-Bold RE/Times-Bold@0 ENC0/Times-Bold RE +/Times-Roman@0 ENC0/Times-Roman RE +%%EndProlog +%%Page: 1 1 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R/F1 10/Times-Bold@0 SF -.2(NA)72 +108 S(ME).2 E/F2 10/Courier-Bold@0 SF(ex, vi, view)102 120 Q F0 2.52.5 G +-.15(ex)187.42 120 S 2.5(te).15 G(ditors)206.43 120 Q F1(SYNOPSIS)72 144 Q F2 +(ex)102 156 Q F0([)3.333 E F2(\255eFRrsv)2.499 E F0 3.333(][).833 G F2 +-.834 E/F3 10/Courier-Oblique@0 SF(cmd)6 E F0 3.333(][).833 G F2-.834 E +F3(tag)6 E F0 3.333(][).833 G F2-.834 E F3(size)6 E F0 3.333(][).833 G F3 +(file ...)330.796 156 Q F0(]).833 E F2(vi)102 168 Q F0([)3.333 E F2(\255eFlRrv) +2.499 E F0 3.333(][).833 G F2-.834 E F3(cmd)6 E F0 3.333(][).833 G F2 +-.834 E F3(tag)6 E F0 3.333(][).833 G F2-.834 E F3(size)6 E F0 +3.333(][).833 G F3(file ...)330.796 168 Q F0(]).833 E F2(view)102 180 Q F0([) +3.333 E F2(\255eFRrv)2.499 E F0 3.333(][).833 G F2-.834 E F3(cmd)6 E F0 +3.333(][).833 G F2-.834 E F3(tag)6 E F0 3.333(][).833 G F2-.834 E +F3(size)6 E F0 3.333(][).833 G F3(file ...)336.796 180 Q F0(]).833 E F1 +(DESCRIPTION)72 204 Q F2(Vi)102 216 Q F0 .176(is a screen oriented te)2.676 F +.176(xt editor)-.15 F(.)-.55 E F2(Ex)5.176 E F0 .176(is a line-oriented te) +2.676 F .175(xt editor)-.15 F(.)-.55 E F2(Ex)5.175 E F0(and)2.675 E F2(vi)2.675 +E F0 .175(are dif)2.675 F .175(ferent interf)-.25 F .175(aces to the)-.1 F .56 +(same program, and it is possible to switch back and forth during an edit sess\ +ion.)102 228 R F2(View)5.561 E F0 .561(is the equi)3.061 F -.25(va)-.25 G .561 +(lent of).25 F(using the)102 240 Q F24.166 E F0(\(read-only\) option of) +2.5 E F2(vi)2.5 E F0(.)A .216(This manual page is the one pro)102 258 R .215 +(vided with the)-.15 F F2(nex/nvi)2.715 E F0 -.15(ve)2.715 G .215 +(rsions of the).15 F F2(ex/vi)2.715 E F0(te)2.715 E .215(xt editors.)-.15 F F2 +(Nex/nvi)5.215 E F0(are)2.715 E 1.937(intended as b)102 270 R(ug-for)-.2 E(-b) +-.2 E 1.937(ug compatible replacements for the original F)-.2 F 1.938 +(ourth Berk)-.15 F(ele)-.1 E 4.438(yS)-.15 G(oftw)456.982 270 Q 1.938 +(are Distrib)-.1 F(ution)-.2 E(\(4BSD\))102 282 Q F2(ex)3.008 E F0(and)3.008 E +F2(vi)3.008 E F0 3.008(programs. F)3.008 F .508 +(or the rest of this manual page,)-.15 F F2(nex/nvi)3.008 E F0 .507 +(is used only when it')3.008 F 3.007(sn)-.55 G(ecessary)506.13 282 Q +(to distinguish it from the historic implementations of)102 294 Q F2(ex/vi)2.5 +E F0(.)A .961(This manual page is intended for users already f)102 312 R .961 +(amiliar with)-.1 F F2(ex/vi)3.461 E F0 3.462(.A)C -.15(ny)397.982 312 S .962 +(one else should almost certainly).15 F .582 +(read a good tutorial on the editor before this manual page.)102 324 R .582 +(If you')5.582 F .581(re in an unf)-.5 F .581(amiliar en)-.1 F .581 +(vironment, and you)-.4 F .799(absolutely ha)102 336 R 1.099 -.15(ve t)-.2 H +3.299(og).15 G .799(et w)184.317 336 R .799(ork done immediately)-.1 F 3.299 +(,r)-.65 G .8(ead the section after the options description, entitled `)299.803 +336 R(`F)-.74 E(ast)-.15 E(Startup')102 348 Q('. It')-.74 E 2.5(sp)-.55 G +(robably enough to get you going.)162.09 348 Q(The follo)102 366 Q +(wing options are a)-.25 E -.25(va)-.2 G(ilable:).25 E F2103.666 384 Q F0 +(Ex)137 384 Q(ecute)-.15 E F3(cmd)2.675 E F0 .175 +(immediately after starting the edit session.)2.675 F -.15(Pa)5.175 G .174 +(rticularly useful for initial positioning in).15 F .624(the \214le, ho)137 396 +R(we)-.25 E -.15(ve)-.25 G(r).15 E F3(cmd)3.124 E F0 .625 +(is not limited to positioning commands.)3.124 F .625 +(This is the POSIX 1003.2 interf)5.625 F(ace)-.1 E(for the historic `)137 408 Q +(`+cmd')-.74 E 2.5('s)-.74 G(yntax.)239.47 408 Q F2(Nex/nvi)5 E F0 +(supports both the old and ne)2.5 E 2.5(ws)-.25 G(yntax.)440.1 408 Q F2 +103.666 426 Q F0(Start editing in e)137 426 Q 2.5(xm)-.15 G +(ode, as if the command name were)218.52 426 Q F2(ex)2.5 E F0(.)A F2 +103.666 444 Q F0(Don')137 444 Q 2.677(tc)-.18 G(op)167.267 444 Q 2.677(yt)-.1 G +.177(he entire \214le when \214rst starting to edit.)187.624 444 R .177 +(\(The def)5.177 F .177(ault is to mak)-.1 F 2.677(eac)-.1 G(op)456.532 444 Q +2.676(yi)-.1 G 2.676(nc)476.888 444 S .176(ase someone)489.004 444 R +(else modi\214es the \214le during your edit session.\))137 456 Q F2 +103.666 474 Q F0(Start editing with the lisp and sho)137 474 Q +(wmatch options set.)-.25 E F2103.666 492 Q F0 .184 +(Start editing in read-only mode, as if the command name w)137 492 R(as)-.1 E +F2(view)2.685 E F0 2.685(,o)C 2.685(rt)421.415 492 S .185(he readonly option w) +430.21 492 R .185(as set.)-.1 F F2103.666 510 Q F0(Reco)137 510 Q -.15 +(ve)-.15 G 2.627(rt).15 G .127(he speci\214ed \214les, or)175.427 510 R 2.627 +(,i)-.4 G 2.627(fn)263.305 510 S 2.627<6f8c>274.262 510 S .127 +(les are speci\214ed, list the \214les that could be reco)287.449 510 R -.15 +(ve)-.15 G 2.626(red. If).15 F .126(no re-)2.626 F(co)137 522 Q -.15(ve)-.15 G +.4(rable \214les by the speci\214ed name e).15 F .401 +(xist, the \214le is edited as if the)-.15 F F24.567 E F0 .401 +(option had not been speci-)2.901 F(\214ed.)137 534 Q F2103.666 552 Q F0 +1.621(Enter batch mode; applicable only to)137 552 R F2(ex)4.121 E F0 1.621 +(edit sessions.)4.121 F 1.62(Batch mode is useful when running)6.621 F F2(ex) +4.12 E F0 2.647(scripts. Prompts,)137 564 R(informati)2.647 E .447 -.15(ve m) +-.25 H .147(essages and other user oriented message are turned of).15 F .148 +(f, and no start-)-.25 F .067(up \214les or en)137 576 R .067(vironmental v)-.4 +F .066(ariables are read.)-.25 F .066(This is the POSIX 1003.2 interf)5.066 F +.066(ace for the historic `)-.1 F(`\255')-.74 E(')-.74 E(ar)137 588 Q(gument.) +-.18 E F2(Nex/nvi)5 E F0(supports both the old and ne)2.5 E 2.5(ws)-.25 G +(yntax.)353 588 Q F2103.666 606 Q F0 +(Start editing at the speci\214ed tag.)137 606 Q(\(See)5 E/F4 10/Courier@0 SF +(ctags)2.5 E F0(\(1\)\).)A F2103.666 624 Q F0(Set the initial windo)137 +624 Q 2.5(ws)-.25 G(ize to the speci\214ed number of lines.)231.2 624 Q F2 +103.666 642 Q F0(Start editing in vi mode, as if the command name w)137 +642 Q(as)-.1 E F2(vi)2.5 E F0(or)2.5 E F2(view)2.5 E F0(.)A F2103.666 660 +Q F0(Reserv)137 660 Q(ed for X11 interf)-.15 E(aces.)-.1 E/F5 10/Times-Italic@0 +SF(No X11 support is curr)5 E(ently implemented.)-.37 E F0 .35 +(Command input for)102 678 R F2(ex/vi)2.85 E F0 .35 +(is read from the standard input.)2.85 F .35(In the)5.35 F F2(vi)2.85 E F0 +(interf)2.85 E .35(ace, it is an error if standard in-)-.1 F .343 +(put is not a terminal.)102 690 R .343(In the)5.343 F F2(ex)2.843 E F0(interf) +2.843 E .343(ace, if standard input is not a terminal,)-.1 F F2(ex)2.843 E F0 +.342(will read commands from it)2.843 F(re)102 702 Q -.05(ga)-.15 G .137 +(rdless, ho).05 F(we)-.25 E -.15(ve)-.25 G .937 -.4(r, t).15 H .137 +(he session will be a batch mode session, e).4 F .138(xactly as if the)-.15 F +F24.304 E F0 .138(option had been speci\214ed.)2.638 F 159.845(4.4BSD No) +72 750 R -.15(ve)-.15 G(mber 20, 1994).15 E(1)535 750 Q EP +%%Page: 2 2 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R/F1 10/Courier-Bold@0 SF(Ex/vi)102 +102 Q F0 -.15(ex)2.5 G +(its 0 on success, and greater than 0 if an error occurs.).15 E/F2 10 +/Times-Bold@0 SF -.9(FA)72 126 S 1.666(ST ST).9 F(AR)-.9 E(TUP)-.4 E F0 .467(T\ +his section will tell you the minimum amount that you need to do simple editin\ +g tasks using)102 138 R F1(vi)2.966 E F0 2.966(.I)C 2.966(fy)506.584 138 S(ou') +517.88 138 Q -.15(ve)-.5 G(ne)102 150 Q -.15(ve)-.25 G 3.453(ru).15 G .953 +(sed an)132.263 150 R 3.453(ys)-.15 G .953(creen editor before, you')170.679 +150 R .953(re lik)-.5 F .953(ely to ha)-.1 F 1.253 -.15(ve p)-.2 H .953 +(roblems e).15 F -.15(ve)-.25 G 3.453(nw).15 G .953 +(ith this simple introduction.)412.286 150 R(In)5.954 E +(that case you should \214nd someone that already kno)102 162 Q(ws)-.25 E F1 +(vi)2.5 E F0(and ha)2.5 E .3 -.15(ve t)-.2 H(hem w).15 E +(alk you through this section.)-.1 E F1(Vi)102 180 Q F0 .294 +(is a screen editor)2.794 F 5.294(.T)-.55 G .294(his means that it tak)198.51 +180 R .293 +(es up almost the entire screen, displaying part of the \214le on each)-.1 F +.001(screen line, e)102 192 R .001(xcept for the last line of the screen.)-.15 +F .002(The last line of the screen is used for you to gi)5.001 F .302 -.15 +(ve c)-.25 H(ommands).15 E(to)102 204 Q F1(vi)2.5 E F0 2.5(,a)C(nd for)133.72 +204 Q F1(vi)2.5 E F0(to gi)2.5 E .3 -.15(ve i)-.25 H(nformation to you.).15 E +.585(The other f)102 222 R .585(act that you need to understand is that)-.1 F +F1(vi)3.085 E F0 .585(is a modeful editor)3.085 F 3.085(,i)-.4 G .584 +(.e. you are either entering te)406.125 222 R .584(xt or)-.15 F .836(you are e) +102 234 R -.15(xe)-.15 G .836(cuting commands, and you ha).15 F 1.137 -.15 +(ve t)-.2 H 3.337(ob).15 G 3.337(ei)301.062 234 S 3.337(nt)311.619 234 S .837 +(he right mode to do one or the other)322.736 234 R 5.837(.Y)-.55 G .837 +(ou will be in)487.209 234 R 1.094 +(command mode when you \214rst start editing a \214le.)102 246 R 1.093 +(There are commands that switch you into input mode.)6.094 F .084 +(There is only one k)102 258 R .384 -.15(ey t)-.1 H .085(hat tak).15 F .085 +(es you out of input mode, and that is the k)-.1 F -.15(ey)-.1 G 5.085 +(.\()-.5 G -2.15 -.25(Ke y)449.895 258 T .085(names are written)2.835 F 1.473 +(using less-than and greater)102 270 R 1.473(-than signs, e.g.)-.2 F 1.473 +( means the `)6.473 F(`escape')-.74 E 3.973('k)-.74 G -.15(ey)420.59 +270 S 3.973(,u)-.5 G 1.473(sually labeled `)440.703 270 R(`esc')-.74 E 3.972 +('o)-.74 G(n)535 270 Q .553(your terminal')102 282 R 3.053(sk)-.55 G -.15(ey) +171.336 282 S 3.053(board.\) If).15 F(you')3.053 E .554(re e)-.5 F -.15(ve)-.25 +G 3.054(rc).15 G .554(onfused as to which mode you')277.45 282 R .554(re in, k) +-.5 F .554(eep entering the )-.1 F -.1(ke)102 294 S 2.615(yu)-.05 G +(ntil)123.805 294 Q F1(vi)2.615 E F0 .115(beeps at you.)2.615 F(\(Generally) +5.115 E(,)-.65 E F1(vi)2.615 E F0 .115 +(will beep at you if you try and do something that')2.615 F 2.614(sn)-.55 G +.114(ot allo)484.472 294 R 2.614(wed. It)-.25 F +(will also display error messages.\))102 306 Q 2.057 -.8(To s)102 324 T .457 +(tart editing a \214le, enter the command `).8 F(`)-.74 E/F3 10/Courier@0 SF +.458(vi file_name)B F0 -.74('')C 2.958(.T).74 G .458 +(he command you)470.204 324 R .333 +(should enter as soon as you start editing is `)102 336 R(`)-.74 E F3 .333 +(:set verbose showmode)B F0 -.74('')C 2.833(.T).74 G(his) +528.33 336 Q 1.441(will mak)102 348 R 3.941(et)-.1 G 1.441(he editor gi)149.782 +348 R 1.741 -.15(ve y)-.25 H 1.441(ou v).15 F 1.441 +(erbose error messages and display the current mode at the bottom of the)-.15 F +(screen.)102 360 Q(The commands to mo)102 378 Q .3 -.15(ve a)-.15 H +(round the \214le are:).15 E F2(h)102 390 Q F0(Mo)131 390 Q .3 -.15(ve t)-.15 H +(he cursor left one character).15 E(.)-.55 E F2(j)102 402 Q F0(Mo)131 402 Q .3 +-.15(ve t)-.15 H(he cursor do).15 E(wn one line.)-.25 E F2(k)102 414 Q F0(Mo) +131 414 Q .3 -.15(ve t)-.15 H(he cursor up one line.).15 E F2(l)102 426 Q F0 +(Mo)131 426 Q .3 -.15(ve t)-.15 H(he cursor right one character).15 E(.)-.55 E +F2().1 E F0(The cursor arro)131 +450 Q 2.5(wk)-.25 G -.15(ey)207.01 450 S 2.5(ss).15 G(hould w)226.58 450 Q +(ork, too.)-.1 E F2(/text)-.15 E F0 +(Search for the string `)131 474 Q(`te)-.74 E(xt')-.15 E 2.5('i)-.74 G 2.5(nt) +246.84 474 S(he \214le, and mo)257.12 474 Q .3 -.15(ve t)-.15 H +(he cursor to its \214rst character).15 E(.)-.55 E(The commands to enter ne)102 +492 Q 2.5(wt)-.25 G -.15(ex)220.34 492 S 2.5(ta).15 G(re:)239.35 492 Q F2(a)102 +504 Q F0(Append ne)131 504 Q 2.5(wt)-.25 G -.15(ex)186.85 504 S(t,).15 E/F4 10 +/Times-Italic@0 SF(after)2.5 E F0(the cursor)2.5 E(.)-.55 E F2(i)102 516 Q F0 +(Insert ne)131 516 Q 2.5(wt)-.25 G -.15(ex)177.96 516 S(t,).15 E F4(befor)2.5 E +(e)-.37 E F0(the cursor)2.5 E(.)-.55 E F2(o)102 528 Q F0(Open a ne)131 528 Q +2.5(wl)-.25 G(ine belo)183.79 528 Q 2.5(wt)-.25 G +(he line the cursor is on, and start entering te)227.98 528 Q(xt.)-.15 E F2(O) +102 540 Q F0(Open a ne)131 540 Q 2.5(wl)-.25 G(ine abo)183.79 540 Q .3 -.15 +(ve t)-.15 H(he line the cursor is on, and start entering te).15 E(xt.)-.15 E +F2()102 552 Q F0 .744(Once you')131 564 R 1.044 -.15(ve e)-.5 H .744 +(ntered input mode using the one of the).15 F F2(a)3.244 E F0(,)A F2(i)3.244 E +F0(,)A F2(O)3.244 E F0 3.244(,o)C(r)390.542 564 Q F2(o)3.243 E F0 .743 +(commands, use)3.243 F F2()3.243 E F0 .743(to quit)3.243 F(entering te) +131 576 Q(xt and return to command mode.)-.15 E(The commands to cop)102 594 Q +2.5(yt)-.1 G -.15(ex)200.78 594 S 2.5(ta).15 G(re:)219.79 594 Q F2(yy)102 606 Q +F0(Cop)131 606 Q 2.5(yt)-.1 G(he line the cursor is on.)157.85 606 Q F2(p)102 +618 Q F0(Append the copied line after the line the cursor is on.)131 618 Q +(The commands to delete te)102 636 Q(xt are:)-.15 E F2(dd)102 648 Q F0 +(Delete the line the cursor is on.)131 648 Q F2(x)102 660 Q F0 +(Delete the character the cursor is on.)131 660 Q +(The commands to write the \214le are:)102 678 Q F2(:w)-.15 E F0 .528(Write the \214le back to the \214le with the na\ +me that you originally used as an ar)131 702 R .528(gument on the)-.18 F F1(vi) +3.028 E F0(com-)3.028 E 159.845(4.4BSD No)72 750 R -.15(ve)-.15 G +(mber 20, 1994).15 E(2)535 750 Q EP +%%Page: 3 3 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R(mand line.)131 96 Q/F1 10 +/Times-Bold@0 SF(:w \214le_name)-.15 E F0 +(Write the \214le back to the \214le with the name `)131 120 Q(`\214le_name') +-.74 E('.)-.74 E(The commands to quit editing and e)102 138 Q +(xit the editor are:)-.15 E F1(:q)-.15 E F0 +.848(Quit editing and lea)131 162 R 1.148 -.15(ve v)-.2 H 3.348(i\().15 G .848 +(if you')239.6 162 R 1.148 -.15(ve m)-.5 H .848(odi\214ed the \214le, b).15 F +.848(ut not sa)-.2 F -.15(ve)-.2 G 3.348(dy).15 G .848(our changes,)415.454 162 +R/F2 10/Courier-Bold@0 SF(vi)3.347 E F0 .847(will refuse to)3.347 F(quit\).)131 +174 Q F1(:q!)-.15 E F0(Quit, discarding an) +131 198 Q 2.5(ym)-.15 G(odi\214cations that you may ha)222.51 198 Q .3 -.15 +(ve m)-.2 H(ade.).15 E .686(One \214nal caution.)102 216 R .686 +(Unusual characters can tak)5.686 F 3.187(eu)-.1 G 3.187(pm)302.483 216 S .687 +(ore than one column on the screen, and long lines can)318.45 216 R(tak)102 228 +Q 3.129(eu)-.1 G 3.129(pm)126.689 228 S .629(ore than a single screen line.) +142.598 228 R .629(The abo)5.629 F .929 -.15(ve c)-.15 H .629(ommands w).15 F +.629(ork on `)-.1 F(`ph)-.74 E(ysical')-.05 E 3.129('c)-.74 G .628 +(haracters and lines, i.e.)446.476 228 R(the)102 240 Q 2.74(ya)-.15 G -.25(ff) +126.25 240 S .24(ect the entire line no matter ho).25 F 2.74(wm)-.25 G(an) +273.79 240 Q 2.74(ys)-.15 G .241(creen lines it tak)294.71 240 R .241 +(es up and the entire character no matter ho)-.1 F(w)-.25 E(man)102 252 Q 2.5 +(ys)-.15 G(creen columns it tak)130.46 252 Q(es up.)-.1 E F1 1.666(VI COMMANDS) +72 276 R F0 .186(The follo)102 288 R .186 +(wing section describes the commands a)-.25 F -.25(va)-.2 G .186 +(ilable in the command mode of the).25 F F2(vi)2.686 E F0(editor)2.686 E 5.186 +(.I)-.55 G 2.685(ne)498.54 288 S .185(ach en-)510.665 288 R(try belo)102 300 Q +1.3 -.65(w, t)-.25 H(he tag line is a usage synopsis for the command character) +.65 E(.)-.55 E F1([count] )-.18 E F0(Search forw)131 336 +Q(ard)-.1 E/F3 10/Courier@0 SF(count)2.5 E F0(times for the current w)2.5 E +(ord.)-.1 E F1([count] )-.18 E F0 -.15(Pa)131 360 S +(ge backw).15 E(ards)-.1 E F3(count)2.5 E F0(screens.)2.5 E F1([count] )-.18 E F0(Scroll forw)131 384 Q(ard)-.1 E F3(count)2.5 E F0 +(lines.)2.5 E F1([count] )-.18 E F0(Scroll forw)131 408 Q +(ard)-.1 E F3(count)2.5 E F0(lines, lea)2.5 E +(ving the current line and column as is, if possible.)-.2 E F1([count] )-.18 E F0 -.15(Pa)131 432 S(ge forw).15 E(ard)-.1 E F3(count) +2.5 E F0(screens.)2.5 E F1()-.18 E F0 +(Display the \214le information.)131 456 Q F1()-.18 E +([count] h)102 480 Q F0(Mo)131 492 Q .3 -.15(ve t)-.15 H(he cursor back).15 E +F3(count)2.5 E F0(characters in the current line.)2.5 E F1([count] )-.18 E([count] )-.18 E([count] j)102 528 Q F0 +(Mo)131 540 Q .3 -.15(ve t)-.15 H(he cursor do).15 E(wn)-.25 E F3(count)2.5 E +F0(lines without changing the current column.)2.5 E F1() +-.18 E()-.18 E F0(Repaint the screen.)131 576 Q F1 +([count] )-.18 E([count] +)102 600 Q F0(Mo)131 612 Q .3 +-.15(ve t)-.15 H(he cursor do).15 E(wn)-.25 E F3(count)2.5 E F0 +(lines to the \214rst nonblank character of that line.)2.5 E F1([count] )-.18 E([count] k)102 636 Q F0(Mo)131 648 Q .3 -.15(ve t)-.15 H +(he cursor up).15 E F3(count)2.5 E F0 +(lines, without changing the current column.)2.5 E F1() +-.18 E F0(Return to the most recent tag conte)131 672 Q(xt.)-.15 E F1()-.18 E F0 159.845(4.4BSD No)72 750 R -.15(ve)-.15 G +(mber 20, 1994).15 E(3)535 750 Q EP +%%Page: 4 4 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R(Scroll backw)131 96 Q(ards)-.1 E +/F1 10/Courier@0 SF(count)2.5 E F0(lines.)2.5 E/F2 10/Times-Bold@0 SF()-.18 E F0 .635(Switch to the ne)131 120 R .635(xt lo)-.15 F +.635(wer screen in the windo)-.25 F 1.935 -.65(w, o)-.25 H 1.435 -.4(r, t).65 H +3.135(ot).4 G .635(he \214rst screen if there are no lo)353.205 120 R .635 +(wer screens in)-.25 F(the windo)131 132 Q -.65(w.)-.25 G F2()-.18 E F0(Scroll backw)131 156 Q(ards)-.1 E F1(count)2.5 E F0 +(lines, lea)2.5 E(ving the current line and column as is, if possible.)-.2 E F2 +()-.18 E F0(Suspend the current editor session.)131 180 Q +F2()102 192 Q F0(Ex)131 204 Q(ecute)-.15 E/F3 10/Courier-Bold@0 SF(ex) +2.5 E F0(commands or cancel partial commands.)2.5 E F2() +-.18 E F0(Push a tag reference onto the tag stack.)131 228 Q F2()-.18 E F0(Switch to the most recently edited \214le.)131 252 Q F2 +([count] )102 264 Q([count] l)102 276 Q F0(Mo)131 288 Q .3 -.15(ve t) +-.15 H(he cursor forw).15 E(ard)-.1 E F1(count)2.5 E F0 +(characters without changing the current line.)2.5 E F2 +([count] ! motion shell-ar)102 300 Q(gument\(s\))-.1 E F0(Replace te)131 312 Q +(xt with results from a shell command.)-.15 E F2([count] # +|-)102 324 Q F0 +(Increment or decrement the cursor number)131 336 Q(.)-.55 E F2([count] $)102 +348 Q F0(Mo)131 360 Q .3 -.15(ve t)-.15 H(he cursor to the end of a line.).15 E +F2(%)102 372 Q F0(Mo)131 372 Q .3 -.15(ve t)-.15 H 2.5(ot).15 G +(he matching character)169.59 372 Q(.)-.55 E F2(&)102 384 Q F0(Repeat the pre) +131 384 Q(vious substitution command on the current line.)-.25 E F2 +(')102 396 Q(`)102 408 Q F0(Return to a conte)131 420 Q +(xt mark)-.15 E(ed by the character)-.1 E F1()2.5 E F0(.)A F2 +([count] \()102 432 Q F0(Back up)131 444 Q F1(count)2.5 E F0(sentences.)2.5 E +F2([count] \))102 456 Q F0(Mo)131 468 Q .3 -.15(ve f)-.15 H(orw).15 E(ard)-.1 E +F1(count)2.5 E F0(sentences.)2.5 E F2([count] ,)102 480 Q F0(Re)131 492 Q -.15 +(ve)-.25 G(rse \214nd character).15 E F1(count)2.5 E F0(times.)2.5 E F2 +([count] -)102 504 Q F0(Mo)131 516 Q .3 -.15(ve t)-.15 H 2.5<6f8c>.15 G +(rst nonblank of the pre)172.37 516 Q(vious line,)-.25 E F1(count)2.5 E F0 +(times.)2.5 E F2([count] .)102 528 Q F0(Repeat the last)131 540 Q F3(vi)2.5 E +F0(command that modi\214ed te)2.5 E(xt.)-.15 E F2(/RE)-.15 E(/RE/ [offset])-.15 E +(?RE)-.15 E(?RE? [offset])-.15 E(N)102 600 Q(n)102 612 Q F0(Search forw)131 612 Q +(ard or backw)-.1 E(ard for a re)-.1 E(gular e)-.15 E(xpression.)-.15 E F2(0) +102 624 Q F0(Mo)131 624 Q .3 -.15(ve t)-.15 H 2.5(ot).15 G +(he \214rst character in the current line.)169.59 624 Q 26.22(:E)102 636 S -.15 +(xe)137.11 636 S(cute an e).15 E 2.5(xc)-.15 G(ommand.)193.73 636 Q F2 +([count] ;)102 648 Q F0(Repeat the last character \214nd)131 660 Q F1(count)2.5 +E F0(times.)2.5 E F2([count] < motion)102 672 Q F0 159.845(4.4BSD No)72 750 R +-.15(ve)-.15 G(mber 20, 1994).15 E(4)535 750 Q EP +%%Page: 5 5 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R/F1 10/Times-Bold@0 SF +([count] > motion)102 96 Q F0(Shift lines left or right.)131 108 Q F1 2.5(@b) +102 120 S(uffer)119.16 120 Q F0(Ex)131 132 Q(ecute a named b)-.15 E(uf)-.2 E +(fer)-.25 E(.)-.55 E F1([count] A)102 144 Q F0 +(Enter input mode, appending the te)131 156 Q(xt after the end of the line.) +-.15 E F1([count] B)102 168 Q F0(Mo)131 180 Q .3 -.15(ve b)-.15 H(ackw).15 E +(ards)-.1 E/F2 10/Courier@0 SF(count)2.5 E F0(bigw)2.5 E(ords.)-.1 E F1([b)102 +192 Q(uffer] [count] C)-.2 E F0(Change te)131 204 Q +(xt from the current position to the end-of-line.)-.15 E F1([b)102 216 Q +(uffer] D)-.2 E F0(Delete te)131 228 Q +(xt from the current position to the end-of-line.)-.15 E F1([count] E)102 240 Q +F0(Mo)131 252 Q .3 -.15(ve f)-.15 H(orw).15 E(ard)-.1 E F2(count)2.5 E F0 +(end-of-bigw)2.5 E(ords.)-.1 E F1([count] F )102 264 Q F0(Search)131 +276 Q F2(count)2.5 E F0(times backw)2.5 E(ard through the current line for)-.1 +E F2()2.5 E F0(.)A F1([count] G)102 288 Q F0(Mo)131 300 Q .3 -.15 +(ve t)-.15 H 2.5(ol).15 G(ine)169.59 300 Q F2(count)2.5 E F0 2.5(,o)C 2.5(rt) +224.31 300 S(he last line of the \214le if)232.92 300 Q F2(count)2.5 E F0 +(not speci\214ed.)2.5 E F1([count] H)102 312 Q F0(Mo)131 324 Q .3 -.15(ve t) +-.15 H 2.5(ot).15 G(he screen line)169.59 324 Q F2(count - 1)2.5 E F0 +(lines belo)2.5 E 2.5(wt)-.25 G(he top of the screen.)334.43 324 Q F1 +([count] I)102 336 Q F0(Enter input mode, inserting the te)131 348 Q +(xt at the be)-.15 E(ginning of the line.)-.15 E F1([count] J)102 360 Q F0 +(Join lines.)131 372 Q F1([count] L)102 384 Q F0(Mo)131 396 Q .3 -.15(ve t)-.15 +H 2.5(ot).15 G(he screen line)169.59 396 Q F2(count - 1)2.5 E F0(lines abo)2.5 +E .3 -.15(ve t)-.15 H(he bottom of the screen.).15 E F1(M)102 408 Q F0(Mo)131 +408 Q .3 -.15(ve t)-.15 H 2.5(ot).15 G +(he screen line in the middle of the screen.)169.59 408 Q F1([count] O)102 420 +Q F0(Enter input mode, appending te)131 432 Q(xt in a ne)-.15 E 2.5(wl)-.25 G +(ine abo)305.86 432 Q .3 -.15(ve t)-.15 H(he current line.).15 E F1([b)102 444 +Q(uffer] P)-.2 E F0(Insert te)131 456 Q(xt from a b)-.15 E(uf)-.2 E(fer)-.25 E +(.)-.55 E F1(Q)102 468 Q F0(Exit)131 468 Q/F3 10/Courier-Bold@0 SF(vi)2.5 E F0 +(\(or visual\) mode and switch to)2.5 E F3(ex)2.5 E F0(mode.)2.5 E F1 +([count] R)102 480 Q F0 +(Enter input mode, replacing the characters in the current line.)131 492 Q F1 +([b)102 504 Q(uffer] [count] S)-.2 E F0(Substitute)131 516 Q F2(count)2.5 E F0 +(lines.)2.5 E F1([count] T )102 528 Q F0 2.78(Search backw)131 540 R +(ards,)-.1 E F2(count)5.28 E F0 2.779 +(times, through the current line for the character)5.28 F/F4 10/Times-Italic@0 +SF(after)5.279 E F0 2.779(the speci\214ed)5.279 F F2()131 552 Q F0 +(.)A F1(U)102 564 Q F0 +(Restore the current line to its state before the cursor last mo)131 564 Q -.15 +(ve)-.15 G 2.5(dt).15 G 2.5(oi)388.99 564 S(t.)399.27 564 Q F1([count] W)102 +576 Q F0(Mo)131 588 Q .3 -.15(ve f)-.15 H(orw).15 E(ard)-.1 E F2(count)2.5 E F0 +(bigw)2.5 E(ords.)-.1 E F1([b)102 600 Q(uffer] [count] X)-.2 E F0(Delete)131 +612 Q F2(count)2.5 E F0(characters before the cursor)2.5 E(.)-.55 E F1([b)102 +624 Q(uffer] [count] Y)-.2 E F0(Cop)131 636 Q 2.5(y\()-.1 G(or `)158.4 636 Q +(`yank')-.74 E('\))-.74 E F2(count)2.5 E F0(lines into the speci\214ed b)2.5 E +(uf)-.2 E(fer)-.25 E(.)-.55 E F1(ZZ)102 648 Q F0(Write the \214le and e)131 648 +Q(xit)-.15 E F3(vi)2.5 E F0(.)A F1([count] [[)102 660 Q F0(Back up)131 672 Q F2 +(count)2.5 E F0(section boundaries.)2.5 E F1([count] ]])102 684 Q F0 159.845 +(4.4BSD No)72 750 R -.15(ve)-.15 G(mber 20, 1994).15 E(5)535 750 Q EP +%%Page: 6 6 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R(Mo)131 96 Q .3 -.15(ve f)-.15 H +(orw).15 E(ard)-.1 E/F1 10/Courier@0 SF(count)2.5 E F0(section boundaries.)2.5 +E/F2 10/Times-Bold@0 SF(^)102 108 Q F0(Mo)131 108 Q .3 -.15(ve t)-.15 H 2.5 +<6f8c>.15 G(rst nonblank character on the current line.)172.37 108 Q F2 +([count] _)102 120 Q F0(Mo)131 132 Q .3 -.15(ve d)-.15 H -.25(ow).15 G(n).25 E +F1(count - 1)2.5 E F0(lines, to the \214rst nonblank character)2.5 E(.)-.55 E +F2([count] a)102 144 Q F0(Enter input mode, appending the te)131 156 Q +(xt after the cursor)-.15 E(.)-.55 E F2([count] b)102 168 Q F0(Mo)131 180 Q .3 +-.15(ve b)-.15 H(ackw).15 E(ards)-.1 E F1(count)2.5 E F0 -.1(wo)2.5 G(rds.).1 E +F2([b)102 192 Q(uffer] [count] c motion)-.2 E F0(Change a re)131 204 Q +(gion of te)-.15 E(xt.)-.15 E F2([b)102 216 Q(uffer] [count] d motion)-.2 E F0 +(Delete a re)131 228 Q(gion of te)-.15 E(xt.)-.15 E F2([count] e)102 240 Q F0 +(Mo)131 252 Q .3 -.15(ve f)-.15 H(orw).15 E(ard)-.1 E F1(count)2.5 E F0 +(end-of-w)2.5 E(ords.)-.1 E F2([count] f)102 264 Q F0(Search forw) +131 276 Q(ard,)-.1 E F1(count)2.5 E F0 +(times, through the rest of the current line for)2.5 E F1()2.5 E F0 +(.)A F2([count] i)102 288 Q F0(Enter input mode, inserting the te)131 300 Q +(xt before the cursor)-.15 E(.)-.55 E F2 2.5(m<)102 312 S(character>)118.53 312 +Q F0(Sa)131 324 Q .3 -.15(ve t)-.2 H(he current conte).15 E +(xt \(line and column\) as)-.15 E F1()2.5 E F0(.)A F2([count] o)102 +336 Q F0(Enter input mode, appending te)131 348 Q(xt in a ne)-.15 E 2.5(wl)-.25 +G(ine under the current line.)305.86 348 Q F2([b)102 360 Q(uffer] p)-.2 E F0 +(Append te)131 372 Q(xt from a b)-.15 E(uf)-.2 E(fer)-.25 E(.)-.55 E F2 +([count] r )102 384 Q F0(Replace)131 396 Q F1(count)2.5 E F0 +(characters.)2.5 E F2([b)102 408 Q(uffer] [count] s)-.2 E F0(Substitute)131 420 +Q F1(count)2.5 E F0 +(characters in the current line starting with the current character)2.5 E(.) +-.55 E F2([count] t )102 432 Q F0 3.435(Search forw)131 444 R(ard,) +-.1 E F1(count)5.935 E F0 3.435 +(times, through the current line for the character immediately)5.935 F/F3 10 +/Times-Italic@0 SF(befor)5.935 E(e)-.37 E F1()131 456 Q F0(.)A F2(u) +102 468 Q F0(Undo the last change made to the \214le.)131 468 Q F2([count] w) +102 480 Q F0(Mo)131 492 Q .3 -.15(ve f)-.15 H(orw).15 E(ard)-.1 E F1(count)2.5 +E F0 -.1(wo)2.5 G(rds.).1 E F2([b)102 504 Q(uffer] [count] x)-.2 E F0(Delete) +131 516 Q F1(count)2.5 E F0(characters.)2.5 E F2([b)102 528 Q +(uffer] [count] y motion)-.2 E F0(Cop)131 540 Q 2.5(y\()-.1 G(or `)158.4 540 Q +(`yank')-.74 E('\) a te)-.74 E(xt re)-.15 E(gion speci\214ed by the)-.15 E F1 +(count)2.5 E F0(and motion into a b)2.5 E(uf)-.2 E(fer)-.25 E(.)-.55 E F2 +([count1] z [count2] -|.|+|^|)-.15 E F0 +(Redra)131 564 Q 1.3 -.65(w, o)-.15 H +(ptionally repositioning and resizing the screen.).65 E F2([count] {)102 576 Q +F0(Mo)131 588 Q .3 -.15(ve b)-.15 H(ackw).15 E(ard)-.1 E F1(count)2.5 E F0 +(paragraphs.)2.5 E F2([count] |)102 600 Q F0(Mo)131 612 Q .3 -.15(ve t)-.15 H +2.5(oas).15 G(peci\214c)177.64 612 Q F3(column)2.5 E F0 +(position on the current line.)2.5 E F2([count] })102 624 Q F0(Mo)131 636 Q .3 +-.15(ve f)-.15 H(orw).15 E(ard)-.1 E F1(count)2.5 E F0(paragraphs.)2.5 E F2 +([count] ~)102 648 Q F0(Re)131 660 Q -.15(ve)-.25 G(rse the case of the ne).15 +E(xt)-.15 E F1(count)2.5 E F0(character\(s\).)2.5 E F2([count] ~ motion)102 672 +Q F0 159.845(4.4BSD No)72 750 R -.15(ve)-.15 G(mber 20, 1994).15 E(6)535 750 Q +EP +%%Page: 7 7 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R(Re)131 96 Q -.15(ve)-.25 G +(rse the case of the characters in a te).15 E(xt re)-.15 E +(gion speci\214ed by the)-.15 E/F1 10/Courier@0 SF(count)2.5 E F0(and)2.5 E F1 +(motion)2.5 E F0(.)A/F2 10/Times-Bold@0 SF()102 108 Q F0 +(Interrupt the current operation.)131 120 Q F2 1.666(VI TEXT INPUT COMMANDS)72 +144 R F0(The follo)102 156 Q(wing section describes the commands a)-.25 E -.25 +(va)-.2 G(ilable in the te).25 E(xt input mode of the)-.15 E/F3 10 +/Courier-Bold@0 SF(vi)2.5 E F0(editor)2.5 E(.)-.55 E F2()102 174 Q F0 +(Replay the pre)131 186 Q(vious input.)-.25 E F2()-.18 E +F0(Erase the pre)131 210 Q(vious autoindent character)-.25 E(.)-.55 E F2 +(^)-.18 E F0 +(Erase all of the autoindent characters, and reset the autoindent le)131 234 Q +-.15(ve)-.25 G(l.).15 E F2(0)-.18 E F0 +(Erase all of the autoindent characters.)131 258 Q F2() +-.18 E F0 .076(Insert suf)131 282 R(\214cient)-.25 E F1()2.576 E F0(and) +2.576 E F1()2.576 E F0 .076(characters to mo)2.576 F .376 -.15(ve t)-.15 +H .076(he cursor forw).15 F .075(ard to a column immediate-)-.1 F +(ly after the ne)131 294 Q(xt column which is an e)-.15 E -.15(ve)-.25 G 2.5 +(nm).15 G(ultiple of the)305.7 294 Q F2(shiftwidth)2.5 E F0(option.)2.5 E F2 +()102 306 Q()-.18 E F0(Erase the last character) +131 330 Q(.)-.55 E F2()102 342 Q F0(Quote the ne)131 354 Q +(xt character)-.15 E(.)-.55 E F2()102 366 Q F0(Resolv)131 378 Q 2.5(ea) +-.15 G(ll te)170.01 378 Q +(xt input into the \214le, and return to command mode.)-.15 E F2() +102 390 Q F0(Erase the current line.)131 402 Q F2()-.18 E +()-.1 E F0(Erase the last w)131 438 Q 2.5(ord. The)-.1 F +(de\214nition of w)2.5 E(ord is dependent on the)-.1 E F2(altwerase)2.5 E F0 +(and)2.5 E F2(ttywerase)2.5 E F0(options.)2.5 E F2([0-9A-F)-.18 E(a-f])-.25 E/F4 10/Symbol SF(*)A F0 +(Insert a character with the speci\214ed he)131 462 Q(xadecimal v)-.15 E +(alue into the te)-.25 E(xt.)-.15 E F2()102 474 Q F0(Interrupt te) +131 486 Q(xt input mode, returning to command mode.)-.15 E F2 1.666 +(EX COMMANDS)72 510 R F0 .163(The follo)102 522 R .163 +(wing section describes the commands a)-.25 F -.25(va)-.2 G .163(ilable in the) +.25 F F3(ex)2.663 E F0(editor)2.663 E 5.163(.I)-.55 G 2.663(ne)405.333 522 S +.164(ach entry belo)417.436 522 R 1.464 -.65(w, t)-.25 H .164(he tag line is) +.65 F 2.5(au)102 534 S(sage synopsis for the command.)113.94 534 Q F2 +()102 558 Q F0(Scroll the screen.)131 570 Q F2 2.5(!a)102 582 S +-.1(rg)112.83 582 S(ument\(s\)).1 E([range]! ar)102 594 Q(gument\(s\))-.1 E F0 +(Ex)131 606 Q +(ecute a shell command, or \214lter lines through a shell command.)-.15 E F2(") +102 618 Q F0 2.5(Ac)131 618 S(omment.)145.16 618 Q F2 +([range] nu[mber] [count] [\215ags])102 630 Q([range] # [count] [\215ags])102 +642 Q F0(Display the selected lines, each preceded with its line number)131 654 +Q(.)-.55 E F2 2.5(@b)102 666 S(uffer)119.16 666 Q F4(*)102 678 Q F2 -.2(bu)2.5 +G(ffer).2 E F0 159.845(4.4BSD No)72 750 R -.15(ve)-.15 G(mber 20, 1994).15 E(7) +535 750 Q EP +%%Page: 8 8 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R(Ex)131 96 Q(ecute a b)-.15 E(uf) +-.2 E(fer)-.25 E(.)-.55 E/F1 10/Times-Bold@0 SF([range] d[elete] [b)102 108 Q +(uffer] [count] [\215ags])-.2 E F0(Delete the lines from the \214le.)131 120 Q +F1(di[splay] b[uffers] | s[cr)102 132 Q(eens] | t[ags])-.18 E F0(Display b)131 +144 Q(uf)-.2 E(fers, screens or tags.)-.25 E F1(e[dit][!] [+cmd] [\214le])102 +156 Q(ex[!] [+cmd] [\214le])102 168 Q F0(Edit a dif)131 180 Q(ferent \214le.) +-.25 E F1(exu[sage] [command])102 192 Q F0(Display usage for an)131 204 Q/F2 10 +/Courier-Bold@0 SF(ex)2.5 E F0(command.)2.5 E F1(f[ile] [\214le])102 216 Q F0 +(Display and optionally change the \214le name.)131 228 Q F1(fg [name])102 240 +Q F2(Vi)131 252 Q F0(mode only)2.5 E 5(.F)-.65 G(ore)200.26 252 Q +(ground the speci\214ed screen.)-.15 E F1([range] g[lobal] /patter)102 264 Q +(n/ [commands])-.15 E([range] v /patter)102 276 Q(n/ [commands])-.15 E F0 +(Apply commands to lines matching \(or not matching\) a pattern.)131 288 Q F1 +(he[lp])102 300 Q F0(Display a help message.)131 312 Q F1([line] i[nsert][!]) +102 324 Q F0(The input te)131 336 Q +(xt is inserted before the speci\214ed line.)-.15 E F1 +([range] j[oin][!] [count] [\215ags])102 348 Q F0(Join lines of te)131 360 Q +(xt together)-.15 E(.)-.55 E F1([range] l[ist] [count] [\215ags])102 372 Q F0 +(Display the lines unambiguously)131 384 Q(.)-.65 E F1(map[!] [lhs rhs])102 396 +Q F0(De\214ne or display maps \(for)131 408 Q F2(vi)2.5 E F0(only\).)2.5 E F1 +([line] ma[rk] )102 420 Q([line] k )102 432 Q F0 +(Mark the line with the mark)131 444 Q/F3 10/Courier@0 SF()2.5 E F0 +(.)A F1([range] m[o)102 456 Q -.1(ve)-.1 G 2.5(]l).1 G(ine)170.11 456 Q F0(Mo) +131 468 Q .3 -.15(ve t)-.15 H(he speci\214ed lines after the tar).15 E +(get line.)-.18 E F1(mk[exr)102 480 Q(c][!] \214le)-.18 E F0(Write the abbre) +131 492 Q(viations, editor options and maps to the speci\214ed \214le.)-.25 E +F1(n[ext][!] [\214le ...])102 504 Q F0(Edit the ne)131 516 Q +(xt \214le from the ar)-.15 E(gument list.)-.18 E F1([line] o[pen] /patter)102 +528 Q(n/ [\215ags])-.15 E F0(Enter open mode.)131 540 Q F1(pr)102 552 Q(e[ser) +-.18 E -.1(ve)-.1 G(]).1 E F0(Sa)131 564 Q .3 -.15(ve t)-.2 H +(he \214le in a form that can later be reco).15 E -.15(ve)-.15 G(red using the) +.15 E F2 -1.834(ex \255r)2.5 F F0(option.)2.5 E F1(pr)102 576 Q -.15(ev)-.18 G +([ious][!]).15 E F0(Edit the pre)131 588 Q(vious \214le from the ar)-.25 E +(gument list.)-.18 E F1([range] p[rint] [count] [\215ags])102 600 Q F0 +(Display the speci\214ed lines.)131 612 Q F1([line] pu[t] [b)102 624 Q(uffer]) +-.2 E F0(Append b)131 636 Q(uf)-.2 E(fer contents to the current line.)-.25 E +F1(q[uit][!])102 648 Q F0(End the editing session.)131 660 Q F1 +([line] r[ead][!] [\214le])102 672 Q F0 159.845(4.4BSD No)72 750 R -.15(ve)-.15 +G(mber 20, 1994).15 E(8)535 750 Q EP +%%Page: 9 9 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R(Read a \214le.)131 96 Q/F1 10 +/Times-Bold@0 SF -.18(re)102 108 S(c[o).18 E -.1(ve)-.1 G(r] \214le).1 E F0 +(Reco)131 120 Q -.15(ve)-.15 G(r).15 E/F2 10/Courier@0 SF(file)2.5 E F0 +(if it w)2.5 E(as pre)-.1 E(viously sa)-.25 E -.15(ve)-.2 G(d.).15 E F1 -.18 +(re)102 132 S(s[ize] [+|-]size).18 E/F3 10/Courier-Bold@0 SF(Vi)131 144 Q F0 +(mode only)2.5 E 5(.G)-.65 G(ro)202.07 144 Q 2.5(wo)-.25 G 2.5(rs)224.87 144 S +(hrink the current screen.)234.59 144 Q F1 -.18(re)102 156 S(w[ind][!]).18 E F0 +(Re)131 168 Q(wind the ar)-.25 E(gument list.)-.18 E F1(se[t] [option[=[v)102 +180 Q(alue]] ...] [nooption ...] [option? ...] [all])-.1 E F0 +(Display or set editor options.)131 192 Q F1(sh[ell])102 204 Q F0 +(Run a shell program.)131 216 Q F1(so[ur)102 228 Q(ce] \214le)-.18 E F0 +(Read and e)131 240 Q -.15(xe)-.15 G(cute).15 E F3(ex)2.5 E F0 +(commands from a \214le.)2.5 E F1(sp[lit] [\214le ...])102 252 Q F3(Vi)131 264 +Q F0(mode only)2.5 E 5(.S)-.65 G(plit the screen.)200.41 264 Q F1 +([range] s[ubstitute] [/patter)102 276 Q(n/r)-.15 E +(eplace/] [options] [count] [\215ags])-.18 E +([range] & [options] [count] [\215ags])102 288 Q +([range] ~ [options] [count] [\215ags])102 300 Q F0(Mak)131 312 Q 2.5(es)-.1 G +(ubstitutions.)160.06 312 Q F1(su[spend][!])102 324 Q(st[op][!])102 336 Q +()102 348 Q F0(Suspend the edit session.)131 360 Q F1 +(ta[g][!] tagstring)102 372 Q F0 +(Edit the \214le containing the speci\214ed tag.)131 384 Q F1 +(tagp[op][!] [\214le | number])102 396 Q F0 +(Pop to the speci\214ed tag in the tags stack.)131 408 Q F1(unm[ap][!] lhs)102 +420 Q F0(Unmap a mapped string.)131 432 Q F1 -.1(ve)102 444 S([rsion]).1 E F0 +(Display the v)131 456 Q(ersion of the)-.15 E F3(ex/vi)2.5 E F0(editor)2.5 E(.) +-.55 E F1([line] vi[sual] [type] [count] [\215ags])102 468 Q F3(Ex)131 480 Q F0 +(mode only)2.5 E 5(.E)-.65 G(nter)200.96 480 Q F3(vi)2.5 E F0(.)A F1 +(vi[sual][!] [+cmd] [\214le])102 492 Q F3(Vi)131 504 Q F0(mode only)2.5 E 5(.E) +-.65 G(dit a ne)200.96 504 Q 2.5<778c>-.25 G(le.)245.43 504 Q F1 +(viu[sage] [command])102 516 Q F0(Display usage for a)131 528 Q F3(vi)2.5 E F0 +(command.)2.5 E F1([range] w[rite][!] [>>] [\214le])102 540 Q +([range] w[rite] [!] [\214le])102 552 Q([range] wn[!] [>>] [\214le])102 564 Q +([range] wq[!] [>>] [\214le])102 576 Q F0(Write the \214le.)131 588 Q F1 +([range] x[it][!] [\214le])102 600 Q F0 +(Write the \214le if it has been modi\214ed.)131 612 Q F1([range] ya[nk] [b)102 +624 Q(uffer] [count])-.2 E F0(Cop)131 636 Q 2.5(yt)-.1 G +(he speci\214ed lines to a b)157.85 636 Q(uf)-.2 E(fer)-.25 E(.)-.55 E F1 +([line] z [type] [count] [\215ags])102 648 Q F0(Adjust the windo)131 660 Q -.65 +(w.)-.25 G 159.845(4.4BSD No)72 750 R -.15(ve)-.15 G(mber 20, 1994).15 E(9)535 +750 Q EP +%%Page: 10 10 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R/F1 10/Times-Bold@0 SF 1.666 +(SET OPTIONS)72 96 R F0 .519(There are a lar)102 108 R .518 +(ge number of options that may be set \(or unset\) to change the editor')-.18 F +3.018(sb)-.55 G(eha)453.614 108 Q(vior)-.2 E 5.518(.T)-.55 G .518(his section) +496.982 108 R(describes the options, their abbre)102 120 Q +(viations and their def)-.25 E(ault v)-.1 E(alues.)-.25 E .095 +(In each entry belo)102 138 R 1.395 -.65(w, t)-.25 H .095 +(he \214rst part of the tag line is the full name of the option, follo).65 F +.095(wed by an)-.25 F 2.595(ye)-.15 G(qui)487.915 138 Q -.25(va)-.25 G .095 +(lent ab-).25 F(bre)102 150 Q 3.034(viations. The)-.25 F .534 +(part in square brack)3.034 F .533(ets is the def)-.1 F .533(ault v)-.1 F .533 +(alue of the option.)-.25 F .533(Most of the options are boolean,)5.533 F +(i.e. the)102 162 Q 2.5(ya)-.15 G(re either on or of)140.73 162 Q +(f, and do not ha)-.25 E .3 -.15(ve a)-.2 H 2.5(na).15 G(ssociated v)298.14 162 +Q(alue.)-.25 E(Options apply to both)102 180 Q/F2 10/Courier-Bold@0 SF(ex)2.5 E +F0(and)2.5 E F2(vi)2.5 E F0(modes, unless otherwise speci\214ed.)2.5 E F1 +(altwerase [off])102 204 Q F2(Vi)131 216 Q F0(only)2.5 E 5(.S)-.65 G +(elect an alternate w)175.69 216 Q(ord erase algorithm.)-.1 E F1 +(autoindent, ai [off])102 228 Q F0(Automatically indent ne)131 240 Q 2.5(wl) +-.25 G(ines.)239.91 240 Q F1(autoprint, ap [off])102 252 Q F2(Ex)131 264 Q F0 +(only)2.5 E 5(.D)-.65 G(isplay the current line automatically)177.35 264 Q(.) +-.65 E F1(auto)102 276 Q(write, aw [off])-.1 E F0 +(Write modi\214ed \214les automatically when changing \214les.)131 288 Q F1 +(backup [""])102 300 Q F0(Backup \214les before the)131 312 Q 2.5(ya)-.15 G +(re o)235.27 312 Q -.15(ve)-.15 G(rwritten.).15 E F1(beautify)102 324 Q 2.5(,b) +-.55 G 2.5(f[)147.01 324 S(off])156.17 324 Q F0(Discard control characters.)131 +336 Q F1(cdpath [en)102 348 Q(vir)-.4 E(onment v)-.18 E(ariable CDP)-.1 E -.95 +(AT)-.74 G(H, or curr).95 E(ent dir)-.18 E(ectory])-.18 E F0 +(The directory paths used as path pre\214x)131 360 Q(es for the)-.15 E F1(cd) +2.5 E F0(command.)2.5 E F1(columns, co [80])102 372 Q F0 +(Set the number of columns in the screen.)131 384 Q F1(comment [off])102 396 Q +F2(Vi)131 408 Q F0(only)2.5 E 5(.S)-.65 G(kip leading comments in \214les.) +175.69 408 Q F1(dir)102 420 Q(ectory)-.18 E 2.5(,d)-.55 G(ir [en)151.26 420 Q +(vir)-.4 E(onment v)-.18 E(ariable TMPDIR, or /tmp])-.1 E F0 +(The directory where temporary \214les are created.)131 432 Q F1 +(edcompatible, ed [off])102 444 Q F0 .279(Remember the v)131 456 R .279 +(alues of the `)-.25 F(`c')-.74 E 2.779('a)-.74 G .279(nd `)270.344 456 R(`g') +-.74 E 2.779('s)-.74 G(uf)306.632 456 Q .279(\214ces to the)-.25 F F1 +(substitute)2.78 E F0 .28(commands, instead of initializing)2.78 F +(them as unset for each ne)131 468 Q 2.5(wc)-.25 G(ommand.)246.27 468 Q F1(err) +102 480 Q(orbells, eb [off])-.18 E F2(Ex)131 492 Q F0(only)2.5 E 5(.A)-.65 G +(nnounce error messages with a bell.)177.35 492 Q F1(exr)102 504 Q(c, ex [off]) +-.18 E F0(Ne)131 516 Q -.15(ve)-.25 G 2.5(rr).15 G +(ead startup \214les in the local directory)160.86 516 Q(.)-.65 E F1 +(extended [off])102 528 Q F0(Re)131 540 Q(gular e)-.15 E(xpressions are e)-.15 +E(xtended \(i.e.)-.15 E/F3 10/Courier@0 SF(egrep)5 E F0(\(1\) style\) e)A +(xpressions.)-.15 E F1(\215ash [on])102 552 Q F0 +(Flash the screen instead of beeping the k)131 564 Q -.15(ey)-.1 G +(board on error).15 E(.)-.55 E F1(hardtabs, ht [8])102 576 Q F0 +(Set the spacing between hardw)131 588 Q(are tab settings.)-.1 E F1(ignor)102 +600 Q(ecase, ic [off])-.18 E F0(Ignore case dif)131 612 Q(ferences in re)-.25 E +(gular e)-.15 E(xpressions.)-.15 E F1 -.1(ke)102 624 S(ytime [6]).1 E F0 +(The 10th')131 636 Q 2.5(so)-.55 G 2.5(fas)181 636 S(econd)197.66 636 Q F2 +(ex/vi)2.5 E F0 -.1(wa)2.5 G(its for a subsequent k).1 E .3 -.15(ey t)-.1 H 2.5 +(oc).15 G(omplete a k)379.5 636 Q .3 -.15(ey m)-.1 H(apping.).15 E F1 +(leftright [off])102 648 Q F2(Vi)131 660 Q F0(only)2.5 E 5(.D)-.65 G 2.5(ol) +177.35 660 S(eft-right scrolling.)187.63 660 Q F1(lines, li [24])102 672 Q F0 +159.845(4.4BSD No)72 750 R -.15(ve)-.15 G(mber 20, 1994).15 E(10)530 750 Q EP +%%Page: 11 11 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R/F1 10/Courier-Bold@0 SF(Vi)131 96 +Q F0(only)2.5 E 5(.S)-.65 G(et the number of lines in the screen.)175.69 96 Q +/F2 10/Times-Bold@0 SF(lisp [off])102 108 Q F1(Vi)131 120 Q F0(only)2.5 E 5(.M) +-.65 G(odify v)179.02 120 Q(arious search commands and options to w)-.25 E +(ork with Lisp.)-.1 E/F3 10/Times-Italic@0 SF +(This option is not yet implemented.)131 138 Q F2(list [off])102 150 Q F0 +(Display lines in an unambiguous f)131 162 Q(ashion.)-.1 E F2(lock [on])102 174 +Q F0(Attempt to get an e)131 186 Q(xclusi)-.15 E .3 -.15(ve l)-.25 H(ock on an) +.15 E 2.5<798c>-.15 G(le being edited, read or written.)297.51 186 Q F2 +(magic [on])102 198 Q F0 -.35(Tr)131 210 S +(eat certain characters specially in re).35 E(gular e)-.15 E(xpressions.)-.15 E +F2(matchtime [7])102 222 Q F1(Vi)131 234 Q F0(only)2.885 E 5.385(.T)-.65 G .385 +(he 10th')177.01 234 R 2.885(so)-.55 G 2.885(fas)221.67 234 S(econd)239.1 234 Q +F1(ex/vi)2.884 E F0 .384(pauses on the matching character when the)2.884 F F2 +(sho)2.884 E(wmatch)-.1 E F0(op-)2.884 E(tion is set.)131 246 Q F2(mesg [on]) +102 258 Q F0(Permit messages from other users.)131 270 Q F2 +(modelines, modeline [off])102 282 Q F0(Read the \214rst and last fe)131 294 Q +2.5(wl)-.25 G(ines of each \214le for)240.18 294 Q F1(ex)2.5 E F0(commands.)2.5 +E F3(This option will ne)131 312 Q(ver be implemented.)-.15 E F2(number)102 324 +Q 2.5(,n)-.92 G 2.5(u[)145.53 324 S(off])156.92 324 Q F0 +(Precede each line displayed with its current line number)131 336 Q(.)-.55 E F2 +(octal [off])102 348 Q F0(Display unkno)131 360 Q +(wn characters as octal numbers, instead of the def)-.25 E(ault he)-.1 E +(xadecimal.)-.15 E F2(open [on])102 372 Q F1(Ex)131 384 Q F0(only)2.5 E 5(.I) +-.65 G 2.5(ft)173.46 384 S(his option is not set, the)182.07 384 Q F2(open)2.5 +E F0(and)2.5 E F2(visual)2.5 E F0(commands are disallo)2.5 E(wed.)-.25 E F2 +(optimize, opt [on])102 396 Q F1(Vi)131 408 Q F0(only)2.5 E 5(.O)-.65 G +(ptimize te)177.35 408 Q(xt throughput to dumb terminals.)-.15 E F3 +(This option is not yet implemented.)131 426 Q F2 +(paragraphs, para [IPLPPPQPP LIpplpipbp])102 438 Q F1(Vi)131 450 Q F0(only)2.5 +E 5(.D)-.65 G(e\214ne additional paragraph boundaries for the)177.35 450 Q F2 +({)2.5 E F0(and)2.5 E F2(})2.5 E F0(commands.)2.5 E F2(pr)102 462 Q(ompt [on]) +-.18 E F1(Ex)131 474 Q F0(only)2.5 E 5(.D)-.65 G(isplay a command prompt.) +177.35 474 Q F2 -.18(re)102 486 S(adonly).18 E 2.5(,r)-.55 G 2.5(o[)148.31 486 +S(off])159.14 486 Q F0(Mark the \214le as read-only)131 498 Q(.)-.65 E F2 -.18 +(re)102 510 S(cdir [/v).18 E(ar/tmp/vi.r)-.1 E(eco)-.18 E -.1(ve)-.1 G(r]).1 E +F0(The directory where reco)131 522 Q -.15(ve)-.15 G(ry \214les are stored.).15 +E F2 -.18(re)102 534 S(draw).18 E 2.5(,r)-.55 G 2.5(e[)141.63 534 S(off])151.9 +534 Q F1(Vi)131 546 Q F0(only)2.5 E 5(.S)-.65 G +(imulate an intelligent terminal on a dumb one.)175.69 546 Q F3 +(This option is not yet implemented.)131 564 Q F2 -.18(re)102 576 S(map [on]) +.18 E F0(Remap k)131 588 Q -.15(ey)-.1 G 2.5(su).15 G(ntil resolv)187.41 588 Q +(ed.)-.15 E F2 -.18(re)102 600 S(port [5]).18 E F0 +(Set the number of lines about which the editor reports changes or yanks.)131 +612 Q F2(ruler [off])102 624 Q F1(Vi)131 636 Q F0(only)2.5 E 5(.D)-.65 G +(isplay a ro)177.35 636 Q(w/column ruler on the colon command line.)-.25 E F2 +(scr)102 648 Q(oll, scr [windo)-.18 E 2.5(w/2)-.1 G(])194.77 648 Q F0 +(Set the number of lines scrolled.)131 660 Q F2(sections, sect [NHSHH HUnhsh]) +102 672 Q F0 159.845(4.4BSD No)72 750 R -.15(ve)-.15 G(mber 20, 1994).15 E(11) +530 750 Q EP +%%Page: 12 12 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R/F1 10/Courier-Bold@0 SF(Vi)131 96 +Q F0(only)2.5 E 5(.D)-.65 G(e\214ne additional section boundaries for the) +177.35 96 Q/F2 10/Times-Bold@0 SF([[)2.5 E F0(and)2.5 E F2(]])2.5 E F0 +(commands.)2.5 E F2(shell, sh [en)102 108 Q(vir)-.4 E(onment v)-.18 E +(ariable SHELL, or /bin/sh])-.1 E F0(Select the shell used by the editor)131 +120 Q(.)-.55 E F2(shellmeta [~{[)102 132 Q/F3 10/Symbol SF(*)A F2(?$`'"\\])A F0 +(Set the meta characters check)131 144 Q(ed to determine if \214le name e)-.1 E +(xpansion is necessary)-.15 E(.)-.65 E F2(shiftwidth, sw [8])102 156 Q F0 +(Set the autoindent and shift command indentation width.)131 168 Q F2(sho)102 +180 Q(wmatch, sm [off])-.1 E F1(Vi)131 192 Q F0(only)2.5 E 5(.N)-.65 G +(ote matching `)177.35 192 Q(`{')-.74 E 2.5('a)-.74 G(nd `)255.37 192 Q(`\(') +-.74 E 2.5('f)-.74 G(or `)288.87 192 Q(`}')-.74 E 2.5('a)-.74 G(nd `)323.28 192 +Q(`\)')-.74 E 2.5('c)-.74 G(haracters.)357.89 192 Q F2(sho)102 204 Q +(wmode [off])-.1 E F1(Vi)131 216 Q F0(only)2.5 E 5(.D)-.65 G +(isplay the current editor mode and a `)177.35 216 Q(`modi\214ed')-.74 E 2.5 +<278d>-.74 G(ag.)379.17 216 Q F2(sidescr)102 228 Q(oll [16])-.18 E F1(Vi)131 +240 Q F0(only)2.5 E 5(.S)-.65 G(et the amount a left-right scroll will shift.) +175.69 240 Q F2(slo)102 252 Q -.1(wo)-.1 G(pen, slo).1 E 2.5(w[)-.1 G(off]) +170.87 252 Q F0(Delay display updating during te)131 264 Q(xt input.)-.15 E/F4 +10/Times-Italic@0 SF(This option is not yet implemented.)131 282 Q F2(sour)102 +294 Q(ceany [off])-.18 E F0(Read startup \214les not o)131 306 Q +(wned by the current user)-.25 E(.)-.55 E F4(This option will ne)131 324 Q +(ver be implemented.)-.15 E F2(tabstop, ts [8])102 336 Q F0 +(This option sets tab widths for the editor display)131 348 Q(.)-.65 E F2 +(taglength, tl [0])102 360 Q F0 +(Set the number of signi\214cant characters in tag names.)131 372 Q F2 +(tags, tag [tags /v)102 384 Q(ar/db/libc.tags /sys/k)-.1 E(er)-.1 E(n/tags]) +-.15 E F0(Set the list of tags \214les.)131 396 Q F2(term, ttytype, tty [en)102 +408 Q(vir)-.4 E(onment v)-.18 E(ariable TERM])-.1 E F0(Set the terminal type.) +131 420 Q F2(terse [off])102 432 Q F0 .759 +(This option has historically made editor messages less v)131 444 R 3.259 +(erbose. It)-.15 F .76(has no ef)3.259 F .76(fect in this implementa-)-.25 F +(tion.)131 456 Q F2(tildeop)102 468 Q F0(Modify the)131 480 Q F2(~)2.5 E F0 +(command to tak)2.5 E 2.5(ea)-.1 G 2.5(na)259.77 480 S(ssociated motion.)271.71 +480 Q F2(timeout, to [on])102 492 Q F0 -.35(Ti)131 504 S(me out on k).35 E -.15 +(ey)-.1 G 2.5(sw).15 G(hich may be mapped.)209.84 504 Q F2(ttywerase [off])102 +516 Q F1(Vi)131 528 Q F0(only)2.5 E 5(.S)-.65 G +(elect an alternate erase algorithm.)175.69 528 Q F2 -.1(ve)102 540 S +(rbose [off]).1 E F0(only)131 552 Q 5(.D)-.65 G(isplay an error message for e) +162.85 552 Q -.15(ve)-.25 G(ry error).15 E(.)-.55 E F2(w300 [no default])102 +564 Q F1(Vi)131 576 Q F0(only)2.5 E 5(.S)-.65 G(et the windo)175.69 576 Q 2.5 +(ws)-.25 G(ize if the baud rate is less than 1200 baud.)238.49 576 Q F2 +(w1200 [no default])102 588 Q F1(Vi)131 600 Q F0(only)2.5 E 5(.S)-.65 G +(et the windo)175.69 600 Q 2.5(ws)-.25 G +(ize if the baud rate is equal to 1200 baud.)238.49 600 Q F2 +(w9600 [no default])102 612 Q F1(Vi)131 624 Q F0(only)2.5 E 5(.S)-.65 G +(et the windo)175.69 624 Q 2.5(ws)-.25 G +(ize if the baud rate is greater than 1200 baud.)238.49 624 Q F2(war)102 636 Q +2.5(n[)-.15 G(on])129.9 636 Q F1(Ex)131 648 Q F0(only)2.979 E 5.479(.T)-.65 G +.479(his option causes a w)177.198 648 R .479 +(arning message to the terminal if the \214le has been modi\214ed, since it)-.1 +F -.1(wa)131 660 S 2.5(sl).1 G(ast written, before a)151.73 660 Q F2(!)2.5 E F0 +(command.)2.5 E F2(windo)102 672 Q 1.1 -.55(w, w, w)-.1 H 2.5(i[).55 G(en) +167.19 672 Q(vir)-.4 E(onment v)-.18 E(ariable LINES])-.1 E F0 159.845 +(4.4BSD No)72 750 R -.15(ve)-.15 G(mber 20, 1994).15 E(12)530 750 Q EP +%%Page: 13 13 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R(Set the windo)131 96 Q 2.5(ws) +-.25 G(ize for the screen.)199.36 96 Q/F1 10/Times-Bold@0 SF(wraplen, wl [0]) +102 108 Q/F2 10/Courier-Bold@0 SF(Vi)131 120 Q F0(only)2.5 E 5(.B)-.65 G +(reak lines automatically)176.8 120 Q 2.5(,t)-.65 G +(he speci\214ed number of columns from the left-hand mar)279.47 120 Q(gin.)-.18 +E F1(wrapmar)102 132 Q(gin, wm [0])-.1 E F2(Vi)131 144 Q F0(only)2.5 E 5(.B) +-.65 G(reak lines automatically)176.8 144 Q 2.5(,t)-.65 G +(he speci\214ed number of columns from the right-hand mar)279.47 144 Q(gin.) +-.18 E F1(wrapscan, ws [on])102 156 Q F0 +(Set searches to wrap around the end or be)131 168 Q(ginning of the \214le.) +-.15 E F1(writeany)102 180 Q 2.5(,w)-.55 G 2.5(a[)151.44 180 S(off])162.27 180 +Q F0 -.45(Tu)131 192 S(rn of).45 E 2.5<668c>-.25 G(le-o)171.96 192 Q -.15(ve) +-.15 G(rwriting checks.).15 E F1(ENVIR)72 216 Q(ONMENT)-.3 E 1.666(AL V)-.9 F +(ARIABLES)-1.35 E/F3 10/Courier@0 SF(COLUMNS)102 228 Q F0 .895 +(The number of columns on the screen.)161 228 R .896(This v)5.896 F .896 +(alue o)-.25 F -.15(ve)-.15 G .896(rrides an).15 F 3.396(ys)-.15 G .896 +(ystem or terminal speci\214c)433.712 228 R -.25(va)161 240 S 5.317(lues. If) +.25 F 2.816(the COLUMNS en)5.317 F 2.816(vironmental v)-.4 F 2.816 +(ariable is not set when)-.25 F F2(ex/vi)5.316 E F0 2.816(runs, or the)5.316 F +F1(columns)161 252 Q F0(option is e)2.5 E(xplicitly reset by the user)-.15 E(,) +-.4 E F2(ex/vi)2.5 E F0(enters the v)2.5 E(alue into the en)-.25 E(vironment.) +-.4 E F3(EXINIT)102 264 Q F0 2.5(Al)161 264 S(ist of)173.5 264 Q F2(ex)2.5 E F0 +(startup commands, read if the v)2.5 E(ariable)-.25 E F3(NEXINIT)2.5 E F0 +(is not set.)2.5 E F3(HOME)102 276 Q F0 .677(The user')161 276 R 3.177(sh)-.55 +G .677(ome directory)211.234 276 R 3.177(,u)-.65 G .678 +(sed as the initial directory path for the startup)277.758 276 R F3 +($HOME/.nexrc)3.178 E F0(and)161 288 Q F3($HOME/.exrc)2.865 E F0 2.865 +(\214les. This)2.865 F -.25(va)2.865 G .365(lue is also used as the def).25 F +.365(ault directory for the)-.1 F F2(vi)2.865 E F1(cd)2.865 E F0(com-)2.865 E +(mand.)161 300 Q F3(LINES)102 312 Q F0 .629(The number of ro)161 312 R .629 +(ws on the screen.)-.25 F .629(This v)5.629 F .629(alue o)-.25 F -.15(ve)-.15 G +.629(rrides an).15 F 3.13(ys)-.15 G .63(ystem or terminal speci\214c v)416.08 +312 R(al-)-.25 E 3.123(ues. If)161 324 R .623(the LINES en)3.123 F .623 +(vironmental v)-.4 F .623(ariable is not set when)-.25 F F2(ex/vi)3.122 E F0 +.622(runs, or the)3.122 F F1(lines)3.122 E F0 .622(option is)3.122 F -.15(ex) +161 336 S(plicitly reset by the user).15 E(,)-.4 E F2(ex/vi)2.5 E F0 +(enters the v)2.5 E(alue into the en)-.25 E(vironment.)-.4 E F3(NEXINIT)102 348 +Q F0 2.5(Al)161 348 S(ist of)173.5 348 Q F2(ex)2.5 E F0(startup commands.)2.5 E +F3(SHELL)102 360 Q F0(The user')161 360 Q 2.5(ss)-.55 G +(hell of choice \(see also the)208.77 360 Q F1(shell)2.5 E F0(option\).)2.5 E +F3(TERM)102 372 Q F0 1.338(The user')161 372 R 3.838(st)-.55 G 1.338 +(erminal type.)210.336 372 R 1.338(The def)6.338 F 1.338(ault is the type `)-.1 +F(`unkno)-.74 E(wn')-.25 E 1.339('. If the TERM en)-.74 F(vironmental)-.4 E +-.25(va)161 384 S .106(riable is not set when).25 F F2(ex/vi)2.606 E F0 .105 +(runs, or the)2.605 F F1(term)2.605 E F0 .105(option is e)2.605 F .105 +(xplicitly reset by the user)-.15 F(,)-.4 E F2(ex/vi)2.605 E F0(enters the v) +161 396 Q(alue into the en)-.25 E(vironment.)-.4 E F3(TMPDIR)102 408 Q F0 +(The location used to stored temporary \214les \(see also the)161 408 Q F1(dir) +2.5 E(ectory)-.18 E F0(option\).)2.5 E F1(ASYNCHR)72 432 Q 1.666(ONOUS EVENTS) +-.3 F F0(SIGALRM)102 444 Q F2(Vi/ex)167 444 Q F0 1.58(uses this signal for per\ +iodic backups of \214le modi\214cations and to display `)4.08 F(`b)-.74 E(usy') +-.2 E(')-.74 E(messages when operations are lik)167 456 Q(ely to tak)-.1 E 2.5 +(eal)-.1 G(ong time.)354.54 456 Q(SIGHUP)102 468 Q 18.61(SIGTERM If)102 480 R +.12(the current b)2.62 F(uf)-.2 E .12(fer has changed since it w)-.25 F .12 +(as last written in its entirety)-.1 F 2.62(,t)-.65 G .12 +(he editor attempts to)457.7 480 R(sa)167 492 Q .493 -.15(ve t)-.2 H .193 +(he modi\214ed \214le so it can be later reco).15 F -.15(ve)-.15 G 2.693 +(red. See).15 F(the)2.694 E F2(vi/ex)2.694 E F0 .194(Reference manual section) +2.694 F(entitled `)167 504 Q(`Reco)-.74 E -.15(ve)-.15 G(ry').15 E 2.5('f)-.74 +G(or more information.)255.19 504 Q 29.73(SIGINT When)102 516 R .594(an interr\ +upt occurs, the current operation is halted, and the editor returns to the com\ +-)3.094 F .364(mand le)167 528 R -.15(ve)-.25 G 2.864(l. If).15 F .364 +(interrupted during te)2.864 F .364(xt input, the te)-.15 F .364 +(xt already input is resolv)-.15 F .365(ed into the \214le as)-.15 F(if the te) +167 540 Q(xt input had been normally terminated.)-.15 E 12.51(SIGWINCH The)102 +552 R 2.772(screen is resized.)5.272 F 2.772(See the)7.772 F F2(vi/ex)5.272 E +F0 2.771(Reference manual section entitled `)5.272 F 2.771(`Sizing the)-.74 F +(Screen')167 564 Q 2.5('f)-.74 G(or more information.)205.96 564 Q(SIGCONT)102 +576 Q(SIGQ)102 588 Q(UIT)-.1 E(SIGTSTP)102 600 Q F2(Vi/ex)167 600 Q F0 +(ignores these signals.)2.5 E F1 -.1(BU)72 624 S(GS).1 E F0(See the \214le)102 +636 Q F3(nvi/docs/bugs.current)2.5 E F0(for a list of the kno)2.5 E(wn b)-.25 E +(ugs in this v)-.2 E(ersion.)-.15 E F1(FILES)72 660 Q F3(/bin/sh)102 672 Q F0 +(The def)221 672 Q(ault user shell.)-.1 E 159.845(4.4BSD No)72 750 R -.15(ve) +-.15 G(mber 20, 1994).15 E(13)530 750 Q EP +%%Page: 14 14 +%%BeginPageSetup +BP +%%EndPageSetup +/F0 10/Times-Roman@0 SF -.834(EX/VI \( 1 \))72 48 R(BSD Reference Manual) +258.235 48 Q -.834(EX/VI \( 1 \))496.682 48 R/F1 10/Courier@0 SF(/etc/vi.exrc) +102 96 Q F0(System-wide vi startup \214le.)221 96 Q F1(/tmp)102 108 Q F0 -.7 +(Te)221 108 S(mporary \214le directory).7 E(.)-.65 E F1(/var/tmp/vi.recover)102 +120 Q F0(The def)5 E(ault reco)-.1 E -.15(ve)-.15 G(ry \214le directory).15 E +(.)-.65 E F1($HOME/.nexrc)102 132 Q F0(1st choice for user')221 132 Q 2.5(sh) +-.55 G(ome directory startup \214le.)308.76 132 Q F1($HOME/.exrc)102 144 Q F0 +(2nd choice for user')221 144 Q 2.5(sh)-.55 G(ome directory startup \214le.) +312.09 144 Q F1(.nexrc)102 156 Q F0 +(1st choice for local directory startup \214le.)221 156 Q F1(.exrc)102 168 Q F0 +(2nd choice for local directory startup \214le.)221 168 Q/F2 10/Times-Bold@0 SF +1.666(SEE ALSO)72 192 R F1(ctags)102 204 Q F0(\(1\),)A F1(more)5 E F0(\(1\),)A +F1(curses)5 E F0(\(3\),)A F1(dbopen)5 E F0(\(3\))A(The `)102 228 Q(`V)-.74 E +2.5(iQ)-.6 G(uick Reference')145.09 228 Q 2.5('c)-.74 G(ard.)218.2 228 Q -.74 +(``)102 252 S(An Introduction to Display Editing with V).74 E(i')-.6 E +(', found in the `)-.74 E(`UNIX User')-.74 E 2.5(sM)-.55 G(anual Supplementary) +412.2 252 Q(Documents')102 264 Q 2.5('s)-.74 G +(ection of both the 4.3BSD and 4.4BSD manual sets.)159.86 264 Q +(This document is the closest thing a)5 E -.25(va)-.2 G(il-).25 E +(able to an introduction to the)102 276 Q/F3 10/Courier-Bold@0 SF(vi)2.5 E F0 +(screen editor)2.5 E(.)-.55 E -.74(``)102 300 S(Ex Reference Manual \(V).74 E +(ersion 3.7\)')-1.11 E(', found in the `)-.74 E(`UNIX User')-.74 E 2.5(sM)-.55 +G(anual Supplementary Documents')381.92 300 Q 2.5('s)-.74 G(ec-)526.99 300 Q +(tion of both the 4.3BSD and 4.4BSD manual sets.)102 312 Q +(This document is the \214nal reference for the)5 E F3(ex)2.5 E F0(editor)2.5 E +2.5(,a)-.4 G(s)528 312 Q(distrib)102 324 Q +(uted in most historic 4BSD and System V systems.)-.2 E -.74(``)102 348 S +(Edit: A tutorial').74 E(', found in the `)-.74 E(`UNIX User')-.74 E 2.5(sM) +-.55 G(anual Supplementary Documents')300.58 348 Q 2.5('s)-.74 G +(ection of the 4.3BSD)445.65 348 Q(manual set.)102 360 Q +(This document is an introduction to a simple v)5 E(ersion of the)-.15 E F3(ex) +2.5 E F0(screen editor)2.5 E(.)-.55 E -.74(``)102 384 S(Ex/V).74 E 2.5(iR)-.6 G +(eference Manual')140.38 384 Q(', found in the `)-.74 E(`UNIX User')-.74 E 2.5 +(sM)-.55 G(anual Supplementary Documents')339.39 384 Q 2.5('s)-.74 G +(ection of the)484.46 384 Q(4.4BSD manual set.)102 396 Q +(This document is the \214nal reference for the)5 E F3(nex/nvi)2.5 E F0(te)2.5 +E(xt editors, as distrib)-.15 E(uted in)-.2 E(4.4BSD and 4.4BSD-Lite.)102 408 Q +F3(Roff)102 426 Q F0(source for all of these documents is distrib)2.5 E +(uted with)-.2 E F3(nex/nvi)2.5 E F0(in the)2.5 E F1(nvi/USD.doc)2.5 E F0 +(directory of the)2.5 E F3(nex/nvi)102 438 Q F0(source code.)2.5 E +(The \214les `)102 462 Q(`auto)-.74 E(write')-.25 E(', `)-.74 E(`input')-.74 E +(', `)-.74 E(`quoting')-.74 E(', and `)-.74 E(`structures')-.74 E +(', found in the)-.74 E F1(nvi/docs/internals)2.5 E F0(direc-)2.5 E +(tory of the)102 474 Q F3(nex/nvi)2.5 E F0(source code.)2.5 E F2(HIST)72 498 Q +(OR)-.18 E(Y)-.35 E F0(The)102 510 Q F3(nex/nvi)2.5 E F0(replacements for the) +2.5 E F3(ex/vi)2.5 E F0(editor \214rst appeared in 4.4BSD.)2.5 E F2(ST)72 534 Q +(AND)-.9 E(ARDS)-.35 E F3(Nex/nvi)102 546 Q F0 .1 +(is close to IEEE Std1003.2 \(`)2.6 F(`POSIX')-.74 E 2.6('\). That)-.74 F .1 +(document dif)2.6 F .1(fers from historical)-.25 F F3(ex/vi)2.6 E F0 .1 +(practice in)2.6 F(se)102 558 Q -.15(ve)-.25 G +(ral places; there are changes to be made on both sides.).15 E 159.845 +(4.4BSD No)72 750 R -.15(ve)-.15 G(mber 20, 1994).15 E(14)530 750 Q EP +%%Trailer +end +%%EOF -- 2.20.1