On 4/30/07, Tim Chase <[EMAIL PROTECTED]> wrote:
>>> 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.
> 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

No, I did not mean "move the corners of the selection".
I meants "move the contents".
I meant "erase the contents at the old place and put the contents
at the new place". Imagine moving text frames in the Word.
This is what I mean. As if the selection are is a floating text frame.
For example. Given the file:

|--------------
|abcdefghijk
|123456789

I select rectangle 2x2 "ab\n12" with Ctrl-V.

I press Down and Right.
The result shall be approximately like:

|--------------
|     defghijk
| ab456789
 12

Depending on sophistication, and text under
the moving rectangle can be either erase with blanks, or
preserved. (more difficult). I'd make it an option.

Yakov

Reply via email to