⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e1

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻
字号:
.nr PS 9.nr VS 11.if t .2C.SHIntroduction.PP.ulEdis a ``text editor'', that is, an interactive programfor creating and modifying ``text'',using directions provided by a user ata terminal.The text is often a documentlike this one,or a programor perhaps data for a program..PPThis introduction is meant to simplify learning.uled.The recommended way to learn.uledis to read this document,simultaneously using.uledto follow the examples,then to read the description in section I of the.ul.UC UNIX.ulProgrammer's Manual,all the whileexperimenting with.uled.(Solicitation of advice from experienced users is also useful.).PPDo the exercises!They cover material not completely discussedin the actual text.An appendix summarizes the commands..SHDisclaimer.PPThis is an introduction and a tutorial.For this reason, no attempt is made tocover more than a part of the facilities that.uledoffers(although this fraction includes the most useful and frequently usedparts).When you have mastered the Tutorial,try.ulAdvanced Editing on.ul.UC UNIX .Also,there is not enough space to explain basic.UC UNIXprocedures.We will assume that you know how to log on to.UC UNIX ,and that you have at least a vague understandingof what a file is.For more on that, read.ul.UC UNIX.ulfor Beginners..PPYou must also know what character to type as the end-of-lineon your particular terminal.This character is the.UC RETURNkey on most terminals.Throughout, we will refer to this character,whatever it is,as.UC RETURN ..SHGetting Started.PPWe'll assume that you have logged in toyour systemand it has just printed the prompt character,usually either a.UL $or a.UL % .Theeasiest way to get.uledis to type.P1ed	(followed by a return).P2You are now ready to go \-.uledis waiting for you to tell it what to do..SHCreating Text \- the Append command ``a''.PPAs your first problem, suppose you want to create some textstarting from scratch.Perhaps you are typing the very firstdraft of a paper; clearly it will have to startsomewhere, and undergo modifications later.This section will show how to get some text in, just toget started.Later we'll talk about how to change it..PPWhen.uledis first started, it is rather like workingwith a blank piece of paper \- there is no textor information present.This must be supplied by the person using.uled;it is usually doneby typing in the text, or by reading it into.uledfrom afile.We will start by typing in some text, and return shortly to how toread files..PPFirst a bit of terminology.In.uledjargon, the text beingworked on is said to be ``kept in a buffer.''Think of thebuffer as a work space, if you like, or simply as the informationthat you are going to be editing.In effect the buffer is like thepiece of paper, on which we will write things, then change someof them, and finally file the whole thing away for another day..PPThe user tells.uledwhat to do to his textby typing instructions called ``commands.''Mostcommands consist of a single letter,which must be typed in lower case.Each command is typedon a separate line.(Sometimes the command is preceded by informationabout what line or lines of text are to be affected \-we will discuss these shortly.).ulEdmakes no responseto most commands \- there is no promptingor typing of messages like ``ready''.(This silence is preferredby experienced users, but sometimes a hangup for beginners.).PPThe first command is.ulappend,written as the letter.P1a.P2allby itself.It means ``append (or add) text lines to the buffer,as I type them in.''Appending is rather likewriting fresh material on a piece of paper..PPSo to enter lines of text into the buffer,just type an.UL afollowed by a.UC RETURN ,followed by the lines of text you want, like this:.P1aNow is the timefor all good mento come to the aid of their party.\*..P2.PPThe only way to stop appending is to type aline that contains only a period.The ``\*.'' is usedto tell.uledthat you have finished appending.(Even experienced users forget that terminating ``\*.''sometimes.If.uledseems to be ignoring you,type an extra line with just ``\*.'' on it.You may then find you've added some garbage linesto your text, which you'll have to take out later.).PPAfter the append command has been done, the buffer willcontain the three lines.P1Now is the timefor all good mento come to the aid of their party..P2The.UL a '' ``and ``\*.'' aren't there, because they arenot text..PPTo add more text to what you already have,just issue another.UL acommand, and continue typing..SHError Messages \- ``?''.PPIf at any time you make an error in the commands you type to.uled,it will tell you by typing.P1?.P2This is about as cryptic as it can be,but with practice, you can usuallyfigure out how you goofed.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -