nogeek001
nogeek001

Reputation: 723

vim command to go to the start of a C function

Is there a command to jump to the start of a C function . While in the body of a function , I would want to jump to the start of the function to see the function name.

Upvotes: 2

Views: 343

Answers (3)

haxpor
haxpor

Reputation: 2601

I use [[, no matter how deep you are inside such function. Use ]] to go to next starting block function.

Upvotes: 1

Derek
Derek

Reputation: 101

Also check out the [m command.

Upvotes: 4

Reuben L.
Reuben L.

Reputation: 2859

Use [{.

That should get you to the opening brace.

Upvotes: 3

Related Questions