Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 727 Bytes

tip29.md

File metadata and controls

26 lines (17 loc) · 727 Bytes

Tip29: Duplicate or Move Lines Using ':t' and ':m' Commands

tip29_1

:copy :co :t (:[range]copy{address})

duplicate one or more lines from one part of the document to another.

tip29_2 make a copy of line 6 and put it below the current line.

tip29_3

Note: :t., yyp: duplicate the current line. but:

:t.: does not use register.(Command-Line Mode) yyp: use a register.(Normal Mode)

:move :m (:[range]move {address})

tip29_4

dGp replace :'<,'>m$

d: to delete the visual selection. G: to jump to the end of the file. p: to paste the text that was deleted.