In .vimrc I tried to do
nmap p "0p
But with this row my vim just hangs. Can anyone help me? What am I doing wrong?
I'm trying this because when I yank a line and if I use del button after yanking, then the register "" changes to the character I deleted. But register "0 stays the same.
Thanks
Vim attempts to recursively map p
, resulting in an infinite loop. Use nnoremap
instead:
nnoremap p "0p
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With