Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specific custom surrounds can not be changed via cs #358

Closed
pilgrimlyieu opened this issue Jul 12, 2022 · 1 comment
Closed

Specific custom surrounds can not be changed via cs #358

pilgrimlyieu opened this issue Jul 12, 2022 · 1 comment

Comments

@pilgrimlyieu
Copy link

pilgrimlyieu commented Jul 12, 2022

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

@pilgrimlyieu
Copy link
Author

Closed because I use my fork version pilgrimlyieu/vim-surround that applies #355 changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant