1. 程式人生 > >Duplicate a whole line in Vim

Duplicate a whole line in Vim

then TE ica duplicate bsp del hole let paste

yy or Y to copy the line
or
dd to delete (cutting) the line

then

p to paste the copied or deleted text after the current line
or
P to paste the copied or deleted text before the current line

Duplicate a whole line in Vim