Author: Robert Hyatt
Date: 22:22:46 05/15/04
Go up one level in this thread
On May 15, 2004 at 12:19:42, Frank Phillips wrote: >How do you substitute a string with spaces in, in Vim? > >eg %s:/some thing with spaces/with this/g > >does not work - because of the search pattern rather than the substitute string. Works fine for me. space is not any kind of special meta-character in regular expressions. I just did :%s/aa bb cc dd/xx yy/g and it worked perfectly... > >I have read a lot, but other than concluding Vim can do almost anything, have >not worked out how to do the above. I would use fgrep of course in other >situations. > >Frank
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.