0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00
vim/runtime/doc/hangulin.txt

106 lines
3.1 KiB
Plaintext
Raw Normal View History

2010-08-15 15:24:20 +02:00
*hangulin.txt* For Vim version 7.3. Last change: 2009 Jun 24
2004-06-13 20:20:40 +00:00
VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam
2010-01-06 20:52:26 +01:00
NOTE: The |+hangul_input| feature is scheduled to be removed. If you want to
keep it, please send a message to the Vim user maillist.
2004-06-13 20:20:40 +00:00
Introduction *hangul*
------------
It is to input hangul, the Korean language, with VIM GUI version.
If you have a XIM program, you can use another |+xim| feature.
2005-04-15 21:00:38 +00:00
Basically, it is for anybody who has no XIM program.
2004-06-13 20:20:40 +00:00
Compile
-------
2005-04-15 21:00:38 +00:00
Next is a basic option. You can add any other configure option. >
2004-06-13 20:20:40 +00:00
./configure --with-x --enable-multibyte --enable-fontset --enable-hangulinput
2005-04-15 21:00:38 +00:00
And you should check feature.h. If |+hangul_input| feature is enabled
2004-06-13 20:20:40 +00:00
by configure, you can select more options such as keyboard type, 2 bulsik
2005-04-15 21:00:38 +00:00
or 3 bulsik. You can find keywords like next in there. >
2004-06-13 20:20:40 +00:00
#define HANGUL_DEFAULT_KEYBOARD 2
#define ESC_CHG_TO_ENG_MODE
/* #define X_LOCALE */
/* #define SLOW_XSERVER */
Environment variables
---------------------
You should set LANG variable to Korean locale such as ko or ko_KR.euc.
If you set LC_ALL variable, it should be set to Korean locale also.
VIM resource
------------
You should add nexts to your global vimrc ($HOME/.vimrc). >
:set fileencoding=korea
Keyboard
--------
You can change keyboard type (2 bulsik or 3 bulsik) using VIM_KEYBOARD
2005-04-15 21:00:38 +00:00
or HANGUL_KEYBOARD_TYPE environment variables. For sh, just do (2 bulsik): >
2004-06-13 20:20:40 +00:00
export VIM_KEYBOARD="2"
or >
export HANGUL_KEYBOARD_TYPE="2"
If both are set, VIM_KEYBOARD has higher priority.
Hangul Fonts
------------
2006-04-05 20:41:53 +00:00
You can set text font using $HOME/.Xdefaults or in your gvimrc file.
2004-06-13 20:20:40 +00:00
But to use Hangul, you should set 'guifontset' in your vimrc.
$HOME/.Xdefaults: >
Vim.font: english_font
! Nexts are for hangul menu with Athena
*international: True
Vim*fontSet: english_font,hangul_font
! Nexts are for hangul menu with Motif
*international: True
Vim*fontList: english_font;hangul_font:
$HOME/.gvimrc: >
set guifontset=english_font,hangul_font
attention! the , (comma) or ; (semicolon)
2005-04-15 21:00:38 +00:00
And there should be no ':set guifont'. If it exists, then Gvim ignores
':set guifontset'. It means VIM runs without fontset supporting.
So, you can see only English. Hangul does not be correctly displayed.
2004-06-13 20:20:40 +00:00
After 'fontset' feature is enabled, VIM does not allow using 'font'.
For example, if you use >
:set guifontset=eng_font,your_font
in your .gvimrc, then you should do for syntax >
:hi Comment guifg=Cyan font=another_eng_font,another_your_font
If you just do >
:hi Comment font=another_eng_font
2005-04-15 21:00:38 +00:00
then you can see a GOOD error message. Be careful!
2004-06-13 20:20:40 +00:00
hangul_font width should be twice than english_font width.
Unsupported Feature
-------------------
2005-04-15 21:00:38 +00:00
Johab font not yet supported. And I don't have any plan.
2004-06-13 20:20:40 +00:00
If you really want to use johab font, you can use the
hanguldraw.c in gau package.
2005-04-15 21:00:38 +00:00
Hanja input not yet supported. And I don't have any plan.
2004-06-13 20:20:40 +00:00
If you really want to input hanja, just use VIM with hanterm.
Bug or Comment
--------------
Send comments, patches and suggestions to:
Chi-Deok Hwang <hwang@mizi.co.kr>
2010-01-06 20:52:26 +01:00
SungHyun Nam <goweol@gmail.com>
2004-06-13 20:20:40 +00:00
vim:tw=78:ts=8:ft=help:norl: