Is there a way to have % in vim find the next ([{ or whatever, even if it is not on the same line?
Example:
int main(int argc, char ** argv) { #Your cursor is somewhere in this comment, I want #it to get to the ( after printf printf('Hello there.\n'); }
If you want to find opening braces on subsequent lines, without plugins, just enter normal mode and type:
Where { is the type of brace your looking for.
You can then browse them all with n and N.
To map the F12 key to turn search highlighting on and off use this trick.