Text Editor: vi

Cheatsheet

See this file to download PDF version of cheatsheet.

Useful tools

Search the word “PSC”

  • forward search :/PSC

  • backward search :?PSC

Add the character “#” for the comment-out from the current line to 10 lines below.

  • :.,+10 s/^/#/

Remove the comment-out character “#” from the current line to 10 lines below.

  • :.,+10 s/^#//