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 .
there are so many cases where this is wrong.....
KevinDTimm
2010-01-21 13:39:05
Are there really "so many cases where this can go wrong"? The question specifically ask from "in the middle of function body", and when writing C code it should be a very non-standard coding style for a function not starting with '{' at the beginning of a line as well as having some line within the function also starting with '{'.
hlovdal
2010-02-08 09:22:14
+6
A:
[m
: Go to [count] previous start of a method (for Java or similar structured language).
ax
2010-01-21 13:49:17
+1
A:
BTW, the only relatively sure way to be able to do this is to modify vim, see this post
[edit]
and this only works with languages supported by exuberant ctags. Since we've not been deigned fit to know which language you wish to do this in, it's possible that this answer will not be correct either.
[/edit]
KevinDTimm
2010-01-21 13:49:48
A:
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
Rob Wells
2010-01-21 17:11:57