Select the pasted text.

1 Point

alex-netquity alex-netquity

4 years ago

Visual select on the text you just pasted.

nnoremap gp `[v`]

Jojo

Jojo 4 years ago

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

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