On Tue, Nov 13, 2012 at 11:25:38AM -0600, Tim Chase wrote:
> On 11/13/12 11:16, BartlebyScrivener wrote:
> > Thank you, Tim.

> Glad to help

> > I've been yanking and putting my whole life and stumbled on "move" this 
> > morning by accident.
> > 
> > Could be quite useful.

> If you've been *yanking*, you'll want the :copy (also known as :t)
> command, too. :-)  Behaves pretty much identically, except it copies
> rather than moves the line (which you'd get by *deleting*-then-putting).

> I've got my fingers hard-wired with

>  :m+

> to move the current line down one, which I use because
> yanking/deleting tromps my scratch register when it's often useful
> to preserve it when your intent is just "move this line down one".

I use that so much I've devoted F8 and S-F8 to that very function with

    nnoremap <silent> <F8> :m+<CR>
    inoremap <silent> <F8> <ESC>:m+<CR>gi
    vnoremap <silent> <F8> :m'>+<CR>
    nnoremap <silent> <S-F8> :m-2<CR>
    inoremap <silent> <S-F8> <ESC>:m-2<CR>gi
    vnoremap <silent> <S-F8> :m-2<CR>

sc

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