On 25-May-2012 11:24:34 -0700 (PDT), Ben Fritz wrote: > On Friday, May 25, 2012 10:41:39 AM UTC-5, James McCoy wrote: >> On Fri, May 25, 2012 at 07:05:49AM -0700, Ben Fritz wrote: >>> On Friday, May 25, 2012 6:12:51 AM UTC-5, Bram Moolenaar wrote: >>>> Christian Brabandt wrote: >>>> >>>>> Bram, >>>>> attached patch fixes this issue from the todo list: >>>>> >>>>> ,---- >>>>> | Use a count before "v" and "V" to select that many characters or lines? >>>>> | (Kikyous) >>>>> `---- >>>> >>>> Thanks, that's useful. I will change it to take care of 'selectmode'. >>>> And update the docs. >>>> >>> >>> Will this break typing 1v to reselect an area equal to the last visual >>> selection, but at the new cursor position? From just below :help >>> <LeftRelease>: >> >> I saw that in the docs when reviewing your patch, but I couldn't >> actually get Vim to do what it said should happen. 1v just made Vim >> beep at me. So, did that actually work or am I just unable to figure >> what needs to be done to make it work? >> > > I've found that in order for 1v to work, you need to have "done > something" with the last visual selection. E.g. this will not work: > > vaw<Esc>3w1v (enter visual mode, select a word, leave visual mode, > move forward 3 words, try to select the same sized visual area) > > But this will work: > > vawy3w1v (enter visual mode, select a word, yank it, move forward 3 > words, select the same sized visual area)
Yeah, I noticed that, too. This is probably due to an implementation detail, and I think it should be changed. I would have expected 1v to work as soon as the visual selection has been quit via <Esc>; i.e. as soon as gv is able to restore it. -- regards, ingo -- 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