Tuesday, August 19, 2014

Re: Peculiar spell-check replacement behavior (bug?)

On 2014-08-19 22:01, Bram Moolenaar wrote:
> > I found it surprising, but am not sure whether this is a bug (and
> > if so, to what degree) or just a mismatch between my expectations
> > and reality (tweaking documentation on "." to clarify what
> > qualifies as a "simple change" might help clear up my
> > misunderstanding).
>
> It's documented:
>
> When a word was replaced the redo command "." will repeat the
> word replacement. This works like "ciw", the good word and <Esc>.
> This does NOT work for Thai and other languages without spaces
> between words.
>
> It's one of those choices where there are always some users who
> expect it to work otherwise.

Okay, as long as it's documented, it's just my misunderstanding then
(though Christian's patch makes it look like it might be a
straight-forward change, I haven't tested it--particularly to ensure
that it doesn't break repeating the no-count case). If Christian's
solution works and fixes the odd Thai edge-case, it would be worth
the subtle change as I still think the current behavior is
unintuitive, even if understandable & documented.

> Anyway, you can easily map "1z=" to some key, while making a map
> that repeats replacing with the same word is much harder.

I only encountered it while playing VimGolf where keystroke-count
matters (and creating mappings costs keystrokes), so it's not the
sort of thing I'd have bumped against in my normal editing.

-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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment