Select the pasted text.

1 Point

alex-netquity alex-netquity

10 years ago

Visual select on the text you just pasted.

nnoremap gp `[v`]

Jojo

Jojo 10 years ago

This is a more complete solution (covers ctrl-v):

nnoremap gp '[' . strpart(getregtype(), 0, 1) . ']'