On 25/04/07, Erlend Hamberg <[EMAIL PROTECTED]> wrote:
On Wednesday 25 April 2007 09:01:49 alebo wrote:
> Whats the reason vim has the function t
> which does the same as f, only moving to the character
> before? It seems useless to me; you can use f insted
> of t always, or...?

If you want to change or delete text to a certain character it would be
annoying to use f, as you then would have to retype that character. ;-)

Brilliant! I didn't know about t before (thanks, alebo). I always need
this in python, where _ is a word character, but you sometimes want to
treat it as a word boundary. For example, suppose you have the cursor
over "o" in the following:

reactor.vent_radioactive_gas()

ciw will replace the entire method "vent_radioactive_gas"
But T_ct_ will replace just "radioactive"

Cheers, Michael

Reply via email to