Vim中如何跳转到当前函数体的开头? [英] How to jump to the beginning of the current function body in Vim?

查看:49
本文介绍了Vim中如何跳转到当前函数体的开头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如题,如果我在函数体中间,而且函数体很长,怎么跳回到函数体的开头.

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 .

推荐答案

[m

转到[count]个方法的前一个开始

Go to [count] previous start of a method

适用于 Java 或类似的结构化语言,也适用于 Python.

Works for Java or similar structured languages, and for Python as well.

这篇关于Vim中如何跳转到当前函数体的开头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆