1 *hangulin.txt* For Vim version 7.2. Last change: 2006 Apr 02
4 VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
8 It is to input hangul, the Korean language, with VIM GUI version.
9 If you have a XIM program, you can use another |+xim| feature.
10 Basically, it is for anybody who has no XIM program.
14 Next is a basic option. You can add any other configure option. >
16 ./configure --with-x --enable-multibyte --enable-fontset --enable-hangulinput
18 And you should check feature.h. If |+hangul_input| feature is enabled
19 by configure, you can select more options such as keyboard type, 2 bulsik
20 or 3 bulsik. You can find keywords like next in there. >
22 #define HANGUL_DEFAULT_KEYBOARD 2
23 #define ESC_CHG_TO_ENG_MODE
24 /* #define X_LOCALE */
25 /* #define SLOW_XSERVER */
29 You should set LANG variable to Korean locale such as ko or ko_KR.euc.
30 If you set LC_ALL variable, it should be set to Korean locale also.
34 You should add nexts to your global vimrc ($HOME/.vimrc). >
36 :set fileencoding=korea
40 You can change keyboard type (2 bulsik or 3 bulsik) using VIM_KEYBOARD
41 or HANGUL_KEYBOARD_TYPE environment variables. For sh, just do (2 bulsik): >
43 export VIM_KEYBOARD="2"
45 export HANGUL_KEYBOARD_TYPE="2"
47 If both are set, VIM_KEYBOARD has higher priority.
51 You can set text font using $HOME/.Xdefaults or in your gvimrc file.
52 But to use Hangul, you should set 'guifontset' in your vimrc.
55 Vim.font: english_font
57 ! Nexts are for hangul menu with Athena
59 Vim*fontSet: english_font,hangul_font
61 ! Nexts are for hangul menu with Motif
63 Vim*fontList: english_font;hangul_font:
66 set guifontset=english_font,hangul_font
68 attention! the , (comma) or ; (semicolon)
70 And there should be no ':set guifont'. If it exists, then Gvim ignores
71 ':set guifontset'. It means VIM runs without fontset supporting.
72 So, you can see only English. Hangul does not be correctly displayed.
74 After 'fontset' feature is enabled, VIM does not allow using 'font'.
75 For example, if you use >
76 :set guifontset=eng_font,your_font
77 in your .gvimrc, then you should do for syntax >
78 :hi Comment guifg=Cyan font=another_eng_font,another_your_font
80 :hi Comment font=another_eng_font
81 then you can see a GOOD error message. Be careful!
83 hangul_font width should be twice than english_font width.
87 Johab font not yet supported. And I don't have any plan.
88 If you really want to use johab font, you can use the
89 hanguldraw.c in gau package.
91 Hanja input not yet supported. And I don't have any plan.
92 If you really want to input hanja, just use VIM with hanterm.
96 Send comments, patches and suggestions to:
98 Chi-Deok Hwang <hwang@mizi.co.kr>
99 Nam SungHyun <namsh@kldp.org>
101 vim:tw=78:ts=8:ft=help:norl: