Vim: Repeat previous motion?

前端 未结 4 926
梦毁少年i
梦毁少年i 2021-02-01 12:15

Let\'s say that I\'m in visual mode, and I type \"aw\" to extend the visual area to include the next word. I\'d like to then include the next couple of words. Is there a singl

4条回答
  •  醉酒成梦
    2021-02-01 12:50

    Well there is a command to repeat every motion made with f,t,F or T Remember that
    fx takes to the next occurrence of the character x
    Fx takes to the previous ocurrence of x
    tx takes you to the character before the next occurrence of x
    Tx takes you you to the character after the previous occurrence of x
    to repeat those motions press

    ;
    

    to repeat them backwards (in the oposite direction) press

    ,
    

提交回复
热议问题