Friday, March 20, 2009

VimIM 微软双拼码表



下载

昨天试用了一下 VimIM, 发现没有双拼, 所以就自己作了一个,根据fcitx的全拼码表,用脚本正则替换一下,就成了双拼的了:) 用的微软双拼方案,下载地址


2009 年 三月 29 号 星期日 更新:
此双拼码表已被"招安": 官方下载



使用

具体使用可以google vimim 看看. 如果写程序 , 只是偶尔用中文,可以使用One Key , 不用切换输入法 , 是我个人认为 VimIM 最大的亮点, 我把 <C-^> map 成了<D-u> ,就是mac下的⌘-U , 大拇指比小拇指更强壮些:D

问题

微软双拼使用';' 作为 'ing'的发音,但是在 VimIM 中不好用,解决方案有两种,改码表或者改vimim.vim :

  1. 改码表 : 将';'替换为'y',如果不习惯键位的改动,可以改vimim.vim
  2. 改vimim.vim

    #1136行, 将 ";" 加入 s:char_valid 中
    let s:char_valid = "[;*.0-9A-Za-z]"


2009 年 三月 29 号 星期日 更新:
昨天刚出炉的VimIM 3.2 已经支持双拼,直接下载最新版和双拼码表既可.

9 comments:

vimim said...

Great! I came across your post by searching vimim out of curiosity. This is my gift to you: http://maxiangjiang.googlepages.com/vimim_wildcard_search_shuangpin.gif

I will include ShangPin support officially soon. I also make it "plug and play" without configuration when filename is vimim.shuangpin.txt which can be downloaded, using your example directly. Credit has been added if you check **credits.

Please tell me if you can find bug at http://groups.google.com/group/vimim

Thanks

Sean

Free Ai said...

@Sean - Thanks for your great work!

"不折腾" really matters! The Chinese version of "Convention Over Configuration" :)

Waiting for good news...

vimim said...

(I could not find my comment last night ... Let me try again)

New Release is out, please tell me bugs and new feature requests:

(1) support "Double Pinyin (ShangPin) Input Method" and upload sample datafile: 双拼 http://maxiangjiang.googlepages.com/vimim.double_pinyin.txt

(2) make "static mode" as default; better user experience: Space_Key => Chinese; Tab_key => English

Free Ai said...

@Sean - Awesome!! Thanks !

Bug : static menu didn't work properly,
pls check Issue 2

I use vim for programming 80% or more , and input chinese occasionally , so I prefer OneKey, although static mode's really cool, I don't like to toggle input mode often:)

BTW: How to debug vim script efficiently?

vimim said...
This comment has been removed by the author.
vimim said...

I just uploaded a quick fix. Please confirm.

I only used OneKey as you did, and the only long article I wrote in Chinese over the past 10 years is http://maxiangjiang.googlepages.com/vimim.html

It is written using VimIM OneKey in reStructuredText format: simple to write, sexy to look. :))

Also, as more and more coding is 外包 to 印度 and 中国, I had less chances to do programming. In fact, vimim is one of the longest codes I did over the past 3 years, if it can be called "programming" :))

Free Ai said...

@Sean

Cool!

New Feature Request: 整句输入 :))

vimim said...
This comment has been removed by the author.
vimim said...

Welcome to join 新闻论坛: http://groups.google.com/group/vimim

I need feedbacks from real users to make VimIM useful.

Thanks

Sean