Put it into your ~/.vimrc

Yakov

On 4/10/06, Marco Kunze <[EMAIL PROTECTED]> wrote:
> Hello Yakov,
>
> :match ToDo /(TODO.*)/
>
> did it :-)
>
> Thank you very much. I tried to put it into a vim line like
> vim:match ToDo /(TODO.*)/
>
> but it says that the option "match" is not available. In the documentation I
> didn't find any hints how to do this. Any ideas?
>
> Again, thanks for your help.
>
> Marco
>
> Yakov Lerner wrote:
> > On 4/10/06, Marco Kunze <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >>
> >> I often use things like
> >> (TODO blablabla)
> >> in my LaTeX documents in order to mark todos. However these are not 
> >> highlighted
> >> as usual since they are not within a comment environment. Since LaTeX has 
> >> no
> >> comments which can be used within a line (like /* ... */) I don't want to 
> >> use
> >> normal comments, it would make me use a whole line for every todo and 
> >> render the
> >> text mostly unreadable.
> >>
> >> So I wanted to ask if there is a fast and simple hack to make vim highlight
> >> something like (TODO ...) as a comment environment with the TODO 
> >> highlighted in
> >> the TODO style.
> >>
> >> Unfortunately I don't have the time to try this by myself, I guess my 
> >> approach
> >> would be to write a new LaTeX-highlighting file and include the old one, 
> >> then
> >> extending it with the new grammar. But I really don't have the time to try 
> >> this
> >> by myself.
> >
> > Try
> > syn match ToDo /TODO.*$/
> > or
> > syn keyword ToDo /TODO/
> > or
> > match ToDo /TODO.*$/
>

Reply via email to