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

The :t and :m commands are also helpful for gathering lines in a :g
command such as

  :g/pattern/t$
  :g/pattern/m$

which will either copy the lines to the bottom of the file for
review, or move the lines to the bottom of the file for
reviewing/ignoring purposes.  I use both regularly, especially when
dealing with CSV files.

-tim


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