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

when use / searching, not support to match a whole word #3200

Closed
zhangshengping opened this issue Nov 9, 2018 · 2 comments
Closed

when use / searching, not support to match a whole word #3200

zhangshengping opened this issue Nov 9, 2018 · 2 comments

Comments

@zhangshengping
Copy link

I want to search a whole word like "Hello".
I use the cmd /\<Hello\> ,but it not works.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Extension (VsCodeVim) version:
  • VSCode version:
  • OS:

Additional context
Add any other context about the problem here.

@J-Fields
Copy link
Member

You can use \b to detect a word boundary (in your example, /\bHello\b). This is how * is implemented. As far as I can tell, javascript's regex engine does not support \< and \>.

@J-Fields
Copy link
Member

Closing in favor of #3996

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants