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 .
Press 0 to go to the beginning of a line, or ^ to go to the first non-blank character in a line.
Type "gg" in command mode. This brings the cursor to the first line.
Vim has a built in function to go to the definition by doing a clever search: With the cursor over a keyword, press gd or gD .
CTRL+O and CTRL+I , for jumping back and forward.
[m
Go to [count] previous start of a method
Works for Java or similar structured languages, and for Python as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With