Yakov Lerner wrote:
I 'set ve=all' and selected a rectangle with Ctrl-V.
How can I move this rectangle up/down left/right with arrows ?
With DrawIt v8d, you can move a selected rectangle about with your mouse.
Here's the relevant portion of the help for DrawIt:
<ctrl-leftmouse>
One may drag and move a selection with <ctrl-leftmouse>. First,
select the region using the <leftmouse>. Release the mouse button,
then press ctrl and the <leftmouse> button; while continuing to press
the button, move the mouse. The selected block of text will then
move along with the cursor.
Here's how to get & install DrawIt (when 7.1 comes out, this will become
lots easier - just steps 3&4)
To get an up-to-date version of drawit, you'll also need to get an
up-to-date version of vimball. So:
1) Get an up-to-date version of vimball:
http://vim.sourceforge.net/scripts/script.php?script_id=1502
-or- http://mysite.verizon.net/astronaut/vim/index.html#VimBall
(the mysite.verizon.net one will be the more recent version)
2) Remove the old vimball plugin and install the new one:
Linux:
cd /usr/local/share/vim/vim70
/bin/rm plugin/vimball*.vim autoload/vimball*.vim doc/pi_vimball.txt
mv (wherever it was downloaded)/vimball.tar.gz .
gunzip vimball.tar.gz
tar -xvf vimball.tar
Windows:
Under Windows, check your runtimepath to determine where your
vim 7.0's runtime directories are:
vim
:echo &rtp
:q
The first directory is likely your personal plugins directory,
the second one is your vim system directory.
cd (to your vim system directory)
del plugin\vimballPlugin.vim
del autoload\vimball.vim
del doc\pi_vimball.txt
ren (wherever)\vimball.tar.gz vimball.tar.gz
gunzip vimball.tar.gz
tar -xvf vimball.tar
3) Get DrawIt:
http://vim.sourceforge.net/scripts/script.php?script_id=40
http://mysite.verizon.net/astronaut/vim/index.html#DRAWIT
4) Install an up-to-date version of Drawit:
vim DrawIt.vba.gz
:so %
:q