Question for wiser vim users than myself: If I delete (say, a line comment) with `D`, how do I paste it as a line of its own without macro trickery involving `o<esc>p`? Is that possible?
callFunction(); |// HEY THIS IS A REALLY LONG COMMENT
From there, I hit D, which is the same as d$. I want to then paste it so I have something like // HEY THIS IS A REALLY LONG COMMENT
callFunction();
But I want to do that without entering insert mode.(The 'r' command replaces the character under the cursor with the next key typed, without going into insert mode.)
nnoremap <leader>d DO<esc>p
try:
nnoremap <leader>p o<esc>p
is it really a requirement to not have a macro/keybinding?