How to duplicate a whole line in Vim?

后端 未结 19 1090
北海茫月
北海茫月 2020-12-22 14:29

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

19条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-22 14:53

    For those starting to learn vi, here is a good introduction to vi by listing side by side vi commands to typical Windows GUI Editor cursor movement and shortcut keys. It lists all the basic commands including yy (copy line) and p (paste after) or P(paste before).

    vi (Vim) for Windows Users

提交回复
热议问题