VIM substitutions

Substitution of a text by another text within a single line (replace I by We):

:s/I/We/g

Case-insensitive:

:s/I/We/gi

Substitute helo for hello in the next 4 lines:

:s/helo/hello/g 4

Comments

Popular posts from this blog

General linux performance troubleshooting

Asterisk works under OpenVZ (no zaptel)