My cursor is at H
{
//foo
{
//bar
{
//cursor is Here
}
//bar2
}
}
How do I delete the outer layer of brackets while keeping the layer where my cursor is intact? End result should be:
{
//foo
{
//cursor is Here
}
}
Same question for foo(bar(/*cursor is Here*/))
=> foo(/*cursor is Here*/)
For the first part I think it should start with 2[{dt{
but that doesn't work.
My hacky solution for the 2nd(parenthesis) part: 2[(dt(%dt)
or 2[(dt(%x
if there is nothing between the last two parenthesis. Is there a better way?