Hi Pedro,
* Vera, Pedro L. ([email protected]) wrote:
> Thanks for the help and the welcome. The problem occurs when I'm
> typing the character in insert mode. map! does not show anything
> associated with %. Yet, the problem is clear in this file. As soon as
> I insert % the rest of the paragraph turns blue (with syntax on) and
> latex does not any of the blue highlighted text. Of course, if I turn
> off syntax then I don't see the change, but it's still a problem with
> latex.
The % character starts a comment in LaTeX, and vim will therefore use
the syntax highlight for comments. It sounds to as if that's the case
here. If you want to insert a literal '%' in LaTeX, you have to use
'\%'.
> I also noticed in a different file, the same problem occurs but with
> the apostrophe ('). The text is highlighted till the next ('). map!
> did not show anything there either.
That means that the part between the "'"s is treated as a string, and
you also will have to escape that character in some way.
Hope that helps,
Jan
--
OpenPGP Key-ID: CF1635D4
"A distributed system is one in which the failure of a computer you didn’t
even know existed can render your own computer unusable." -- Leslie Lamport
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---