What do the f and t commands do in Vim?

前端 未结 5 1214
青春惊慌失措
青春惊慌失措 2021-01-29 21:12

Can somebody explain to me what the f and t commands do in vim and exactly how they work? I can\'t seem to find this information but people keep telling me

5条回答
  •  甜味超标
    2021-01-29 21:19

    I find f and t very useful in combination with d and c. For example, ct: will let you replace everything from your cursor up to the next colon, but not delete the colon. You can remember it as "change to colon".

提交回复
热议问题