Podobne
- Strona startowa
- Linux. .Mandrake.10.Podręcznik.Użytkownika.[eBook.PL] (3)
- Linux administracja sieciami zaawansowane ( 554 strony )
- Sams' Teach Yourself Linux In 24 Hours
- Bruce Morris Adventure Guide Florida Keys & Everglades National Park (2005)
- Linux Installation and Getting Started
- Linux Podręcznik Administratora Sieci
- Tolkien J R R Wladca Pierscieni T 3 Powrot Krola
- Mika Waltari Egipcjanin Sinuhe
- Watala Elwira Seks w krolewskich alkowach
- Robert Jordan Smok Odrodzony
- zanotowane.pl
- doc.pisz.pl
- pdf.pisz.pl
- pero.xlx.pl
Cytat
Do celu tam się wysiada. Lec Stanisław Jerzy (pierw. de Tusch-Letz, 1909-1966)
A bogowie grają w kości i nie pytają wcale czy chcesz przyłączyć się do gry (. . . ) Bogowie kpią sobie z twojego poukładanego życia (. . . ) nie przejmują się zbytnio ani naszymi planami na przyszłość ani oczekiwaniami. Gdzieś we wszechświecie rzucają kości i przypadkiem wypada twoja kolej. I odtąd zwyciężyć lub przegrać - to tylko kwestia szczęścia. Borys Pasternak
Idąc po kurzych jajach nie podskakuj. Przysłowie szkockie
I Herkules nie poradzi przeciwko wielu.
Dialog półinteligentów równa się monologowi ćwierćinteligenta. Stanisław Jerzy Lec (pierw. de Tusch - Letz, 1909-1966)
[ Pobierz całość w formacie PDF ]
.It is recommended you have a machine to practice with, as you proceed through the tutorial.A.3.1 Invoking viTo invoke vi, simply type the letters vi followed by the name of the le you wish to create.You willsee a screen with a column of tildes ~ along the left side.vi is now in command mode.Anythingyou type will be understood as a command, not as text to be input.In order to input text, youmust type a command.The two basic input commands are the following:i insert text to the left of the cursora append text to the right of the cursorSince you are at the beginning of an empty le, it doesn't matter which of these you type.Typeone of them, and then type in the following text a poem by Augustus DeMorgan found in The UnixProgramming Environment by B.W.Kernighan and R.Pike :Great fleas have little fleas Enterupon their backs to bite ' em, EnterAnd little fleas have lesser fleas Enterand so ad infinitum.EnterAnd the great fleas themselves, in turn, Enterhave greater fleas to go on; EnterWhile these again have greater still, Enterand greater still, and so on.EnterEscNote that you press the Esc key to end insertion and return to command mode.A.3.2 Cursor movement commandsh move the cursor one space to the leftj move the cursor one space downk move the cursor one space upl move the cursor one space to the rightThese commands may be repeated by holding the key down.Try moving around in your textnow.If you attempt an impossible movement, e.g., pressing the letter k when the cursor is on thetop line, the screen will ash, or the terminal will beep.Don't worry, it won't bite, and your le willnot be harmed.134 APPENDIX A.INTRODUCTION TO VIA.3.3 Deleting textx delete the character at the cursordd delete a lineMove the cursor to the second line and position it so that it is underneath the apostrophe in ' em.Press the letter x , and the ' will disappear.Now press the letter i to move into insert mode andtype the letters th.Press Esc when you are nished.A.3.4 File saving: w save write to disk: q exitMake sure you are in command mode by pressing the Esc key.Now type :w.This will saveyour work by writing it to a disk le.The command for quitting vi is q.If you wish to combine saving and quitting, just type :wq.There is also a convenient abbreviation for :wq | ZZ.Since much of your programming work willconsist of running a program, encountering a problem, calling up the program in the editor to makea small change, and then exiting from the editor to run the program again, ZZ will be a commandyou use often.Actually, ZZ is not an exact synonym for :wq |if you have not made any changesto the le you are editing since the last save, ZZ will just exit from the editor whereas :wq willredundantly save before exiting.If you have hopelessly messed things up and just want to start all over again, you can type :q!remember to press the Esc key rst.If you omit the !, vi will not allow you to quit withoutsaving.A.3.5 What's nextThe ten commands you have just learned should be enough for your work.However, you have justscratched the surface of the vi editor.There are commands to copy material from one place in a leto another, to move material from one place in a le to another, to move material from one le toanother, to ne tune the editor to your personal tastes, etc.In all, there about 150 commands.A.4 Advanced Vi TutorialThe advantage and power of vi is the ability to use it successfully with only knowing a small subsetof the commands.Most users of vi feel a bit awkward at the start, however after a small amountof time they nd the need for more command knowledge.The following tutorial is assuming the user has completed the quick tutorial above and hencefeels comfortable with vi.It will expose some of the more powerful features of ex vi from copyingA.4.ADVANCED VI TUTORIAL 135text to macro de nitions.There is a section on ex and its settings which helps customize the editor.This tutorial describes the commands, rather then taking you set by set through each of them.It isrecommended you spend the time trying the commands out on some example text, which you cana ord to destroy.This tutorial does not expose all the commands of vi though all of the commonly used commandsand more are covered.Even if you choose to use an alternative text editor, it is hoped you willappreciate vi and what it o ers those who do choose to use it.A.4.1 Moving aroundThe most basic functionality of an editor, is to move the cursor around in the text.Here are moremovement commands.h move the cursor one space to the leftj move one line downk move one line upl move one line rightSome implementations also allow the arrows keys to move the cursor
[ Pobierz całość w formacie PDF ]