How do I duplicate a whole line in Vim in a similar way to Ctrl+D in IntelliJ IDEA/ Resharper or Ctrl+Alt+&
I like to use this mapping:
:nnoremap yp Yp
because it makes it consistent to use alongside the native YP command.
YP