> > 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:
Post a Comment