Sunday, November 27, 2011

Re: Substitution of text in keywords

Hi Clark,!

On Do, 24 Nov 2011, Clark, David wrote:

> Hi Christian,
>
> Thanks for the info...
>
> If I understand you correctly you're saying I should remove the
> exclamation mark and add an 'e' to the end of each line, e.g:
>
> :silent %s,\<and\>,And,ge
>
> Also, the syntax file I'm using has lots of syntax keyword groups and an
> individual item may exist in any one of them. However, what I'm trying
> to achieve is not to change items which are between quotes - can you
> advise what the syntax should be for this?

If you put the cursor on a keyword in quotes and enter
:echo synIDattr(synID(line('.'),col('.'),1), 'name')

What does Vim output?

Also, if you only want to exclude items in quotes, one might be able to
construct a better RE for you.

regards,
Christian
--

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment