Repository navigation
Handle arbitrary delimiters with cs and ds - #107
Conversation
|
That's ... simpler than I expected. Nice. Can you switch it so this only takes effect for punctuation (minus the exceptions you already found)? That way custom text objects should still work, in theory. The magic regex incantation is |
|
Thank you! And sure, no prob - I'll amend my commit in just a moment. |
|
Will this handle pound signs? For example, ColdFusion: #variable_name# Currently, if I add a surround (in visual mode also), it adds a comment tag instead: <!--- variable_name ---> I haven't looked exactly why though yet. |
|
Yes, it handles pound signs. |
|
Latest commit actually ignores alphanumerics entirely. You'll need something like |
|
@chriskaukis that's ragtag.vim shenanigans. I didn't have this use case in mind when I chose |
|
Ah, I misread your earlier comment and thought that you wanted alphanumerics to be ignored, so that was intentional. Gotcha, just a moment. |
|
Is this more what you're looking for? |
|
@tpope Thanks, forgot I had that installed. I don't even think I need it or use it. Seems to work after removing it for now. Thanks! |
Handle arbitrary delimiters with cs and ds
|
Can I just say: this is awesome. I've been wishing for this for years (but too lazy to actually do anything about it, naturally). Thanks!! |
Resolves #105 by adding flexibility such that cs/ds can change/remove any arbitrary surrounding character, rather than just the usual text object delimiters and html tags &c.