Dear Bill, Thank you for your concern on my issue.  Yes indeed I am using
latex-suite, but my problem should have nothing to do with latex-suite.
I was just trying to define the syntax, or as you said color theme
specifically for *.tex file. (In fact my problem is even not related to
*.tex files, but a general problem for syntax)

Apologize for my poor english. So let me ask again here. This time I will
ask a detailed question about italic fonts in syntax.

For example, in a well-known color theme print_tw, we have a sentence like

highlight Comment       cterm=italic ctermfg=black ctermbg=white gui=italic
guifg=black guibg=whit

So if I understand this sentence correctly, it means in text file, all of
the "commented" line would be shown in italic fonts. Yes this works fine in
gvim. But not vim in gnome-terminal.
In fact all of the commented sentence shown in a vim, is something like

ctermfg=white, cterm=black

It looks like instead of being shown in italic font, the commented line in
vim is "highlighted"
please see this google picture for the result:

http://picasaweb.google.com/shallpion/Vim?authkey=Gv1sRgCKeh_ceOw72elAE#5383117529978565042


I do not know if it has any relation between gnome-terminal...

Thank you very much.

Peng



On Sat, Sep 19, 2009 at 3:08 AM, bill lam <[email protected]> wrote:

>
> On Fri, 18 Sep 2009, peng shao wrote:
> >
> > Hi guys. Sorry for bothering. I have a little question about syntax
> > for *.tex files
> >
> > As I supposed I edited a file $VIMRUNTIME/syntax/tex.vim
> > with several lines such as:
> >
> > hi Normal       guifg=green      guibg=#050505       gui=NONE
> >
> > My intend is just setting syntax for gvim, not the original vim in
> > gnome-terminal. For vim in terminal,
> > it uses the tango theme from terminal itself.
>
> Not sure if I understand correctly, latex-suite tex.vim does not
> define color itself.  The actual color is determined by colorscheme
> chosen.  You may choose different colorscheme for gvim and vim.
>
> for example:
>
> if has("gui_running")
>  colo desert256
> else
>  set t_Co=256
>  colo darkblue
> endif
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to