Search and Replace Vim

Introduction

Well with my previous post deleting whole lines, I also wanted to delete a whole load of IP addresses which repeat frequently throughout the document and so achieving a clutter free doc.

Fix

Again in vim, a simple find and replace does it all. Type:
 :%s/192.168.1.*/ /g
http://www.engadget.com/2012/07/10/vim-how-to/  

Leave a comment

Your email address will not be published. Comments are moderated before appearing.