1 / 15

Basic VI

Basic VI. Tran, Van Hoai Faculty of Computer Science and Engineering HCMC Uni. of Technology hoai@cse.hcmut.edu.vn. vi - always available. Default editor in UNIX come along with all UNIXs Original name is Visual Editor Full screen (on terminal)

Télécharger la présentation

Basic VI

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. Basic VI Tran, Van Hoai Faculty of Computer Science and Engineering HCMC Uni. of Technology hoai@cse.hcmut.edu.vn

  2. vi - always available • Default editor in UNIX • come along with all UNIXs • Original name is Visual Editor • Full screen (on terminal) • Some new variants with advanced operating commands • Basic commands implemented in all variants of vi

  3. Operation modes • 2 modes • command: receive actions on edited file • insert: insert text into file • <ESC> to exit insert mode • UNIX and vi are case-sensitive

  4. Get in & out

  5. Moving the cursor cannot use mouse designed for Qwerty keyboard, can use non-arrow keys

  6. Undo • toggle the last action • cannot go more than one step

  7. Insert and add text put vi into insert mode Press <ESC> to exit insert mode

  8. delete text work in command mode

  9. cut and paste work in command mode

  10. search text work in command mode

  11. save and read files

  12. Replacing patterns (1)

  13. Example (6)

  14. Applications <TAG\b[^>]*>\(.*?\)</TAG> [A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}

  15. text processing utilities is NEXT

More Related