Tuesday, February 21, 2012

What I learnt playing "vimgolf: replacing each line of a block selection"

The substitute command can use delimiters other than /.

For example, let's say you want to replace the path a/b/c with d/e in the current line.

You could use the usual / as the delimiter and escape the forward slashes in the pattern and replacement like this:
:s/a\/b\/c/d\/e/

But it would be much easier to another delimiter, say ; and avoid the escaping like this:
:s;a/b/c;d/e;

See :help E146 for more detail

1 comment:

Luminati said...

Very important article for online user. Advert networks use Luminati to anonymously view their advertisers' touchdown pages to make sure they do not comprise malware, or improper promoting.luminati is the biggest proxy community on the planet that is present proxy service, shared proxy,residential proxy extra then 223 –°ountries,26,846 Cities. If advert networks used a daily server primarily based popular shared proxy community, the malicious advertiser would know he is being checked, and will cloak them with a special message.One easy interface to entry Luminati's Residential IP community, Datacenter Shared Proxies, Non-public Proxies, and Cell proxy community.Retailers worth their merchandise algorithmically relative to competitor’s pricing.I know about set default proxy enable the code is <defaultProxy enabled="true"They use the Luminati proxy to scrape this information with out being blocked or deceived.Advert networks use Luminati to anonymously view their advertisers' touchdown pages to make sure they do not comprise malware, or improper promoting. If advert networks used a daily server primarily based popular community, the malicious advertiser would know he is being checked, and will cloak them with a special message.