> :au CursorHold * exec 'match IncSearch /'.expand("<cword>").'/'
>
> You might want to tweak that to include word-boundaries:
>
> ...earch /\<'.expand('<cword>').'\>/'
And escape a few characters (in the unlikely event that one of those
characters is defined as part of a word):
au CursorHold,CursorHoldI * exec 'match IncSearch /\V\<'. escape(expand
("<cword>"), '\/') .'\>/'
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---