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

viq behaves different than vi" in nested quotes #9

Open
MaxGyver83 opened this issue Sep 13, 2023 · 0 comments
Open

viq behaves different than vi" in nested quotes #9

MaxGyver83 opened this issue Sep 13, 2023 · 0 comments

Comments

@MaxGyver83
Copy link

Minimal example:

X="$(cat "$file")"

When the cursor is on file, vi" selects $file (this is what I expect). viq selects ). Would it be possible to make vim-textobj-quotes behave like vi" in such a case?

I suppose, the plugin tries to be clever and counts the double quotes here and select either the text between the first and the second quote or between the third and the fourth quote. Maybe an optional "dumb" mode could be a solution.

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