An updated version of ChineseIM.vim and data file are available.
Following are improvements:

(1) Made new naming
    (a) Plugin File =>  ChineseIM.vim
    (b) Data File =>  http://maxiangjiang.googlepages.com/ChineseIM.dict
    (c) global-variable =>  g:ChineseIM_InsertMode_Toggle
    (d) global-variable =>  g:ChineseIM_Ctrl6_Toggle

(2) Added a quick demo, to play without data file installed.
    (a) Assumption: vim is configured to show Chinese
    (b) source this script file by :source %
    (c) when in Insert mode, type:
        ma<C-X><C-U>
        chin<C-X><C-U>

(3) Showing more information on the popup menu:
    It is great when we have English Data File.
    To demo the usage, I added 2 entries ("english", "chinese") to the
new data file.  Now type:
        engl<C-X><C-U>
        chin<C-X><C-U>

(4) In ChineseIM_InsertMode, made punctuation intelligent :))

    ,  ==> Chinese , plus <Space>
    .  ==> Chinese . plus <Space>
    :  ==> Chinese : plus <Space>
    ;  ==> Chinese ; plus <Space>
    ?  ==> Chinese ? plus <Space>
    \  ==> Chinese \ plus <Space>

(5) In ChineseIM_InsertMode, added one more indication
    (a) cursor color turns to green
    (d) Status line shows  " -- INSERT (lang) --"

(6) uploaded a new data file, adding pinyin with tones to limit
selection.
    For example, "ma1", "ma2", "ma3", "ma4" works now

(7) Downloading:
    (a) Data File:  http://maxiangjiang.googlepages.com/ChineseIM.dict
    (b) Plugin:  http://vim.sourceforge.net/scripts/script.php?script_id=2506

Again, feedback is always welcome.

Thanks

Sean



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to