Sunday, March 25, 2018

Duplicating a line in Vim Eiditor



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

No comments: