:set list
First occurrence on current line:
:s/OLD/NEW
Globally (all) on current line:
:s/OLD/NEW/g
Between two lines #,#:
:#,#s/OLD/NEW/g
Every occurrence in file:
:%s/OLD/NEW/g
Tags: vi | linux