Vi commands

From Objectif Client Inc
Jump to navigation Jump to search

Manipulation

Search and Replace

=One-by-One

:s/OLD/NEW

Replace All (Globally)

:%s/OLD/NEW/g

Display Command

Display line Number

Press :

 set number or set nonumber