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

Support deleting/changing custom surrounds

Open tomtomjhj opened this issue 3 years ago • 2 comments

Fixes #199, #210, #318, #346

I tested on these custom surrounds, and it seems to work pretty well.

let g:surround_{char2nr('c')} = "/* \r */"
let g:surround_{char2nr('m')} = "(* \r *)"
let g:surround_{char2nr('M')} = "(** \r *)"
let g:surround_{char2nr('b')} = "**\r**"
let g:surround_{char2nr('l')} = "\\begin{\1environment: \1}\r\\end{\1\r}.*\r\1}"
let g:surround_{char2nr('d')} = "<div\1id: \r..*\r id=\"&\"\1>\r</div>"

tomtomjhj avatar Jun 04 '22 12:06 tomtomjhj

This PR is amazing, thanks. It's an important enough feature that I'm using your fork in place of tpope/vim-surround. Definitely worth a merge, @tpope !

isovector avatar Jan 28 '23 19:01 isovector

I also just ran into this, and found this solution. Any reason to not bring it in @tpope?

ggVGc avatar Jun 02 '23 09:06 ggVGc