haya14busa / incsearch.vim

:flashlight: Improved incremental searching for Vim
https://medium.com/@haya14busa/incsearch-vim-is-dead-long-live-incsearch-2b7070d55250
MIT License
1.11k stars 23 forks source link

Backslash in collection doesn't trigger highlight #55

Open kevin4fly opened 9 years ago

kevin4fly commented 9 years ago

Suppose here is my text:

hi hello/world

And my cursor is at h of word hi, type these sequence /[a-z//]\+ or /[a-z/]\+ to match the line.

These 2 lines will be matched, however, they are not highlighted when I type the sequence, that is incsearch.vim should do.

haya14busa commented 9 years ago

Thank you for the report @kevin4fly.

This is caused by command-line parsing regular expression. I'll look into it but it's difficult to build perfect regular expression.