150 likes | 232 Views
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)
E N D
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) • Some new variants with advanced operating commands • Basic commands implemented in all variants of vi
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
Moving the cursor cannot use mouse designed for Qwerty keyboard, can use non-arrow keys
Undo • toggle the last action • cannot go more than one step
Insert and add text put vi into insert mode Press <ESC> to exit insert mode
delete text work in command mode
cut and paste work in command mode
search text work in command mode
Applications <TAG\b[^>]*>\(.*?\)</TAG> [A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}
text processing utilities is NEXT