Does vim have a plugin to detect unbalanced parens/brackets/braces etc?
There's also some info and some plugins listed here: http://vim.wikia.com/wiki/VimTip630
Although, a misplaced parentheses could still be balanced. For example,
if ((!x < y))
...
versus if (!(x < y))
...