Vi commands

From Objectif Client Inc
Revision as of 20:09, 11 December 2016 by Nicolas Rollin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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