[gentoo-user] Re: [OT] Colors/styles in vim
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 /z (assuming you don't have 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.
[gentoo-user] Re: [OT] Colors/styles in vim
On 4/22/2009 11:09 AM, Mark wrote: 2009/4/22 Anthony Metcalf ne...@anferny.me.uk: 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. You don't happen to have searched for prog last do you? try hitting /z (assuming you don't have in the file...) in command mode and see if the highlight goes away. Maybe the spell checker is enabled? :set nospell That was it. Thanks all.