Skip to content

Why are some matches a one way street? #199

@alerque

Description

@alerque

I'm trying to setup handling for smart (curly) quotes. I first tried it with just vim-surround, then found vim-textobj-quote but ran into the same problem. Now I've come back and realized this may be an issue with this plugin.

So lets say I try using q and j for single and double curly quote pairs:

let g:surround_106 = "‘\r’"
let g:surround_113 = "“\r”"

This creates a mapping that seems to work to create surround objects but it doesn't allow matching existing ones: given "this‸ string", typing cs"q will produce “this‸ string” but given “this‸ string” and typing commands that should match those such as dsq or csq( do nothing.

Am I doing something wrong or is there a bug here somewhere? I'm in NeoVim 0.1.4 if it matters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions