News for hackers. Stuff that matters.
Re:Intermediate Vim by contras1970 on Wednesday May 01, 2019 @07:28AM (#19796132)
this is somewhat shorter:

    qq0i"<Esc>A",<Esc>jq@@
i agree this example is silly. i'd do something like

    :%s/.*/"&",/
Re:Intermediate Vim by jnurmine on Wednesday May 01, 2019 @09:54AM (#19796983)
Yeah, it is a toy example on purpose.

Macros really shine when you need to do a bit more complex stuff, there is certainly a cutoff between ease of regex "from the top of my head" vs. spending time formulating it.