CPSC 1280 Lecture Notes - Lecture 6: Master Sergeant, Emacs, Paging

27 views4 pages

Document Summary

Deleting text: x : delete a single character, dd : delete current line. Moving text: put the deleted text at the new location (paste, p: put to the right of cursor, p: put to the left of cursor. Joining lines: j: join the next line to the end of current line. Changing case: ~: switch character"s case (upper to lower, lower to upper) Searching for a pattern: /pattern : search pattern forward, ?pattern : search pattern backward. Repeating the last pattern search: n : repeat search in same direction of original search, n : repeat search in reversed direction of original search. Open a line: o : open a new line below current line, o : open a new line above current line. Quit: :q and :q! quit without saving, :wq and :x quit with saving. You can escape to shell without quiting vi: :sh.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents