Problem with spell highlighting in gvim 7.0aa on Mac OS 10.3.9 and 10.4.2

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with spell highlighting in gvim 7.0aa on Mac OS 10.3.9 and 10.4.2

Lukas Muehlethaler
Hi,

I compiled Vim 7.0aa (CVS Oct 4) on Mac OS 10.3.9 and 10.4.2, both with
GUI (Carbon) and without. The spellcheck feature works in both versions
(']s', 'z?', etc.), but only the non-GUI version (in Terminal.app)
highlights misspelled words---the GUI version doesn't. By the way, I
enabled the +syntax feature at compile time and removed .vim and .gvim
just in case...

Thanks for your help!

Lukas

P.S. Sorry for the crossposting!

Reply | Threaded
Open this post in threaded view
|

Re: Problem with spell highlighting in gvim 7.0aa on Mac OS 10.3.9 and 10.4.2

Chris Allen
On 09/10/05, Lukas Muehlethaler <[hidden email]> wrote:
> I compiled Vim 7.0aa (CVS Oct 4) on Mac OS 10.3.9 and 10.4.2, both with
> GUI (Carbon) and without. The spellcheck feature works in both versions
> (']s', 'z?', etc.), but only the non-GUI version (in Terminal.app)
> highlights misspelled words---the GUI version doesn't.

More generally, underlining and italics do not work for Vim 7 under OS
X's native GUI.  You can temporarily resolve the highlighting issue by
changing your highlighting settings to something which does not use
undercurl, underline or italics.

Regards,
Chris Allen
Reply | Threaded
Open this post in threaded view
|

Re: Problem with spell highlighting in gvim 7.0aa on Mac OS 10.3.9 and 10.4.2

Bram Moolenaar
In reply to this post by Lukas Muehlethaler

Lukas Muehlethaler wrote:

> I compiled Vim 7.0aa (CVS Oct 4) on Mac OS 10.3.9 and 10.4.2, both with
> GUI (Carbon) and without. The spellcheck feature works in both versions
> (']s', 'z?', etc.), but only the non-GUI version (in Terminal.app)
> highlights misspelled words---the GUI version doesn't. By the way, I
> enabled the +syntax feature at compile time and removed .vim and .gvim
> just in case...

The Mac GUI doesn't support the undercurl yet (curly underlining).  I
hope someone who know how to draw pixels can implement this.  Examples
can be found in the GTK and Win32 files: gui_gtk_x11.c function
draw_under() and gui_w32.c gui_mch_draw_string().

--
"You're fired." (1980)
"You're laid off." (1985)
"You're downsized." (1990)
"You're rightsized." (1992)
                                (Scott Adams - The Dilbert principle)

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///
Reply | Threaded
Open this post in threaded view
|

Re: Problem with spell highlighting in gvim 7.0aa on Mac OS 10.3.9 and 10.4.2

Lukas Muehlethaler
Dear Bram, dear Chris,

thank you very much for your help! With the colorscheme inkpot and
guifont=Courier:h12 the following works (in .gvimrc):

hi SpellBad guifg=Magenta         (or any other color)
hi SpellCap guifg=Red
hi SpellRare guifg=Yellow
hi SpellLocal guifg=Blue

Alternatively:

hi SpellBad gui=standout guifg=Magenta
hi SpellCap gui=standout guifg=Red
hi SpellRare gui=standout guifg=Yellow
hi SpellLocal gui=standout guifg=Blue

I am sure somebody has a better solution that works for most
colorschemes!


On Oct 9, 2005, at 12:20 PM, Bram Moolenaar wrote:

>
> Lukas Muehlethaler wrote:
>
>> I compiled Vim 7.0aa (CVS Oct 4) on Mac OS 10.3.9 and 10.4.2, both
>> with
>> GUI (Carbon) and without. The spellcheck feature works in both
>> versions
>> (']s', 'z?', etc.), but only the non-GUI version (in Terminal.app)
>> highlights misspelled words---the GUI version doesn't. By the way, I
>> enabled the +syntax feature at compile time and removed .vim and .gvim
>> just in case...
>
> The Mac GUI doesn't support the undercurl yet (curly underlining).  I
> hope someone who know how to draw pixels can implement this.  Examples
> can be found in the GTK and Win32 files: gui_gtk_x11.c function
> draw_under() and gui_w32.c gui_mch_draw_string().
>
> --
> "You're fired." (1980)
> "You're laid off." (1985)
> "You're downsized." (1990)
> "You're rightsized." (1992)
> (Scott Adams - The Dilbert principle)
>
>  /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net 
>  \\\
> ///        Sponsor Vim, vote for features --
> http://www.Vim.org/sponsor/ \\\
> \\\              Project leader for A-A-P -- http://www.A-A-P.org     
>   ///
>  \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html 
>  ///
>