*multibyte.txt*    For Vim version 5.4c.  Last modification: 1998 Nov 03


		  VIM REFERENCE MANUAL    by Bram Moolenaar


Multi-byte support				*multibyte* *multi-byte*

This is limited information on the support in Vim to edit files that use more
than one byte per character.

See |+multi_byte| and |'fileencoding'|.

==============================================================================
XIM (X Input Method) and X fontset support.		*xim* *x-input-method*
							*xfontset* *x-fontset*

-. NOTE
   This feature tested in Linux-X86, RedHat-5.x with XFree86-3.3.2.
   GUI-athena works fine for me (Linux-x86).
   GUI-lesstif(19980826 CVS ver) also works fine for me (Linux-x86).

   It also tested in korean version of Sparc-Solaris with Motif.

   Please test this on your own system with your own risk.
   Please contact me and give your result.
   Please send me a patch if you have.

   CAUTION!!! THIS PATCH IS NOT FULLY TESTED. USE IT AT YOUR OWN RISK.
              WELL, IF YOU FIND A BUG, TELL ME. I WILL DO MY BEST.

-. You should run X Input server which supports your language.
   OK. You can see your language though you have no X Input server.
   add '#define USE_FONTSET' to the config.h

-. If needed, insert next 3 lines in your $HOME/.Xdefaults

	*international: True
	*.inputMethod: your_input_server_name
	*.preeditType: your_input_method

   Next 2 or 3 lines should be inserted in your $HOME/.Xdefaults:

	Vim.font: english_font,your_language_font
	Vim*fontSet: english_font,your_language_font
	Vim*fontList: your_language_font:


   *international may not necessary if you use X11R6.
   *.inputMethod and *.preeditType is a optional if you use X11R6.

   your_input_method = OnTheSpot or OverTheSpot or OffTheSpot or Root
                       (OnTheSpot currently not supported).
   Vim.font is for text area.
   Vim*fontSet is for menu.
   Vim*fontList is for menu (Motif) <-- Athena version not needed.

   You can also use ':set guifont' command. Example:
	:set guifont=english_font;your_language_font
   Attention!  ';' is used. NOT COMMA.

-. if needed, you can set XMODIFIERS env. var.

	sh:  export XMODIFIERS="@im=your_input_server_name"
	csh: setenv XMODIFIERS "@im=your_input_server_name"

   input_server_name is your XIM server name.

-. You should set LANG environment variable to your language.
   Don't unset or set to C.
	sh:  export LANG=ko
	csh: setenv LANG ko

-. In your .vimrc, add this
	set fileencoding=korea
   You can change the 'korea' to the some other name such as japan, taiwan.

-. BUGS & TODO
   *. your_language_font width should be twice than english_font width.
      I want to think it is not a bug. GVIM needs fixed width font.
      ex)  Vim.font: -*-fixed-*--14-*-*-*-*-70-*,-*-*-*-*--14-*-*-*-*-140-*
   *. If input method set fails, there should not be shown the additional
      status line in the bottom. Also, if user use Root style.
   *. Sometimes, gvim hangs if I press some button in the XIM server.
   *. In the visual mode, select with mouse, sometimes, only half of the
      characters are shown.
   *. If input server died, gvim also died.
   *. And many other unknown side effect and BUG!!!!.

-. Compile
	./configure --with-x --enable-multibyte=yes
	make
	run_your_X_input_server_if_not_currently_running
	./vim -g

   note) If you use Linux, you should add '-DX_LOCALE' to the CFLAGS.
   play, if success, then Happy GVimming with your language.

Thanks to Bram who made a VIM, the best editor I have met.
Thanks to YJSeo who made a X Input Server, named hanIM.

Send any other comments, patches and suggestions to:

                                      Chi-Deok Hwang <cdhwang@sr.hei.co.kr>
                                      Sung-Hyun Nam <namsh@lgic.co.kr>
