On Fri, Jul 10, 2015 at 6:25 AM, Marcin Szamotulski <[email protected]> wrote: > Hi Reckoner, > > A one character shorter solution is to use `0y$` but if what you really > need is the visual mode then `g_` seems unavoidable. > > -Marcin
Note that g_ doesn't include any whitespace that might be at the end of the line. If you want that space, you can use 0v$h. > > On 21:59 Thu 09 Jul , h_east wrote: >> Hi Reckoner, >> >> 2015-7-10(Fri) 12:48:11 UTC+9 ZyX: >> > 2015-07-10 5:36 GMT+03:00 Reckoner <[email protected]>: >> > > The normal 'V' command visually selects the line past the end of the >> > > line. I >> > > want to select only to the end of the line, but *not* beyond that. I >> > > looked >> > > at the 'selection' option but that does not help. >> > >> > V is a linewise selection. You *cannot* omit including the line break >> > in linewise selection, its very purpose is to select the whole line. >> > >> > > >> > > What am I missing here? >> > > >> > > Thanks! >> >> Probably you want to 'g_'. >> >> :h g_ >> >> When following command typed in normal mode, Those of your hopes are >> character-wise visual selected. >> >> 0vg_ >> >> -- >> Best regards, >> Hirohito Higashi (a.k.a. h_east) >> >> -- >> -- >> 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 [email protected]. >> For more options, visit https://groups.google.com/d/optout. > > -- > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. -- Eric Christopherson -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
