While writing code it often happens that adding one parenthesis leaves another one orphaned somewhere. Many syntax color scheme color the parenthesis differently to signal it. For example, while writing LaTeX code$\mathbb{E} something }$the second } will be marked in red in my vim. If I want to remove it I would have to dof}xassuming my cursor is located past the first }, otherwise I need to do some repositiong to reach it.Since the syntax highlights picks up on it, is there a way to bind a command to something like 'go to the next unmatched parens and delete it'? Bonus point if the cursor is left in its place and left in normal mode.
Shortcut to remove orphaned parenthesis
key bindings;syntax highlighting