Loading ...
Sorry, an error occurred while loading the content.

2662Re: Input greek characters

Expand Messages
  • Tony Mechelynck
    Mar 8, 2010
      On 09/03/10 02:09, Dennis Cao wrote:
      > Thanks Tony. I can input greek characters in gvim:) These are my steps:
      > ----------------------------------------------------------------------------------------------------
      > ENVIRONMENT: Windows XP Pro SP3 Simple Chinese / Vim 7.2/
      > 1. config _vimrc as follows:
      > set enc=utf-8
      > set fenc=utf-8
      > set guifont=courier_new:h12

      Try changing it as follows:

      if has('multi_byte') " if not compiled-in, we can't use it
      if &enc !~? '^u' " if already Unicode, no need to change
      if &tenc == "" " don't clobber keyboard locale
      let &tenc = &enc
      set enc=utf-8
      " define the heuristics to identify 'fileencoding'
      " of existing files
      set fencs=ucs-bom,utf-8,default,latin1
      " the following sets defaults for newly created files
      " comment, uncomment, or change at will
      setglobal bomb
      setglobal fenc=utf8
      if has('gui') " non-GUI-enabled versions don't know about 'guifont'
      if has('gui_gtk2') " GTK2 but not GTK1
      set gfn=Courier\ New\ 12
      elseif has('gui_photon') " Photon
      set gfn=Courier\ New:s12
      elseif has('gui_kde') " kvim (obsolete)
      set gfn=Courier\ New/12/-1/5/50/0/0/0/1/0
      elseif has('x11') " other X11 (including GTK1)
      set gfn=-*-courier-medium-r-normal-*-*-120-*-*-m-*-*
      else " other (including Windows)
      set gfn=Courier_New:h12:cDEFAULT

      > 2. open gvim from cygwin
      > Inputing greek characters with keymap and i_CTRL-V_digit works

      I don't know. Maybe Cygwin starts in UTF-8, which would mean that Vim
      <=> Cygwin happens in UTF-8 without misunderstanding even if
      'termencoding' (q.v.) is left empty.

      > ----------------------------------------------------------------------------------------------------
      > And I find another issue. I have to START GVIM FROM "Cygwin"!!!
      > If I start gvim from windows explorer. The message characters in gvim
      > are not correctly displayed (see the attachment.)
      > Can can you tell the reasons? Thanks :)

      Hm, I'm not sure.

      Best regards,
      Down with categorical imperative!

      You received this message from the "vim_multibyte" maillist.
      For more information, visit http://www.vim.org/maillist.php
    • Show all 8 messages in this topic