c++vimvi

how to move to the next enclosing brackets in VI


Are there any shortcuts to move to the next enclosing brackets. For ex:

int func()
{

 if(true)
 {//this point

   for(int i=0;i<10;i++)
   {//need to jump from here to

    //blah blah blah

   }

 }
}

I can move to the beginning of a function using [[ but not sure how to move to the next enclosing brackets. Thanks for any info...


Solution

  • Can't think of anything easier than /{

    [{ will go to an unmatched one, but that isn't what you want.