Roman’s Home

vi commands

Basic vi commands

Cheat sheet (pdf)

  • replace: %s/old/new/g
  • search: /text
  • repeat search: n
  • save: w
  • quit: q
  • quit without saving: q!
  • quit and save: ZZ

May 5, 2010 Posted by | linux | Leave a Comment

   

Follow

Get every new post delivered to your Inbox.