Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 429 Bytes

viEditor.md

File metadata and controls

21 lines (14 loc) · 429 Bytes

Vi Editor

When editor is launched, it is COMMAND mode. When you invoke insert command (i), it is in INSERTION/EDIT mode.

Command Mode:

  • Quit = :q
  • Save and Exit = :wq
  • Undo and Exit = :q!
  • Delete all content = :1, $d

Edit Mode

  • Insert before cursor (i), Insert before line (I)
  • Go to the end of line = $
  • Go to the top (H), middle (M), end (L) of the page.

Deleting

  • Delete current line (dd)