Thursday, May 7, 2020

Re: vimgolf E20

My basic.vim config file has the following:

    "Make search act like search in modern browsers
    set incsearch

Might this be why '*' is applying the s// expression to all lines?

Or is it this:

    "For regular expressions turn magic on
    set magic

???

On Thu, May 7, 2020 at 7:03 AM Christian Brabandt <cblists@256bit.org> wrote:

On Mi, 06 Mai 2020, Neil Earnshaw wrote:

> Ah ha,
>
> So * on my machine is doing the same % in the standard install.  I got
> my config from somewhere in internet space, hence the difference.
>
> :%s/)/);
>
> ...does the job and doesn't complain about marks.
>
> The idea with vimgolf is to achieve the required edit in a few
> keystrokes as possible. I've got this down to 11 (including ESC, CR
> and ZZ to save), but the best in the rankings is 10 keystrokes, and I
> just can't figure out how to get rid of that last keypress.  : P
>
> Thanks for the help with '%',

Check your compatibility options, :h cpo-*


Best,
Christian
--
Man darf das Schiff nicht an einen einzigen Anker und das Leben nicht
an eine einzige Hoffnung binden.
                -- Epiktet (griechischer Stoiker, 50-138 n.Chr.)

--
--
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/20200507060320.GD23589%40256bit.org.

--
--
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/CA%2Bz-5tjk-Y%3DrK5cFDX7mNi_ujdyOb%3DeN1SpR9W8LuzM72HjXgA%40mail.gmail.com.

No comments: