Let's say I have this piece of code (cursor/selection is represented by []
):
[f]unction a()
{
// ...
}
If I want to select the function declaration and the curly braces (and of course the content) I can do Vj%, which select the first line, goes to the opening {
and jump to the matching }
.
Or I can do jVa{ok which goes down to select around the {}
, goes back to the start of the selection and move up to select the remaining line.
Now the question: why can't I do Vja{?
I thought it could select the first line, then move down and expand around the curly braces.
Why is this not possible?