It looks like you are using Vim in "compatible mode" which is something only hopelessly masochistic people do. In "nocompatible mode", your mapping works as expected so you should probably make sure nocompatible
is set (creating a blank ~/.vimrc
should be enough).
Anyway, your <p>
s are not where the problem is because they are inserted normally, it's your <cr>
and your <esc>
that are causing a mess: since you are running Vim in "compatible mode", the cpoptions
option includes <
which causes Vim to not recognize <CR>
and friends as special keys.
Running Vim in "nocompatible mode" is the best way to go but you can also use the following notation if you really insist on going "compatible":
vnoremap <leader>bp c<p>^M</p>^]P
where ^M
is inserted with <C-v><CR>
and ^]
is inserted with <C-v><Esc>
.