On 4/22/2009 10:36 AM, Anthony Metcalf wrote:
> Chris Lieb wrote:
>> I am new to vim and am encountering an annoying issue: certain things
>> that I type in get highlighted red, for no apparent reason.  For
>> example, if I create a file test.txt and insert the following text:
>>
>> "prog"
>>
>> the prog is given a red background.  Even if I use ':syntax off', it is
>> still red.
>>
>> What is causing this to happen?  This makes it very hard to edit code
>> since strings are colored red, causing a red-on-red issue where you
>> can't read the text at all.
>>
>> Thanks,
>> Chris
>>
>>
> You don't happen to have searched for "prog" last do you? try hitting
> "/zzzzz" (assuming you don't have zzzz in the file...) in command mode
> and see if the highlight goes away.
>
Nope. It happens with other bits of text in strings also, not just prog.
 Even how, I think search highlights with gold/yellow, not red.

Reply via email to