Vi commands

From Objectif Client Inc
Jump to navigation Jump to search

Manipulation

Search and Replace

First One on the line

:s/OLD/NEW

All occurences of the line

:s/OLD/NEW/g

Replace All (Globally)

:s/OLD/NEW/g

Display Command

Display line Number

Press :

 set number or set nonumber