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

Networker automated recovery testing using the REST API - introduction

Tips for being a better system administrator