job.answiz.com
1 Answer
  • 0
Votes
name
name Punditsdkoslkdosdkoskdo

Duplicate a whole line in Vim

How do I duplicate a whole line in Vim in a similar way to Ctrl+D in IntelliJ IDEA/Resharper or Ctrl+Alt+/ in Eclipse?

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

  • 0
Reply Report