Search notes:

Vim ex commands: m, t and co

:m is an abbreviation for :move, :t and :co are abbreviations for :copy.
Move/copy current line to the end of the buffer:
:m$
:t$
Move the line after two lines below cursor to end of the buffer:
:+2m$
Copy three lines, starting after two lines, to beginning of buffer. Spaces are not required, here included for readabilty:
:+2,+4 t 0
t and m are especially useful with the global (g) command. The following command moves all lines that match pattern to the end of the buffer:
:g/pattern/m$

See also

Ex commands

Index