> Is there a way to get the search match the cursor is sitting on
> highlighted in a different way than the rest of the matched patterns?
> I can't find anything obvious in the docs that seems to apply.
You might try something like these (which can in turn be turned
into mappings for fast access)
exec 'match Error /'.@/.'\%'.line('.').'l/'
exec 'match Error /'.@/.'\&\w*\%#\w*/'
The first one highlights matches on the current line fairly
robustly (it's still possible to make pessimal expressions it
wouldn't match). The second one highlights only the word you're
currently in for your search (even if your pattern is more than a
"word"). You can twiddle with the expressions to make them more
robust if you like, but each has its advantages and shortcomings.
-tim
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---