bronson / vim-visual-star-search

Start a * or # search from a visual block
http://got-ravings.blogspot.com/2008/07/vim-pr0n-visual-search-mappings.html
181 stars 36 forks source link

fix search strings that have a selected square bracket #5

Closed slashfoo closed 8 years ago

slashfoo commented 8 years ago

example: in some text search for something between square brackets, do va[ and then *.

bronson commented 8 years ago

Good find. I see the problem too, fix works. Thanks!

wellle commented 8 years ago

Came here because it just happened to me again. Glad it's fixed, thanks @slashfoo :+1:

slashfoo commented 8 years ago

@wellle @bronson just submitted a fix for ~ (tilde), would you please help me check and find other instances of these things?

It's PR #6

bronson commented 8 years ago

Interestingly, this [ fix works for local * but not for recursive \*. Your fix for ~ works both locally and recursively.

I'm not too worried about it because this PR definitely makes this plugin better. Still, it would be nice if [ worked for both.