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

% should match on strings & chars #2935

Closed
crinklywrappr opened this issue Aug 5, 2018 · 2 comments
Closed

% should match on strings & chars #2935

crinklywrappr opened this issue Aug 5, 2018 · 2 comments

Comments

@crinklywrappr
Copy link

crinklywrappr commented Aug 5, 2018

ie single quotes ('), double quotes ("), and perhaps even ticks (`)

@crinklywrappr crinklywrappr changed the title % should match on strings & characters % should match on strings & chars Aug 5, 2018
@shawnaxsom
Copy link
Contributor

What is your use case for matching on strings? Vim doesn't do that by default, just curious.

https://stackoverflow.com/questions/1444054/in-vim-is-there-a-plugin-to-use-to-match-the-corresponding-double-quote

You might be aware of the other options for jumping to those characters:

  • ci" for cutting the contents inside the quotes
  • f" or F" for jumping to next/previous double quote
  • /" or ?" obviously for searching for double quotes if on a different line
  • \\s" for using vim-easymotion (if enabled) to jump to double quotes anywhere on screen
  • cs"' (vim-surround) for changing from double quotes to single quotes.

@crinklywrappr
Copy link
Author

It seems there are already other options for this.

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