Thursday, July 9, 2015

Re: V selects past end of line. How to stop this?

Hi Reckoner,

2015-7-10(Fri) 12:48:11 UTC+9 ZyX:
> 2015-07-10 5:36 GMT+03:00 Reckoner <reckoner@gmail.com>:
> > 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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment