[plug] re: replacing text in search

Cameron Patrick cameron at patrick.wattle.id.au
Sat Aug 2 15:26:44 WST 2003


On Sat, Aug 02, 2003 at 02:41:46PM +0800, Craig Ringer wrote:

| I'm not sure if there's a way to avoid having to use the :1,$ notation 
| to say 'all of file' but when I've tried to use s regex without this, ie
| :s/blah/bloh/g
| it fails.

Jon had it right - you use the % i.e. %s/blah/asdf/g seems to work, at
least in Vim.

Cameron.



More information about the plug mailing list