Thursday, May 6, 2010

Re: switch the line above the cursor and the line below the cursor

On May 5, 11:57 pm, Vladimir Rybas <vladimirry...@gmail.com> wrote:
> > Just curious...in what sorts of cases is such a command actually
> > useful?
>
> I use it often. Actually, I'm not switching lines, but moving visually
> selected blocks up & down, left & right.
> It's faster than cut & paste or whatever. Here's my mapping on that
>

Ah, so you did mean the original assumed behavior. E.g. this:

a
b
c# <--cursor
d
e

becomes this:

a
c
b
d
e

I was asking, "when is it useful to switch the line ABOVE the cursor
with the line BELOW the cursor", e.g. this:

a
b
c# <---cursor
d
e

becomes this:

a
d
c
b
e

which was discussed as the literal meaning of what was asked
originally.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: