Hi,
I'm struggling with the pattern syntax for matching individual
characters in strings:

My input looks like this

First_string_1    Second_string_1
First_string_2    Second_string_2
...
First_string_n    Second_string_n

All strings are potentially different, but contain no white spaces or
non-word/letter characters.

I wish to highlight every occurrence of a certain letter, say 'S', in
the Second string, but not in the First!
That is, "For any line in my file that has two strings (separated by
white space), match and highlight all occurrences of letter X in the
second string".

Up to now I'm using
    hi MyS ctermfg=white ctermbg=red guifg=white guibg=red
    syn match MyS "S\c"

which of course matches and highlights any occurrence of 'S' (or 's').

Thanks for any help on this matter.
/Johan

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to