Reputation: 4170
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
Upvotes: 5
Views: 1828
Reputation: 5756
Vim attempts to recursively map p
, resulting in an infinite loop. Use nnoremap
instead:
nnoremap p "0p
Upvotes: 15