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

前端 未结 7 1658
抹茶落季
抹茶落季 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 06:03

    Once you've got moving around blocks and paragraphs in code sorted you might like to look at what you can do when you're in the middle of those blocks by looking at this part of the vim doc's.

    Things like delete the block, insert before the block, append after the block, etc.

    HTH

提交回复
热议问题