On 02.07.2009 19:23, Vincent Arnoux wrote: > On Thu, Jul 2, 2009 at 18:57, Tim Chase<[email protected]> wrote: > >> Though I think it would annoy the bajeebers out of me, you can do >> it with something like: >> >> :au CursorHold * exec 'match IncSearch /'.expand("<cword>").'/' >> >> You might want to tweak that to include word-boundaries: >> >> ...earch /\<'.expand('<cword>').'\>/' >> >> with whatever the proper escaping of the "\" characters might be. >> You can use 2match or 3match (or whatever), perform it for just >> certain file-specs (instead of "*") and change up the syntax >> group instead of IncSearch to whatever you like. >> >> -tim >> > Sorry for your bajeebers and thanks a lot for the tip: that was a quick > service! > > Vincent > > > > That would be the right time to advertise my plugin:
http://www.vim.org/scripts/script.php?script_id=1510 It highlights the current word only if it isn't hilighted. This way "public", "static", "void" and so on don't get hilighted. cu, Adam. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
