Select the pasted text.

1 Point

alex-netquity alex-netquity

9 years ago

Visual select on the text you just pasted.

nnoremap gp `[v`]

Jojo

Jojo 9 years ago

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

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