于 2011年11月22日 01:37, jason.桂林 写道: > I normally input code in vim, it's all ascii chars, but sometime I need > type chinese, for document and comment. > > The input method is chinese at insert mode, and I press <esc>, and then I > type some vim command, but this command can't be execute unless I switch > input method back to english. > > I will never use chinese input method at normal mode, and visual mode. so > can I disable input method at these mode? > > If I can't, I think it's a big problem. >
I guess the best way is to use vimim plugin. You can find it here: http://www.vim.org/scripts/script.php?script_id=2506 It can wipe out the pain of having to switch the input method often. It also support insert CJK chars while doing search (?/). Well, here are some possible disadvantages IMHO. When you use the cloud input engine, the latency is much depended on your network. When you use the local vocabulary database, the local database can be huge. After all, vimim is a whole different input method (designed for vim). Personally I also don't know how to make Vim and IBus Chinese input method. So other better solutions are appreciated. -- alick Fedora 14 (Laughlin) user https://fedoraproject.org/wiki/User:Alick -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
