Sunday, July 15, 2012

Re: g_ different from :normal! g_

Am 28.06.2012 22:32, schrieb rockybalboa4:
> 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?

It's not a bug,
:h {motion}

"Ex commands can be used to move the cursor ... The motion is always
characterwise exclusive"

About "exclusive":
:h exclusive

You can get an inclusive motion with
dv:normal! g_

:h o_v

--
Andy

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

Post a Comment