Friday, June 29, 2012

Re: g_ different from :normal! g_

On Thursday, June 28, 2012 3:32:53 PM UTC-5, rockybalboa4 wrote:
> Is there any rationale behind the fact that
>
> dg_
>
> yields different results than
>
> d:normal! g_
>
> ? The latter does not reach the last character on the line. Is it documented? Shouldn't it be documented? Is it a bug?

I don't know if it's a bug, or if it's documented somewhere, but it looks like d:normal! g_ is acting in an "exclusive" fashion, even though g_ is normally "inclusive".

With that in mind, this DOES work (for me anyway):

dv:normal! g_

See :help o_v

--
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

No comments: