Posted by on August 9, 2018
|
’ to do that.For example:
ooo xxx ooo xxx ooo xxx
:s/xxx/yyy/g | s/ooo/ppp/g
Result:
ppp yyy ppp yyy ppp yyy
For example:
ooo xxx ooo xxx ooo xxx
:s/yyy/xxx/g | s/ooo/ppp/g
Result:
E486: Pattern not found: yyy
e
’ flag to bypass search fail.For example:
ooo xxx ooo xxx ooo xxx
:s/yyy/xxx/ge | s/ooo/ppp/ge
Result:
ppp xxx ppp xxx ppp xxx