On 18/04/11 22:34, Mun wrote:
Hi Tony,

On Mon, Apr 18, 2011 at 01:19 PM PDT, Tony Mechelynck wrote:
TM>  On 18/04/11 21:22, Mun wrote:
TM>  >Hi,
TM>  >
TM>  >What are the advantages/disadvantages between X11 and GTK when compiling
TM>  >gvim?  My Linux box uses GTK by default, but I wonder if I would be
TM>  >better served with X11.  However, I couldn't find any comparisons
TM>  >between the two which would allow me to make an informed decision.
TM>  >
TM>  >Any thoughts or opinions on the matter would be appreciated.
TM>  >
TM>  >Regards,
TM>  >
TM>
TM>  What do you mean, X11 or GTK? GTK requires X11. I'd say the
TM>  following flavours of GUI vim exist:

Oops, I misspoke.  My apologies.  Thanks for pointing out that faux pas.

I meant to say the differences between Motif and GTK.  Note that I have
corrected the subject.

I'm mainly interested in functionality differences between the two.  For
example, with GTK one can change the font via the menu
(Edit->Select Font...).  With X11, you cannot.

Regards,


I don't know about the menu, but according to the help (options.txt dated 2011-Mar-22),

        :set guifont=*

which provides the same functionality, is available under "Win32, GTK, Motif, MacOS and Photon".

One difference is that the "value" of the 'guifont' is more easy for a human to guess and understand under GTK2, for instance for the same font:

        " under GTK2
        :set gfn=Lucida\ Sans\ Typewriter\ 12

        " under GTK1, Motif, Athena, NeXtAw etc.
        :set gfn=-*-lucidatypewriter-medium-r-normal-*-*-120-*-*-m-*-*

        " under the obsolete kvim
        :set gfn=Lucida\ Sans\ Typewriter/12/-1/5/50/0/0/0/1/0

        " under Windows
        :set gfn=Lucida_Console:h12:cDEFAULT

etc.


Some of the differences between the various GUI flavours may be described here and there in the Vim help, but if there is a systematic "comparison table" summarizing them all, I'm not aware of it.


Best regards,
Tony.
--
Once upon a time, there was a non-conforming sparrow who decided not to
fly south for the winter.  However, soon after the weather turned cold,
the sparrow changed his mind and reluctantly started to fly south.
After a short time, ice began to form on his wings and he fell to
earth in a barnyard almost frozen.  A cow passed by and crapped on this
little bird and the sparrow thought it was the end, but the manure
warmed him and defrosted his wings.  Warm and happy the little sparrow
began to sing.  Just then, a large Tom cat came by and hearing the
chirping investigated the sounds.  As Old Tom cleared away the manure,
he found the chirping bird and promptly ate him.

There are three morals to this story:

(1) Everyone who shits on you is not necessarily your enemy.
(2) Everyone who gets you out of shit is not necessarily your friend.
(3) If you are warm and happy in a pile of shit, keep your mouth shut.

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui