I've been trying Vim for any text editing work for almost a week now. I want to know the fastest way to select a C function definition.
For example, if I have a function like this:
void helloworlds( int num )
{
int n;
for ( n = 0; n < num; ++n ) {
printf( "Hello World!\n" );
}
}
How would I be able to delete the whole definition including the function name?
va}o-0
. If{
is at the same line with function signature, for examplevoid helloworlds( int num ) {
, then useva}o0
. – Hong Jan 18 '17 at 0:50