Wednesday, May 6, 2020

Re: vimgolf E20

On 2020-05-06 11:12, Neil Earnshaw wrote:
> :*s/)/);/
>
> It appends a ';' to each line that ends with a ')'.
>
> But when I try it in vimgolf I get E20 Mark not set.

Assuming you haven't changed your 'cpo' to include "*"

:help cpo-star

the "*" is the same as the range

'<,'>

so

:*s/)/);

appends a semicolon after parens in the previously selected range.

The error suggests that you haven't yet visually-selected anything to
set those marks.

Hope this helps,

-tim

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200506142658.71ae4314%40bigbox.attlocal.net.

No comments: