Mercurial > vim
annotate runtime/doc/hangulin.txt @ 9313:c0760b25f31d v7.4.1939
commit https://github.com/vim/vim/commit/28607ba2b82668503f8406bc13690d59af46deb3
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 15 21:44:51 2016 +0200
patch 7.4.1939
Problem: Memory access error when reading viminfo. (Dominique Pelle)
Solution: Correct index in jumplist when at the end.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 15 Jun 2016 21:45:05 +0200 |
parents | 17333ebd2bbd |
children | 9f48eab77d62 |
rev | line source |
---|---|
7272
17333ebd2bbd
commit https://github.com/vim/vim/commit/d042dc825c9b97dacd84d4728f88300da4d5b6b9
Christian Brabandt <cb@256bit.org>
parents:
7208
diff
changeset
|
1 *hangulin.txt* For Vim version 7.4. Last change: 2015 Nov 24 |
7 | 2 |
3 | |
4 VIM REFERENCE MANUAL by Chi-Deok Hwang and Sung-Hyun Nam | |
5 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
6 |
7 | 7 Introduction *hangul* |
8 ------------ | |
9 It is to input hangul, the Korean language, with VIM GUI version. | |
10 If you have a XIM program, you can use another |+xim| feature. | |
236 | 11 Basically, it is for anybody who has no XIM program. |
7 | 12 |
13 Compile | |
14 ------- | |
236 | 15 Next is a basic option. You can add any other configure option. > |
7 | 16 |
7208
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
17 ./configure --with-x --enable-multibyte --enable-hangulinput \ |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
18 --disable-xim |
7 | 19 |
236 | 20 And you should check feature.h. If |+hangul_input| feature is enabled |
7 | 21 by configure, you can select more options such as keyboard type, 2 bulsik |
236 | 22 or 3 bulsik. You can find keywords like next in there. > |
7 | 23 |
24 #define HANGUL_DEFAULT_KEYBOARD 2 | |
25 #define ESC_CHG_TO_ENG_MODE | |
26 /* #define X_LOCALE */ | |
27 | |
28 Environment variables | |
29 --------------------- | |
7208
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
30 You should set LANG variable to Korean locale such as ko, ko_KR.eucKR |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
31 or ko_KR.UTF-8. |
7 | 32 If you set LC_ALL variable, it should be set to Korean locale also. |
33 | |
34 VIM resource | |
35 ------------ | |
7208
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
36 You may want to set 'encoding' and 'fileencodings'. |
7272
17333ebd2bbd
commit https://github.com/vim/vim/commit/d042dc825c9b97dacd84d4728f88300da4d5b6b9
Christian Brabandt <cb@256bit.org>
parents:
7208
diff
changeset
|
37 Next are examples: > |
7 | 38 |
7208
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
39 :set encoding=euc-kr |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
40 :set encoding=utf-8 |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
41 :set fileencodings=ucs-bom,utf-8,cp949,euc-kr,latin1 |
7 | 42 |
43 Keyboard | |
44 -------- | |
45 You can change keyboard type (2 bulsik or 3 bulsik) using VIM_KEYBOARD | |
236 | 46 or HANGUL_KEYBOARD_TYPE environment variables. For sh, just do (2 bulsik): > |
7 | 47 |
48 export VIM_KEYBOARD="2" | |
49 or > | |
50 export HANGUL_KEYBOARD_TYPE="2" | |
51 | |
52 If both are set, VIM_KEYBOARD has higher priority. | |
53 | |
54 Hangul Fonts | |
55 ------------ | |
7208
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
56 If you use GTK version of GVIM, you should set 'guifont' and 'guifontwide'. |
7272
17333ebd2bbd
commit https://github.com/vim/vim/commit/d042dc825c9b97dacd84d4728f88300da4d5b6b9
Christian Brabandt <cb@256bit.org>
parents:
7208
diff
changeset
|
57 For example: > |
7208
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
58 set guifont=Courier\ 12 |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
59 set guifontwide=NanumGothicCoding\ 12 |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
60 |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
61 If you use Motif or Athena version of GVIM, you should set 'guifontset' in |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
62 your vimrc. You can set fontset in the .Xdefaults file. |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
63 |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
64 $HOME/.gvimrc: > |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
65 set guifontset=english_font,hangul_font |
7 | 66 |
67 $HOME/.Xdefaults: > | |
68 Vim.font: english_font | |
69 | |
70 ! Nexts are for hangul menu with Athena | |
71 *international: True | |
72 Vim*fontSet: english_font,hangul_font | |
73 | |
74 ! Nexts are for hangul menu with Motif | |
75 *international: True | |
76 Vim*fontList: english_font;hangul_font: | |
77 | |
78 attention! the , (comma) or ; (semicolon) | |
79 | |
236 | 80 And there should be no ':set guifont'. If it exists, then Gvim ignores |
81 ':set guifontset'. It means VIM runs without fontset supporting. | |
82 So, you can see only English. Hangul does not be correctly displayed. | |
7 | 83 |
7208
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
84 After 'fontset' feature is enabled, VIM does not allow using english |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
85 font only in 'font' setting for syntax. |
7 | 86 For example, if you use > |
87 :set guifontset=eng_font,your_font | |
88 in your .gvimrc, then you should do for syntax > | |
89 :hi Comment guifg=Cyan font=another_eng_font,another_your_font | |
90 If you just do > | |
91 :hi Comment font=another_eng_font | |
7208
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
92 then you can see a error message. Be careful! |
7 | 93 |
94 hangul_font width should be twice than english_font width. | |
95 | |
96 Unsupported Feature | |
97 ------------------- | |
7208
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
98 We don't support Johab font. |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
99 We don't support Hanja input. |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
100 And We don't have any plan to support them. |
7 | 101 |
7208
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
102 If you really need such features, you can use console version of VIM with a |
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
103 capable terminal emulator. |
7 | 104 |
105 Bug or Comment | |
106 -------------- | |
107 Send comments, patches and suggestions to: | |
108 | |
2033
de5a43c5eedc
Update documentation files.
Bram Moolenaar <bram@zimbu.org>
parents:
1702
diff
changeset
|
109 SungHyun Nam <goweol@gmail.com> |
7208
2c00f6b312bf
commit https://github.com/vim/vim/commit/72f4cc4a987d123c0ed909c85b9a05f65cef7202
Christian Brabandt <cb@256bit.org>
parents:
5294
diff
changeset
|
110 Chi-Deok Hwang <...> |
7 | 111 |
112 vim:tw=78:ts=8:ft=help:norl: |