Go to the end of the C++ function in Vim


Question

If I am in the middle of the function, I would like go to the very end of it in vim. I run into this problem as we sometimes have function of 500+ lines long (don't ask why).

I use vim, gvim.

1
17
3/23/2009 7:54:40 PM

Accepted Answer

You can use the "]}" command. You may have to repeat it depending on how nested you are.

21
3/23/2009 7:41:33 PM

][ goes to the next '}' in the first column.

Read :help 29.3 to find out more about moving through a program.


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon