title: VIM GTK-UI font
body: <p>The vim manual states:</p>
  
  <pre><code>    On systems where 'guifontset' is supported (X11) and 'guifontset' is
  not empty, then 'guifont' is not used.
  
  Spaces after a comma are ignored.  To include a comma in a font name
  precede it with a backslash.  Setting an option requires an extra
  backslash before a space and a backslash.  See also
  |option-backslash|.  For example: &gt;
      :set guifont=Screen15,\ 7x13,font\\,with\\,commas
  will make Vim try to use the font "Screen15" first, and if it fails it
  will try to use "7x13" and then "font,with,commas" instead.
  </code></pre>
  
  <p>So, I would like to do the following:</p>
  
  <pre><code>if has("gui_running")
    if has("gui_gtk2")
         set guifont=Droid\ Sans\ Mono,Inconsolata,Monospace
    elseif has("gui_win32")
      set guifont=Droid\ Sans\ Mono:h10,Consolas:h11:cANSI
    endif
  endif
  </code></pre>
  
  <p>Trouble is that it does not work for me... I have been trying for a couple of hours on CentOS6.3 and Debian Wheey, but when ever I write this command like this, VIM will just start with Sans font. 
  Am I doing something wrong? How do you smartly detect which fonts are on the system ?</p>