//
you're reading...

How-to

VI global search and replace

In case you need to search and replace text globally within vi, here’s the command to do so:

:1,$s/old/new

vi is a free software screen-oriented text editor computer program written by Bill Joy in 1976 for an early BSD release.

Peace!  \m/

Discussion

No comments yet.

Post a Comment