add the following line to .ideavimrc
xnoremap p "_dP
add the following entry to settings.json
"vim.visualModeKeyBindings": [
{
"before": [
"p",
],
"after": [
"p",
"`",
"[",
"v",
"`",
"]",
"h",
"y",
"<Esc>"
]
}
]