Posts

Showing posts with the label vi tutorial part ii

VI Tutorial Part II

We have been through VI with a small tutorial part I link is here Part II of this VI Tutorial goes h3r3 V. Deleting, Copying and Changing The next three operations we will discuss will be deleting, copying, and changing. These three will be discussed together because the methods of describing the text that these commands operate on is identical. There are well over 30 different ways that you can tell VI to move the cursor to a new location in the document. These movements can also be used to describe sections of the document that you wish to perform the delete, copy or change operation on. Typically, you will type a single keystroke which describes the type of operation you wish to perform, (e.g. 'd' to delete), then you type the cursor movement command that will tell vi on which piece of text you would like that operation to work. For example, if 'w' moves one word forward, 'dw' will delete a word, while 'cw' will change a word. These editing comm...