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

How to search visual select word with a word boundary? #237

Open
xu-chaojie opened this issue Jul 23, 2018 · 3 comments
Open

How to search visual select word with a word boundary? #237

xu-chaojie opened this issue Jul 23, 2018 · 3 comments

Comments

@xu-chaojie
Copy link

hi,'Search Visual Selected Word' is very useful for me, but how to search visual select word with a word boundary? I can't find the way to do it. Please help me. thanks!

@dyng
Copy link
Owner

dyng commented Jul 23, 2018

I'm afraid there is no easy way currently, it requires code changes.

@bew
Copy link

bew commented Apr 25, 2019

with rg/ack, you'd do rg '\bsome_word\b', but it currently doesn't work in ctrlsf 😞

@dyng
Copy link
Owner

dyng commented Apr 27, 2019

@bew It works, but you should turn on regex flag by let g:ctrlsf_regex_pattern = 1 or use command :CtrlSF -R '\bsome_word\b'. This is so because ctrlsf is searching literally by default.

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

3 participants