Friday, January 22, 2010

Re: Fwd: exclusive vs. inclusive actions and selection

Andy Wokula wrote:

> Am 09.01.2010 15:48, schrieb Bram Moolenaar:
> > This change
> > will fix it for "g_". I wonder if there are other commands that have
> > the same problem.
>
> Same issue occurs with ge and gE .

These move backwards, thus the selection being exclusive doesn't matter.
Using "b" works similarly, the cursor position is not included, thus
using "b" right after "v" doesn't include the cursor position. Same for
"ge" and "gE".

> I checked :helpg |inclusive
> $, g$, g<End>, f{char}, t{char}, <C-End>, e, E, ge, gE
>
>
> Another "issue": Given a line
> abcd efgh
> selection=exclusive, and Visual mode on:
> Whether the cursor "|" is after the "c"
> abc|d efgh
> or after the "d"
> abcd| efgh
> in both cases, e moves the cursor to the end of "efgh".
> When the cursor is after the "c", I expect it to move after the "d".
>
> (gVim 7.2.218)

That's difficult to avoid, since the "e" works like "e" always works,
and then the selection is changed to include the cursor position.
Doing it otherwise could be considered wrong as well.

--
Why is it called "Windows"? "Gates" would be more appropriate...

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: