On May 2, 8:16 pm, Tim Chase <v...@tim.thechases.com> wrote:
> On 05/02/2010 06:55 PM, Peng Yu wrote:
>
> > I want to define a key shortcut switch the line above the cursor and
> > the line below the cursor without affecting what is in the buffer (I
> > mean the things copied by say 'yy'). Could you show me how to do it?
>
> I usually use the following Ex ":move" commands:
>
>    :m+    " swap this line and the next
>    :m-2   " swap this line and the prev
>

I thought the question was how to swap the line above the current line
with the one below it, without changing the current line. I'd like to
know how to do that, without affecting the registers.

- BC

-- 
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

Reply via email to