Mercurial > vim
annotate runtime/doc/hangulin.txt @ 18450:507348b211b4 v8.1.2219
patch 8.1.2219: no autocommand for open window with terminal
Commit: https://github.com/vim/vim/commit/28ed4dfe1f80905fb399c2cde31ace5ee14d8c67
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 26 16:21:40 2019 +0200
patch 8.1.2219: no autocommand for open window with terminal
Problem: No autocommand for open window with terminal.
Solution: Add TerminalWinOpen. (Christian Brabandt)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 26 Oct 2019 16:30:03 +0200 |
parents | 2f7e67dd088c |
children | df141c730008 |
rev | line source |
---|---|
13963 | 1 *hangulin.txt* For Vim version 8.1. 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 ------------ | |
11473 | 9 It is to input hangul, the Korean language, with Vim GUI version. |
7 | 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 | |
11473 | 34 Vim resource |
7 | 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 ------------ | |
11473 | 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 |
11473 | 61 If you use Motif or Athena version of gvim, you should set 'guifontset' in |
7208
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 | |
11473 | 80 And there should be no ':set guifont'. If it exists, then gvim ignores |
81 ':set guifontset'. It means Vim runs without fontset supporting. | |
236 | 82 So, you can see only English. Hangul does not be correctly displayed. |
7 | 83 |
11473 | 84 After "fontset" feature is enabled, Vim does not allow using english |
11062 | 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 |
11473 | 102 If you really need such features, you can use console version of Vim with a |
7208
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 |
14421 | 112 vim:tw=78:ts=8:noet:ft=help:norl: |