Hello,

Thanks for comments and encourages from everyone, I have just uploaded
a new version with all suggestions considered. It is available on
http://vim.sourceforge.net/scripts/script.php?script_id=2506

Improvements were made using the following options:
---------------------------------------------------------------
  g:CacheIMEDataAtStartup:
    add data file in memory at startup
    :pro: fast popup menu shown when <key> is matched
    :con: slow initial loading when vim is opened
    default: 0

  g:ChineseIMESpaceToggle:
    toggle the use of <Space> to trigger popup menu
    i_<Tab> is used to toggle this feature
    :pro: convenient and consistent like other IMEs
    :con: need to get used to <Space> key
    default: 0

  g:ChineseIMEMappingCtrl6:
    define i_<C-^> as <C-X><C-U><C-U><C-P><C-N>
    default: 0
---------------------------------------------------------------

Sean

On Jan 4, 6:54 am, Tony Mechelynck <[email protected]>
wrote:
> On 04/01/09 15:05, StarWing wrote:
>
> > i think it used a little difficulty....just need some imploved.
>
> > On 1月4日, 下午4时37分, anhnmncb<[email protected]>  wrote:
> >> These lines in your script change the vim options globally, I don't think 
> >> it's
> >> a good way.
>
> >>      set completeopt=menu,preview,longest
> >>      set pumheight=10
>
> >>      set completefunc=ChineseIME
>
> Yes, all these should use ":setlocal" and be in a filetype-plugin, or
> maybe in some function called only on demand; not in a global plugin
> used for every file (including, let's say, C sources in ASCII or,
> speaking of "human" languages, Russian text in Cyrillic).
>
>
>
> >> And why not add a advice for imap in vimscript.org instead of writing it 
> >> in your
> >> plugin?
>
> >>      imap<C-^>   <C-X><C-U><C-U><C-P><C-N>
>
> Here also, ":imap <buffer> <C-^>  etc." might be better; and, as you
> say, it should perhaps be commented-out by default, since some users
> might prefer using another {lhs}. Myself, I don't know if my fr_BE
> keyboard has a key or key combo for Ctrl-^ so I might prefer <F12> as
> the {lhs}.
>
> Best regards,
> Tony.
> --
> A poem:                read aloud:
>
> <> !*''#               Waka waka bang splat tick tick hash,
> ^"`$$-                 Caret quote back-tick dollar dollar dash,
> !...@$_                 Bang splat equal at dollar under-score,
> %*<> ~#4               Percent splat waka waka tilde number four,
> &[]../                 Ampersand bracket bracket dot dot slash,
> |{,,SYSTEM HALTED      Vertical-bar curly-bracket comma comma CRASH.
>
> Fred Bremmer and Steve Kroese (Calvin College & Seminary of Grand
> Rapids, MI.)
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to