vim-surround icon indicating copy to clipboard operation
vim-surround copied to clipboard

Feature request: ability to paste a yanked surround

Open eater opened this issue 14 years ago • 2 comments

This seems so obvious that I apologize if it's been addressed elsewhere, but: it would be great, once I've deleted a complicated HTML tag surround using dst, to be able to then put it around some other text, with a command like perhaps yswp.

Is this way more difficult than I realize?

eater avatar Nov 06 '11 16:11 eater

A "last target" replacement doesn't seem like it would be that hard. Maybe some day I'll get to it. :)

tpope avatar Nov 23 '11 05:11 tpope

It'd be nice to paste from a register as well e.g. trying to surround a tag with a complicated React component — yank the React component to a register and then surround another tag with it.

KyleAMathews avatar Jan 11 '24 21:01 KyleAMathews