How to jump to the beginning of the current function body in Vim?

前端 未结 7 1555
抹茶落季
抹茶落季 2021-02-02 05:14

As title, if I\'m in the middle of function body and the function body is very long, how can I jump back to the beginning of the function body .

7条回答
  •  迷失自我
    2021-02-02 05:54

    For functions contained in a pair of curly-braces {}:

    Jump to beginning: [{

    Jump to end: ]}

    Replace the curly-blackets by parens or square-brackets for functions that use those.

提交回复
热议问题