On Oct 6, 7:33 pm, Yegappan Lakshmanan <[email protected]> wrote: > On Wed, Oct 6, 2010 at 1:16 PM, Ben Fritz <[email protected]> wrote: > > I'm using gvim 7.3.18 on Windows XP (the "Cream" build, without > > Cream). > > > The behavior specified just below :help <LeftRelease> has no effect in > > my normal Vim setup. With gvim -N -u NONE, it beeps but has no other > > effect. > > > E.g. with gvim -N -u NONE, I enter the following text: > > > aaaaaaaa > > bbbbbbbb > > cccccccc > > > I start a visual selection that contains the first 4 'a' characters: > > > gg0v3l > > You need to an operator (e.g. y) at the end. In the above example, try > using gg0v3ly > > - Yegappan > > > > > I press v again to end the visual selection, and go to the next line > > to try to select the first 4 'b' characters: > > > j01v > > > The '1' is shown briefly at the bottom of the screen, and pressing 'v' > > makes it go away, and Vim beeps. Nothing else happens. > > > I would expect Vim to instead select the first 4 'b' characters, as > > documented: >
Wow, that's weird. As Yegappan points out, actually DOING something to the 1st visual selection (like yanking it) allows the 1v to work exactly as expected, if 'selection' is set to "inclusive". It selects one character too few if 'selection' is set to "exclusive". I suppose the use-case of selecting a visual area, doing nothing with it, and then reselecting the same area should be pretty rare. It should probably be at least mentioned in the :help though if it is not going to be fixed. -- You received this message from the "vim_dev" 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
