📄 elvis.9
字号:
3368(whether)S3798(it)S3905(has)S4105(been)S4372(modi\256ed,)S4870(the)S4416 V936(number)S1335(of)S1466(lines)S1725(in)S1849(the)S2027(\256le,)S2242(and)S2446(the)S2624(current)S2998(line)S3210(number.)S4692 V12 B936(Multiple)S1411(Files)S5004 V12 R1800(args)S2032([\256les])S5142 V(next[!])331 1800 A2161([\256les])S5280 V(Next[!])359 1800 A5418 V(previous[!])539 1800 A5556 V(rewind[!])460 1800 A5832 V936(When)S(you)180 1254 A(invoke)328 1464 A12 I1822(elvis)S12 R2075(from)S(your)221 2341 A2592(shell's)S2939(command)S3445(line,)S3687(any)S3891(\256lenames)S4386(that)S(you)180 4599 A4810(give)S5970 V936(to)S12 I1072(elvis)S12 R1336(as)S1478(arguments)S2023(are)S2213(stored)S2550(in)S2685(the)S2874(args)S3117(list.)S3367(The)S3596(\(ar\)gs)S3921(command)S(will)190 4438 A4669(display)S6108 V936(this)S1141(list,)S1350(or)S1481(de\256ne)S1806(a)S1890(new)S2122(one.)S6384 V936(The)S1162(\(n\)ext)S1490(command)S2004(switches)S2460(from)S2734(the)S2921(current)S3304(\256le)S3498(to)S3631(the)S3818(next)S4065(one)S4278(in)S4411(the)S4598(args)S4839(list.)S6522 V936(You)S1174(may)S1412(specify)S1792(a)S1876(new)S2108(args)S2340(list)S2519(here,)S2788(too.)S6798 V936(The)S1154(\(N\)ext)S1502(and)S1707(\(pre\)vious)S2236(commands)S2790(\(they're)S3206(really)S3514(aliases)S3869(for)S4042(the)S4221(same)S4501(command\))S6936 V936(switch)S1283(from)S1549(the)S1727(current)S2101(\256le)S2286(to)S2410(the)S(preceding)477 2588 A3095(\256le)S3280(in)S3404(the)S3582(args)S3814(list.)S8427 VEP%%Page: 10 10BP/slant 0 def/height 0 def1130 V12 B936(10)S1380 V12 R936(The)S1154(\(rew\)ind)S1603(command)S2109(switches)S2557(from)S2823(the)S3001(current)S3375(\256le)S3560(to)S3684(the)S3862(\256rst)S4081(\256le)S4266(in)S4390(the)S4568(args)S4800(list.)S1794 V12 B936(Switching)S1478(Files)S2244 V12 R(edit[!])305 1800 A2135([\256le])S2382 V(tag[!])271 1800 A2101(tagname)S2658 V936(The)S1160(\(e\)dit)S1460(command)S1972(allows)S2326(to)S2457(switch)S2811(from)S3084(the)S3269(current)S3650(\256le)S3842(to)S3973(some)S4265(other)S4551(\256le.)S4803(This)S2796 V936(has)S1127(nothing)S1525(to)S1649(do)S1799(with)S2045(the)S2223(args)S2455(list,)S2664(by)S2814(the)S2992(way.)S3072 V936(The)S1165(\(ta\)g)S1436(command)S(looks)261 1953 A2255(up)S2416(a)S2511(given)S2820(tagname)S3271(in)S3406(a)S3501(\256le)S3698(called)S4030(`)S4061(`tags".)S4448(This)S4705(tells)S4950(it)S3210 V936(which)S1277(\256le)S1477(the)S1670(tag)S1863(is)S1989(in,)S2157(and)S2375(how)S2627(to)S2765(\256nd)S2996(it)S3108(in)S3246(that)S3472(\256le.)S12 I3731(Elvis)S12 R4018(then)S4270(switches)S4732(to)S4870(the)S3348 V936(tag's)S1202(\256le)S1387(and)S1591(\256nds)S1855(the)S2033(tag.)S3762 V12 B936(Exiting)S4212 V12 R(quit[!])311 1800 A4350 V1800(wq)S4488 V1800(xit)S4764 V936(The)S1154(\(q\)uit)S1454(command)S1960(exits)S2219(from)S2485(the)S2663(editor)S(without)370 2976 A3376(saving)S(your)221 3721 A3972(\256le.)S5040 V936(The)S1156(\(wq\))S1418(and)S1625(\(x\)it)S1868(commands)S2424(\(really)S2775(two)S2990(names)S3332(for)S3507(the)S3688(same)S3970(command\))S4520(both)S4767(write)S5178 V936(the)S1114(\256le)S1299(before)S(exiting.)366 1639 A5454 V12 B936(File)S1162(I/O)S5766 V12 R936([line])S1800(read)S2039(\256le)S5904 V936([line][,line])S(write[!][[>>]\256le])829 1800 A6180 V936(The)S(\(r\)ead)291 1154 A1475(command)S1981(gets)S2206(text)S2418(from)S2684(another)S3077(\256le)S3262(and)S3466(inserts)S3813(it)S3911(after)S4165(the)S4343(speci\256ed)S4803(line.)S6456 V936(The)S1154(\(w\)rite)S1517(command)S2023(writes)S2352(the)S2531(whole)S2858(\256le,)S3074(or)S3206(just)S3412(part)S3632(of)S3764(it,)S3893(to)S4018(some)S4304(other)S4584(\256le.)S4830(The)S6594 V936(!,)S1059(if)S1186(present,)S(will)190 1618 A1860(permit)S2229(the)S2429(lines)S2710(to)S2856(be)S(written)345 3022 A3419(even)S3698(if)S(you've)335 3824 A4210(set)S4396(the)S(readonly)423 4595 A6732 V936(option.)S1334(If)S(you)180 1446 A(precede)377 1656 A2063(the)S2241(\256lename)S2688(by)S2838(>>)S3004(then)S3242(the)S3420(lies)S(will)190 3619 A3839(be)S3983(appended)S4475(to)S4599(the)S4777(\256le.)S8427 VEP%%Page: 11 11BP/slant 0 def/height 0 def1130 V12 B4898(11)S1380 V(Directory)499 936 A1692 V12 R1800(cd)S1944([directory])S1830 V1800(chdir)S2079([directory])S1968 V1800(shell)S2244 V936(The)S1170(\(cd\))S1413(and)S1634(\(chd\)ir)S2012(commands)S2582(\(really)S2947(two)S3176(names)S3532(for)S3721(one)S3942(command\))S4506(switch)S4870(the)S2382 V936(current)S1310(working)S1743(directory.)S2658 V936(The)S1154(\(sh\)ell)S1495(command)S2001(starts)S2288(an)S2432(interactive)S2975(shell.)S3003 V12 B936(Debugging)S3384 V12 R936([line][,line])S(debug[!])417 1800 A3522 V(validate[!])507 1800 A3798 V936(These)S1255(commands)S1808(are)S1987(only)S2231(available)S2699(if)S(you)180 2804 A3014(compile)S12 I3434(elvis)S12 R3687(with)S3933(the)S12 B4111(-DDEBUG)S12 R4700(\257ag.)S4074 V936(The)S1156(de\(b\)ug)S1564(command)S2072(lists)S2300(stats)S2549(for)S2724(the)S2905(blocks)S3253(which)S3582(contain)S3971(the)S4152(speci\256ed)S4615(range)S4917(of)S4212 V936(lines.)S1255(If)S1367(the)S1545(!)S1616(is)S1727(present,)S2137(then)S2375(the)S2553(contents)S2986(of)S3117(those)S3402(blocks)S3747(is)S3858(displayed,)S4381(too.)S4488 V936(The)S1178(\(va\)lidate)S1698(command)S2228(checks)S2611(certain)S2996(variables)S3488(for)S3684(internal)S4109(consistency.)S4788(Nor-)S4626 V936(mally)S1247(it)S1350(does)S1606(not)S1795(output)S2138(anything)S2595(unless)S2931(it)S3033(detects)S3404(a)S3492(problem.)S3989(With)S4265(the)S4447(!,)S(though,)364 4552 A4950(it)S4764 V(will)190 936 A1156(always)S(produce)389 1523 A1942(*some*)S2347(output.)S5109 V12 B936(Extensions)S5490 V12 R1116(In)S(addition)396 1254 A1687(to)S1818(the)S2003(standard)S2450(commands,)S3040(a)S3131(variety)S3506(of)S3645(extra)S3926(features)S4349(are)S4536(present)S4924(in)S5628 V12 I1116(elvis)S12 R1369(that)S1581(are)S1760(not)S1944(present)S2324(in)S12 I2448(vi)S12 R2536(.)S2626(They)S2904(are)S3083(described)S3577(below.)S5904 V12 B936(.exrc)S6042 V12 I1116(Elvis)S12 R1398(\256rst)S1627(runs)S1875(a)S12 I1969(.exrc)S12 R2248(\256le)S2443(\(if)S2599(there)S2882(is)S3003(one\))S3258(from)S(your)221 3534 A3795($HOME)S4252(directory.)S4760(After)S6180 V1116(that,)S1368(it)S1476(runs)S1724(a)S12 I1818(.exrc)S12 R2097(\(if)S2253(there)S2536(is)S2657(one\))S2912(from)S3188(the)S3376(current)S3760(directory.)S4297(The)S4524(one)S4737(in)S4870(the)S6318 V1116(current)S1500(directory)S1979(may)S2228(override)S(settings)370 2673 A3084(made)S3387(by)S3548(the)S3737(one)S3952(in)S4087(the)S4276($HOME)S4734(direc-)S6456 V1116(tory.)S6732 V12 B936(:mkexrc)S6870 V936(:mk)S7008 V12 R1116(This)S1363(EX)S1557(command)S2066(saves)S2361(the)S2542(current)S2919(:set)S3121(and)S3328(:map)S3603(con\256gurations)S4327(in)S4454(the)S4635(`)S4666(`.exrc')S4977(')S7146 V1116(\256le)S1301(in)S(your)221 1425 A1676(current)S2050(directory.)S8427 VEP%%Page: 12 12BP/slant 0 def/height 0 def1130 V12 B936(12)S1380 V936(:args)S1518 V936(:ar)S1656 V12 R1116(You)S1354(can)S1552(use)S1743(the)S1921(:args)S2187(command)S2693(to)S2817(de\256ne)S3142(a)S3226(new)S3458(args)S3690(list,)S3899(as)S4030(in:)S1932 V1836(:args)S2102(*.h)S2208 V1116(After)S(you)180 1405 A1616(have)S1876(de\256ned)S2263(a)S2349(new)S2583(args)S2817(list,)S3028(the)S3208(next)S3448(time)S(you)180 3696 A3908(issue)S4182(a)S4268(:next)S4542(command)S2346 V12 I1116(elvis)S12 R(will)190 1369 A1589(switch)S1936(to)S2060(the)S2238(\256rst)S2457(\256le)S2642(of)S2773(the)S2951(new)S3183(list.)S2622 V12 B936(:Next)S2760 V936(:previous)S2898 V936(:N)S3036 V936(:pre)S3174 V12 R1116(These)S1435(commands)S1988(move)S2286(backwards)S(through)375 2834 A3239(the)S3417(args)S3649(list.)S3450 V12 B936(zz)S3588 V12 R1116(In)S1250(VI,)S1442(the)S1623(\(lowercase\))S2224(`)S2255(`zz')S2435(')S2509(command)S(will)190 3018 A3241(center)S3571(the)S3752(current)S4129(line)S4344(on)S4497(the)S4678(screen,)S3726 V1116(like)S1328(`)S1359(`z=")S4002 V12 B936(.)S4140 V12 R1116(The)S1347(default)S(count)268 1727 A2038(value)S2343(for)S2528(.)S2601(is)S2725(the)S2916(same)S3208(as)S3352(the)S3543(previous)S4003(command)S4523(which)S4863(.)S4937(is)S4278 V1116(meant)S1448(to)S1578(repeat.)S1971(However,)S(you)180 2482 A2698(can)S(supply)321 2902 A3259(a)S3349(new)S(count)268 3587 A3891(if)S(you)180 4002 A4218(wish.)S4512(For)S4715(exam-)S4416 V1116(ple,)S1324(after)S1578(`)S1609(`3dw')S1889(',)S1990(`)S2021(`.')S2123(')S(will)190 2194 A2414(delete)S2734(3)S2824(words,)S3180(but)S3364(`)S3395(`5.')S3557(')S(will)190 3628 A3848(delete)S4168(5)S4258(words.)S4692 V12 B936(")S4830 V12 R1116(The)S1348(text)S1574(which)S1914(was)S2147(most)S(recently)391 2426 A(input)248 2861 A3154(\(via)S3388(a)S3487(`)S3518(`cw')S3732(')S3818(command,)S4369(or)S4515(something)S4968 V1116(similar\))S1527(is)S1640(saved)S1947(in)S2073(a)S2159(cut)S2339(buffer)S2668(called)S2989(".)S3099(\(which)S3467(is)S3579(a)S3664(pretty)S3978(hard)S4224(name)S4517(to)S4642(write)S4924(in)S5106 V1116(an)S1260(English)S1659(sentence\).)S2207(You)S2445(can)S2643(use)S2834(this)S3039(with)S3285(the)S3463(`)S3494(`p')S3626(')S3697(or)S3828(`)S3859(`P')S3998(')S4069(commands)S4622(thusly:)S5313 V1836(".p)S5520 V12 B936(K)S5658 V12 R1116(You)S1354(can)S1552(move)S1850(the)S2028(cursor)S2361(onto)S2605(a)S2690(word)S2970(and)S3175(press)S3455(shift-K)S3831(to)S3956(have)S12 I4215(elvis)S12 R4469(run)S4661(a)S4746(refer-)S5796 V1116(ence)S1377(program)S1826(to)S(look)214 1959 A2212(that)S2433(word)S2721(up.)S2940(This)S3194(command)S3709(alone)S4010(is)S4129(worth)S4450(the)S4636(price)S4917(of)S5934 V1116(admission!)S1707(See)S1912(the)S2090(ctags)S2369(and)S2573(ref)S2739(programs.)S6210 V12 B(input)276 936 A6348 V12 R1116(You)S1366(can)S(backspace)497 1576 A2115(back)S2385(past)S2622(the)S2812(beginning)S3336(of)S3479(the)S3669(line.)S3953(If)S(you)180 4077 A4300(type)S4551(CTRL-A,)S6486 V1116(then)S1356(the)S1536(text)S1750(that)S(you)180 1964 A(input)248 2175 A2454(last)S2654(time)S2901(is)S3013(inserted.)S3488(You)S(will)190 3727 A3948(remain)S4316(in)S(input)248 4441 A4720(mode,)S6624 V1116(so)S(you)180 1270 A1497(can)S(backspace)497 1712 A2256(over)S2518(part)S2754(of)S2902(it,)S3047(or)S3195(add)S3416(more)S3712(to)S3853(it.)S4028(\(This)S4331(is)S4459(sort)S4688(of)S4836(like)S6762 V1116(CTRL-@)S1607(on)S1757(the)S1935(real)S2148(vi,)S2302(except)S2648(that)S2860(CTRL-A)S3327(really)S3634(works.\))S7038 V1116(Real)S12 I1407(vi)S12 R1564(can)S1801(only)S2085(remember)S2647(up)S2837(to)S(128)180 3001 A3251(characters)S3814(of)S(input,)278 3985 A4333(but)S12 I4557(elvis)S12 R4850(can)S7176 V1116(remember)S1638(any)S(amount.)392 1842 A8427 VEP%%Page: 13 13BP/slant 0 def/height 0 def1130 V12 B4898(13)S1380 V936(:set)S12 R1149(charattr)S1518 V12 B936(:se)S12 R1108(ca)S1656 V12 I1116(Elvis)S12 R1400(can)S1609(display)S2000(`)S(`backslash-f')634 2031 A2655(')S2738(style)S3009(character)S3497(attributes)S3991(on)S4153(the)S4343(screen)S4695(as)S(you)180 4838 A1794 V1116(edit.)S1388(The)S1606(following)S2107(example)S2547(shows)S2879(the)S
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -