How to jump to a specific character in vim?

Jeff picture Jeff · Feb 22, 2012 · Viewed 62.7k times · Source

How can I jump to the next character X in vim?

I frequently use, e.g., dt: or ct: to delete/change everything up until a colon (or some other character).

Is there any short key combo to simply move my cursor position to that character?

Answer

Lars Kotthoff picture Lars Kotthoff · Feb 22, 2012

You can type f<character> to put the cursor on the next character and F<character> for the previous one.