blob: 78c00a8871f2985f75751287630e81a557849180 [file] [log] [blame]
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01001*hangulin.txt* For Vim version 7.2. Last change: 2009 Jun 24
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
4 VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
5
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +01006NOTE: The |+hangul_input| feature is scheduled to be removed. If you want to
7keep it, please send a message to the Vim user maillist.
8
9
Bram Moolenaar071d4272004-06-13 20:20:40 +000010Introduction *hangul*
11------------
12It is to input hangul, the Korean language, with VIM GUI version.
13If you have a XIM program, you can use another |+xim| feature.
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000014Basically, it is for anybody who has no XIM program.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015
16Compile
17-------
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000018Next is a basic option. You can add any other configure option. >
Bram Moolenaar071d4272004-06-13 20:20:40 +000019
20 ./configure --with-x --enable-multibyte --enable-fontset --enable-hangulinput
21
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000022And you should check feature.h. If |+hangul_input| feature is enabled
Bram Moolenaar071d4272004-06-13 20:20:40 +000023by configure, you can select more options such as keyboard type, 2 bulsik
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000024or 3 bulsik. You can find keywords like next in there. >
Bram Moolenaar071d4272004-06-13 20:20:40 +000025
26 #define HANGUL_DEFAULT_KEYBOARD 2
27 #define ESC_CHG_TO_ENG_MODE
28 /* #define X_LOCALE */
29 /* #define SLOW_XSERVER */
30
31Environment variables
32---------------------
33You should set LANG variable to Korean locale such as ko or ko_KR.euc.
34If you set LC_ALL variable, it should be set to Korean locale also.
35
36VIM resource
37------------
38You should add nexts to your global vimrc ($HOME/.vimrc). >
39
40 :set fileencoding=korea
41
42Keyboard
43--------
44You can change keyboard type (2 bulsik or 3 bulsik) using VIM_KEYBOARD
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000045or HANGUL_KEYBOARD_TYPE environment variables. For sh, just do (2 bulsik): >
Bram Moolenaar071d4272004-06-13 20:20:40 +000046
47 export VIM_KEYBOARD="2"
48or >
49 export HANGUL_KEYBOARD_TYPE="2"
50
51If both are set, VIM_KEYBOARD has higher priority.
52
53Hangul Fonts
54------------
Bram Moolenaar910f66f2006-04-05 20:41:53 +000055You can set text font using $HOME/.Xdefaults or in your gvimrc file.
Bram Moolenaar071d4272004-06-13 20:20:40 +000056But to use Hangul, you should set 'guifontset' in your vimrc.
57
58$HOME/.Xdefaults: >
59 Vim.font: english_font
60
61 ! Nexts are for hangul menu with Athena
62 *international: True
63 Vim*fontSet: english_font,hangul_font
64
65 ! Nexts are for hangul menu with Motif
66 *international: True
67 Vim*fontList: english_font;hangul_font:
68
69$HOME/.gvimrc: >
70 set guifontset=english_font,hangul_font
71
72attention! the , (comma) or ; (semicolon)
73
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000074And there should be no ':set guifont'. If it exists, then Gvim ignores
75':set guifontset'. It means VIM runs without fontset supporting.
76So, you can see only English. Hangul does not be correctly displayed.
Bram Moolenaar071d4272004-06-13 20:20:40 +000077
78After 'fontset' feature is enabled, VIM does not allow using 'font'.
79For example, if you use >
80 :set guifontset=eng_font,your_font
81in your .gvimrc, then you should do for syntax >
82 :hi Comment guifg=Cyan font=another_eng_font,another_your_font
83If you just do >
84 :hi Comment font=another_eng_font
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000085then you can see a GOOD error message. Be careful!
Bram Moolenaar071d4272004-06-13 20:20:40 +000086
87hangul_font width should be twice than english_font width.
88
89Unsupported Feature
90-------------------
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000091Johab font not yet supported. And I don't have any plan.
Bram Moolenaar071d4272004-06-13 20:20:40 +000092If you really want to use johab font, you can use the
93hanguldraw.c in gau package.
94
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000095Hanja input not yet supported. And I don't have any plan.
Bram Moolenaar071d4272004-06-13 20:20:40 +000096If you really want to input hanja, just use VIM with hanterm.
97
98Bug or Comment
99--------------
100Send comments, patches and suggestions to:
101
102 Chi-Deok Hwang <hwang@mizi.co.kr>
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +0100103 SungHyun Nam <goweol@gmail.com>
Bram Moolenaar071d4272004-06-13 20:20:40 +0000104
105 vim:tw=78:ts=8:ft=help:norl: