Ignore case sensitivity in Vi Editor
To ignore the case sensitivity of the pattern/word use ‘i’ flag, you can use the flag with any of the command described above.
Example – :1,.s/Was/were/gi
Mastering Search and Replace in Vi Editor
Vi Editor, a powerful text editor renowned for its efficiency and versatility, is a staple tool for Unix/Linux users. Mastering its search and replace functionalities can significantly enhance productivity and streamline text editing tasks. In this comprehensive guide, we will delve into various techniques and strategies to effectively search for and replace text within Vi Editor, empowering users to harness its full potential.
Table of Content
- Understanding VI Editor
- Searching in vi editor
- Replacing in vi editor
- To replace all occurences in file Using Vi Editor
- Replace the word within the given range in Vi Editor
- Ignore case sensitivity in Vi Editor
- How to Search and Replace in Vi Editor – FAQs