Re: vim-like regexp not working
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: Steve H. <dig...@mi...> - 2003-08-16 02:11:39
|
On Fri, 2003-08-15 at 12:32, Sven Vahar wrote: > > I have problems using regexp s&r in Cream....I can't seem to get > Cream accept my regexp (yes, I have it turned on in s&r options.). > When I drop into Vim mode I can do happily: > > %s/\(.*\)@@\(.*\)/foo--\1--bar--\2/g > > But when I try to search for \(.*\)@@\(.*\) in Cream and replace it > with foo--\1--bar--\2 it does nothing. Ugh, you're right. Cream is hammering the slashes regardless of whether the regexp option is selected or not. Try the attached in place of the default file by the same name. Regexp will work like usual Vim (you must use \r for returns in the replace string). Please report back, and if it works for you I'll also update search and multi-file replace with the same fix. -- Steve Hall [ dig...@mi... ] Cream... the Vim text editor in sheep's clothing! http://cream.sourceforge.net |