KISOKU Learning to breathe

27
May 07

As the result of a conversation with naddy@ at c2k7 , I have finally made some progress in getting japanese input and display working in vim and uxterm on OpenBSD.

First, make sure you have inputmethods/uim, editors/vim and japanese/mplus-ttf installed and run the following commands. Oh yeah, you'll probably want to be running OpenBSD 4.1-current with Xenocara for this to work.

$ env LC_ALL=ja_JP.UTF-8 uim-xim &
$ env LC_ALL=ja_JP.UTF-8 uxterm -fa "Mincho Gothic"

We've noticed a bug in uxterm in -current, in order for UTF-8 display to work you have to control right mouse click the new uxterm window and make sure "UTF-8" is selected in order for vim to display properly. Now that you have done that start up vim like this

$ vim "+set encoding=utf-8" test.txt

You should now be able to input japanese into text mode vim in UTF-8. Now let's see if I can get the japanese mutt patch working.

blog comments powered by Disqus