Win10 Vim disable IME on startup

219 views
Skip to first unread message

Wang Xavier

unread,
Oct 1, 2015, 11:37:59 AM10/1/15
to vim_dev
Hello,

I have meet a issue on Windows 10. (maybe has same issue on Window 8.1+).

In these system, I have set IME to Chinese input by default, because
the America Keyboard input method can not set into Chinese language.

So everytime I open Vim, I should press Win+Space to disable IME to
use Vim. I have found a option 'imdisable', but even I set this, when
start Vim, the first time the IME is still remaining open.

Now the scene is. open gVim, it's in normal mode, but IME is open,
press i<CR> to input a i in IME mode, press <ESC>, it return to normal
mode, and IME is closed.

I think it should have a patch that after startup, check the IME
status, and if it's open, close it, because after the startup Vim stay
in normal mode.



--
regards,
Xavier Wang.

mattn

unread,
Oct 1, 2015, 1:47:24 PM10/1/15
to vim_dev

FYI, You can do it with put below into your vimrc.

set iminsert=0
set imsearch=0

And if you want to start insert with non-active mode for IME always:

map <silent> <ESC> <ESC>:set iminsert=0<CR>

However, I wonder how many users want to start insert with active-mode for IME.
At least, japanese doesn't. Most japanese users has this configuration in them vimrc.

Anyone know which users want this behavior? If not, I want to change this behavior as to start insert with non-active mode for IME.

- mattn

Wang Xavier

unread,
Oct 1, 2015, 7:55:21 PM10/1/15
to vim_dev
Sorry for my bad English, but I mean, the IME is *open* when Vim is in
*normal mode*!!

that means, if I want in insert mode, or delete a word, or do any
normal mode command, I should do it after IME, I think this is clearly
a bug.

1. start Vim
2. you are in normal mode with IME *open*.
3. try go to another mode and return to normal mode.
4. IME is closed as expected.

I think we need a patch to close IME on the first normal mode.


--
regards,
Xavier Wang.
Reply all
Reply to author
Forward
0 new messages