If I use old-school curly brace function block syntax like so:
function()
{
console.log('this works :)');
}
I can jump between methods quickly with vim's ]] and [[ commands, but if I (or anybody else on my team) use the more modern syntax where the opening curly brace is in-line with the function signature like so:
function() {
console.log('this doesn't work :(');
}
Vim won't detect the method and will skip it because the command only looks for opening braces on the first column. How can I configure Vim to not ignore this syntax?
I'm not against using either syntax but I don't want to skip over methods when reading other peoples' code.