> vaB selects the current Block and another aB expands the selection to
> the Block containing the first Block. The same for HTML/XML: vatat (ad
> libitum)
>
> Why not allow counts: [operator][count][a or i][object] ?
>
> That way, you wouldn't need visual mode for these operations, which
> would be more effective and pure.
Um...have you tried it? :)
I just created a block like this:
{ one
{ two
{ three
{ four
}
}
}
}
and then, with the cursor on the "four" line, typed
>3aB
and correctly it indented the "{ two ...}" block as you describe
wanting :)
Same worked for <tag>s:
<tag> one
<tag> two
<tag> three
<tag> four
</tag>
</tag>
</tag>
</tag>
with the cursor on the "four" line, using
<3at
worked as expected. The help on both text objects indicate that
both accept a count:
:help at
:help aB
Vim borrows Python's time-machine[1] to add the feature you want
before you need it. ;-)
-tim
[1]
http://www.google.com/search?q="Guido's+time+machine"+python
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---