Re: Search and replace using syntax groups
- David Fishburn wrote:
>Vim 6.2.154There's no such tie-in into the regular expressions.
>I have a SQL file with all the keywords highlighted yellow.
>I want to perform a search and replace to change all the yellow words to
>I was thinking something like this:
>Assuming I could replace the keywords with a syntax (base) group.
However, if you look into <engspchk.vim>, there's
a function in it (SpchkNxt()) that moves the cursor
to the next item that's highlighted in "Error".
You should be able to modify it to:
* search for the highlighting for your keywords
* capitalize the keyword following the cursor
* repeat until done