vim tricks: jumping between preprocessor directives

Sunday, May 3, 2009

If you are somewhere in the code between a #if and a #endif:

  • You can jump to the #if part by using [#
  • You can jump to the #endif part using ]#
The alternate, and the generic option (which can jump between braces, #directives etc.) is the % key.

0 comments: