Gõ tiếng Việt với Vxim
Tuesday, 26. February 2008, 12:12:52
30s dành cho quảng cáo:
Bị cụ dhson dụ dỗ nên mình đi xài Vxim luôn
. Vxim có một cái hay là nó chỉ active trong một windows hiện thời (windows mà bạn đang làm việc), do đó khi chuyển sang một windows khác, bạn vẫn ko bị đè bởi cách gõ, do đó rất là tiện nếu bạn làm việc kiểu multi-task(nghĩa là vừa chat vừa code).
Howto:
-Get the src code from : xvim.sf.net then extract.
-configure --prefix=/home/path/etc....
-make
Với gcc 4 sẽ báo lỗi file process.h dòng 61, cách sửa :
Thay
bằng
-remake
Việc thứ 2 là cần set các biến trước khi vào DE, mình xài openbox do đó nên để trong ~/.config/openbox/autorun.sh các dòng sau:
Với Gnome(mostly used):
Add these lines to ~/.gnomerc (i don't try and I won't
, googling urself )
**Author's comment:
Add these to /etc/gdm/Xsession (for Gnome) and to /usr/bin/startkde (for KDE)
For KDE: Add those lines to /usr/bin/startkde for autostart
*Bugs: can not use free style typing.
-Relogin
-Done;
OK: Cái lợi thứ 2 là chỉ cần 1 file binary 331K (maybe smaller) và set các biến như trên thì Vxim vẫn work perfectly mà ko cần rebuild.
Vxim
-Press the Shift + Space then Enjoy the type;
Bị cụ dhson dụ dỗ nên mình đi xài Vxim luôn
Howto:
-Get the src code from : xvim.sf.net then extract.
-configure --prefix=/home/path/etc....
-make
Với gcc 4 sẽ báo lỗi file process.h dòng 61, cách sửa :
Thay
(IMForwardEventStruct *)call_data->event.xkey.keycode = 22;
bằng
((IMForwardEventStruct *)call_data)->event.xkey.keycode = 22;
-remake
Việc thứ 2 là cần set các biến trước khi vào DE, mình xài openbox do đó nên để trong ~/.config/openbox/autorun.sh các dòng sau:
export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export XMODIFIERS="@im=VN" export PATH=$PATH:/to/you/Vxim export GTK_IM_LIB=im export GTK_IM_MODULE=xim
Với Gnome(mostly used):
Add these lines to ~/.gnomerc (i don't try and I won't
**Author's comment:
Add these to /etc/gdm/Xsession (for Gnome) and to /usr/bin/startkde (for KDE)
export XMODIFIERS="@im=VN" export GTK_IM_MODULE=xim
For KDE: Add those lines to /usr/bin/startkde for autostart
ln -s .../Vxim ~/.kde/Autostart/Vxim
*Bugs: can not use free style typing.
-Relogin
-Done;
OK: Cái lợi thứ 2 là chỉ cần 1 file binary 331K (maybe smaller) và set các biến như trên thì Vxim vẫn work perfectly mà ko cần rebuild.
Vxim
-Press the Shift + Space then Enjoy the type;








How to use Quote function: