On 5/17/06, hj <[EMAIL PROTECTED]> wrote:
I find that the only method to input chinese in vim on a windows box is using
gvim. And after pressing the ESCAPE switch to command mode, I must switch the
input method into English. It is not so convenient. Is there any method to
solve these problems?
I was going to suggest you first find out whether your
console/terminal Vim has been compiled the same as your GUI gvim. I
thought you should be able to use
:has("mbyte")
but though I've compiled with MBYTE on, and the above fails for me. I
guess you can use
:version
instead.
I'm trying to learn a little about multi-byte functionality myself to
test some of the stuff I'm doing. I found this in the help doc:
7. Input on X11 *mbyte-XIM*
X INPUT METHOD (XIM) BACKGROUND *XIM* *xim* *x-input-method*
.......
For Chinese, there's a great XIM server named "xcin", you can input both
Traditional and Simplified Chinese characters. And it can accept other
locale if you make a correct input table. Xcin can be found at:
http://xcin.linux.org.tw/
Others are scim: http://scim.freedesktop.org/ and fcitx:
http://www.fcitx.org/
And a lot more. Unfortunately, this would suggest it's only useful
for the X11 or MsWIN GUI capable programs. Hopefully, you are using
an Xterminal which will communicate like this. (In general, it would
be a good idea to find out about the abilities of the terminal/console
you are using.)
I'm trying to learn about this myself, so I hope I don't add any confusion.
P.S. Before I get too far into this, am I going to be able to test
out Japanese or Chinese entry on a WinXp english-based OS?