Duplicate a whole line in Vim

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

posted @ 2018-06-06 16:42  kakaisgood  阅读(173)  评论(0编辑  收藏  举报