I've used char2nr("(") and char2nr(")") to check the code and add the following setting.
let g:surround_65288 = "(\r)"
let g:surround_65289 = "(\r)"
And I can use ys command to add the surroundings or use cs command to change builtin surroundings(like ( etc.) to my custom surroundings(like ().
However, I can not change my custom surroundings to other surroundings, which means I can not use cs(( to change contents like (aaa) to (aaa).
Furthermore, I've tried a test surrounding as following.
let g:surround_126 = "~\r~"
But this time I can use cs~" to change ~aaa~ to "aaa". So I think may be only some special characters(may be full-width characters) can not be changed.
By the way, I type ( using key maps Shift + 9 while ~ needs Shift as well so I think it may have nothing to do with key input.
Here's an related pr
I've used
char2nr("(")andchar2nr(")")to check the code and add the following setting.And I can use
yscommand to add the surroundings or usecscommand to change builtin surroundings(like(etc.) to my custom surroundings(like().However, I can not change my custom surroundings to other surroundings, which means I can not use
cs((to change contents like(aaa)to(aaa).Furthermore, I've tried a test surrounding as following.
But this time I can use
cs~"to change~aaa~to"aaa". So I think may be only some special characters(may be full-width characters) can not be changed.By the way, I type
(using key maps Shift + 9 while~needs Shift as well so I think it may have nothing to do with key input.Here's an related pr