Vim incremental search during substitution

I am terrible at writing vim regular expressions. Whenever I write one to do a substition, it never works the first time because I inevitably end up writing something Perl instead of vim. I fare a lot better when doing a simple search because I have incsearch turned on and I can see in real-time whether my pattern matches.

Is there a way I can have the s command act like / (performing an incremental search) while I am attempting to write a proper pattern?

Answers


I'm not sure but I think there is not a way to do it. By the way, I use a little trick to speed up my substitutions. If you do something like:

:%s//bar

on the command line Vim will use your latest search. So, it's not exactly what you need but still a way to increase a bit your speed doing substitutions.


Need Your Help

WP7 Support TIFF images

silverlight windows-phone-7

I'm trying to display Tiff Images that I have a byte array for. I have come to the conclusion that WP7 does not support images which are TIFF, because setting the stream in the way I have done for ...

Create javascript object from string

javascript jquery arrays object deep

i'm trying to create a javascript function that creates an object using strings for structure and fills it from dom data.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.