On 08/18/10 05:15, John Beckett wrote:
To spell out the issue, put the cursor on 'x' in:
     x abc aec

Type tc (move cursor to character before 'c').
This works (cursor moves to 'b').
Now press ; or , and observe that cursor does NOT move.

Put the cursor on 'b' and type Tc.
Again, pressing ; or , does not move cursor.

I guess this is how it's always been?

To the best of my knowledge, this is how it's always been. The command "works" but it does it by moving the cursor to where it already is. I believe the algorithm is something like "go forward until you find the requested character and then go back one character", which in the above goes forward one character, finds a hit, and then goes back one for a net move of 0 characters.

You can prefix the t/T commands with a count to go to the Nth item if you need. In your example text with the cursor on "x", issuing

  2tc

will put the cursor on "e" as expected.

-tim
(one who regularly uses the t/T/f/F/;/, suite of commands)

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

Reply via email to