1 / 5

Unit 3 – The vi editor

Unit 3 – The vi editor. Understand the importance of vi in Unix Be able to use vi Create and change text, copy and paste Search for patterns, global multiple changes Read and write portions of files Edit multiple files Cut and past from other text displays. Importance of vi.

lotte
Download Presentation

Unit 3 – The vi editor

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Unit 3 – The vi editor • Understand the importance of vi in Unix • Be able to use vi • Create and change text, copy and paste • Search for patterns, global multiple changes • Read and write portions of files • Edit multiple files • Cut and past from other text displays

  2. Importance of vi • Importance of vi and its variants in Unix • Available in any Unix system even if the system is running at low level without X-windows, vi does not need a window, it can work in the terminal display • Vi is a powerful full screen editor • Old style, vim • Arrow keys sometimes work, sometimes don't, you have to find out. Sometimes you have to leave input mode when navigating, sometimes don't • You should know a modicum of vi

  3. Using vi • Input mode • Command mode • Switching between these two • Commands: i o yy p P x dd • Repeat last command

  4. More vi commands • Search for patterns • Search and replace patterns • Save file • Quit vi • Commands: s w q

  5. More vi commands • Read and write portions of files • Join lines • Edit multiple files • Commands: r w J e n

More Related