Wednesday, May 6, 2020

Re: vimgolf E20


On 6. May 2020, at 21:05, 'Chris Willis' via vim_use <vim_use@googlegroups.com> wrote:


 
 
Sent: Wednesday, May 06, 2020 7:44 PM
Subject: Re: vimgolf E20
 
's' is substitute and the '*' applies it to all matching lines in the file

So the same as :%s/foo/bar/g but saving one char?

 
On Wed, May 6, 2020 at 7:38 PM Niels Kobschätzki <niels@kobschaetzki.net> wrote:
 
On 6. May 2020, at 20:13, Neil Earnshaw <neil.earnshaw@gmail.com> wrote:


This command works fine in vim on my chromebook:
 
:*s/)/);/
 
 
What is *s?
 
Cheers,
 
Niels
--
--
really? I've always used :%s

Niels

No comments:

Post a Comment