Wednesday, May 2, 2012

Re: motion t} does not work

Thank you for your help John.
Your example does work.

I now realize that t{char} is a line motion. I thought (wrongly) it
was looking for the first matching character to the right or below
where the cursor is.

Is there a way to quickly select all text starting from the current
position of the cursor to the specified character even if the
specified character is not on the same line?

For example if the cursor is between d and e on the next two lines

abc{def
ghijkl}mn

I would like to figure out a quick way for Vim to select

'ef
ghijkl'

Thank you,
Antonis

On Wed, May 2, 2012 at 2:45 PM, John Beckett <johnb.beckett@gmail.com> wrote:
> A Loumiotis
>> The motion t{char} does not work when the character I choose is "}".
>> Does anyone know why?
>> I use gvim 7.3 on Windows XP.
>
> Please spell out what happens and what you expect.
>
> Does it work after starting with 'vim -N -u NONE'?
>
> On next line, 0vt} correctly selects 'abc{def' on my system:
> abc{def}ghi
>
> John
>
> --
> 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 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