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

How to apply custom mappings to ds, (ys works) #346

Open
idvorkin opened this issue Feb 21, 2022 · 0 comments
Open

How to apply custom mappings to ds, (ys works) #346

idvorkin opened this issue Feb 21, 2022 · 0 comments

Comments

@idvorkin
Copy link

idvorkin commented Feb 21, 2022

Great plugin! I’m not sure if I’m doing this doing this correctly:

I have markdown mappings for bold and italics as so

autocmd FileType markdown let b:surround_105 = "*\r*" " i = 105
autocmd FileType markdown let b:surround_98 = "**\r**" " b = 98

When I want to italics a line yssi Works. However to remove the italics, dsi does not, but ds* works instead.

Assuming this doesn’t work, is there another approach to this, especially important for mapping to 2 characters as used in b above, otherwise need to do ds* twice!

@idvorkin idvorkin changed the title Custom mappings apply to ys but not to ds How to apply custom mappings to ds, (ys works) Feb 21, 2022
tomtomjhj added a commit to tomtomjhj/vim-surround that referenced this issue Jun 4, 2022
tomtomjhj added a commit to tomtomjhj/vim-surround that referenced this issue Jun 4, 2022
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

2 participants
@idvorkin and others