10 years ago
Visual select on the text you just pasted.
nnoremap gp `[v`]
Jojo 10 years ago
This is a more complete solution (covers ctrl-v):
nnoremap gp '[' . strpart(getregtype(), 0, 1) . ']'
[' . strpart(getregtype(), 0, 1) . '
Jojo 10 years ago
This is a more complete solution (covers ctrl-v):
nnoremap gp '
[' . strpart(getregtype(), 0, 1) . '
]'