>>> I 'set ve=all' and selected a rectangle with Ctrl-V.
>>> How can I move this rectangle up/down left/right with arrows ?
>>>
>> I assume you're asking how you can move the "other sides" of a visual
>> block. When you're using visual block you usually have control of only
>> one corner (southwest for me most of the time, but it could be any of
>> the four). You can use the o and O commands to start moving different
>> corners. Note that the o command also works in the other two visual
>> modes, and so is very handy.
>
> No, I meant "move" as in, "erase in old place and paint in new place".
Well, could one not do something like the following?
:vnoremap <down> <down>o<down>o
:vnoremap <up> <up>o<up>o
:vnoremap <left> <left>o<left>o
:vnoremap <right> <right>o<right>o
This still leaves the h/j/k/l keys for manipulating the size of
the rectangle, and then allows the arrow keys for panning the
selection. It should even work fairly well in all three block
modes. It might have a little trouble at the
top/bottom/left/right of your document where arrowing would try
to push it off the edge.
Or am I missing some wrinkle that "set ve=all" introduces? Or
"select" mode rather than "visual" mode? (I don't use either so
I don't know the nuances of them)
-tim