Dal CS Computer Vi Reference

  1. Starting Vi
  2. Leaving Vi
  3. Special Notes
  4. Use the escape key, <esc>, to leave insert mode or to cancel an incomplete command.

    If a command doesn't work, try hitting <esc> and entering the command again.

  5. Motion commands
  6. All commands except M, nG, and :n can be preceeded by an integer to indicate the distance to move.

  7. Text entering commands
  8. All commands must be terminated with an <esc> after the text has been entered.

  9. Text deletion commands
  10. All commands can be preceeded by an integer to indicate the number of characters, words, lines etc. to be deleted.

  11. Text alteration commands
  12. The commands R, cw, c) and c} must be terminated with an <esc> after the new text has been entered. All commands, except xp, u, and U can be preceeded by an integer to indicate the amount of alteration to perform.

  13. Text moving commands
  14. The commands Y and "cY can be preceeded by and integer to indicate the number of lines to copy.

  15. Search Commands
  16. Global parameter
  17. Addresses
  18. Instructions
  19. Miscellaneous