Some times in c codes it is difficult to find where the function ends, or where a brase ends. Vim has a easy way of navigating the code and finding errors if any easily.

Just press % from either the open brase (like { or ( or even #if) it takes you to its corresponding close brase (like } or ) or #end).

Similarly pressing % from close brase will take you to the corresponding open brase.

Share

Related posts:

  1. vim – Jump to beginning or end of function
  2. The main function
  3. mouse scroll in vim
  4. gdb – disassemble program
  5. Learning perl (Start with basics & Hello world)