I am within a vimscript, and I want jump (or get the position of) the beginning of the current parent brace, how can I make this happen?
Imagine the following example (the cursor is represented by |
):
(a && (b && c) && | (d && e)) <- For parentheses
[a && [b && c] && | [d && e]] <- For square brackets
{a && {b && c} && | {d && e}} <- For curly braces
<a && <b && c> && | <d && e>> <- For angle brackets
^ ^
parent (jump here) cursor
I know that there are the [{
and [(
commands, but they only jump to a {
and (
, and not to [
and <
. Also I need some kind of way to jump to any parent bracket, not a specific type of one.
Thank you for your help.