Find and Replace in VI or VIM

To find and replace a string in VI or VIM you can use this command.

:%s/foo/bar/igc

Post new comment
The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.