On 12 March 2010 14:58, Tyson Roberts wrote:
>
> Okay, I've been suffering with this for some time, but I've been wondering
> if there's a better solution out there.  One of the things that constantly
> messes me up is when I try to compose Japanese in vim is that, eventually, I
> accidentally input characters into normal mode.  This has a random effects,
> but among them are commonly data-destroying effects that include overwriting
> the undo stack.
>
> gvim on windows has a feature for only allowing IME input in input mode,
> along with the ability to remember which IME was last used during input
> mode, which made everything streamlined.  This remains the only thing I like
> about that version over MacVim.
>
> Is there anything already implemented or not that could solve this problem?

I add the line

set noimd imi=0 ims=0

to my ~/.gvimrc and the first time I enter insert mode switch to the
non-english layout I'm using (e.g. Swedish).  When insert mode is
exited MacVim automatically switches back to US English (and when I go
back to insert mode it switches back to Swedish again).  Note that I
have US English and Swedish layouts enabled in the "Language & Text"
System Preferences.

With Kotoeri you should be able to just enable Romaji and it should
switch back to that when you go back to normal mode.

You'll need a fairly recent snapshot as well (just get 52...it has
this automatic switching feature).

Let me know if that's not what you're looking for or if it doesn't
work satisfactorily.

Björn

-- 
You received this message from the "vim_mac" 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

Reply via email to