Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Chinese, Japanese, Korean] default value of iminsert should be 0 #2071

@mattn

Description

@mattn

Hi, Vim users in Asian.

Maybe, I believe that you are using input method on Vim every days. As you know, iminsert, imsearch, imcmdline is an option to switch mode of input method. And the default value is 2 when an input method is supported.

	Insert mode.  Valid values:
		0	:lmap is off and IM is off
		1	:lmap is ON and IM is off
		2	:lmap is off and IM is ON

For Japanese input method, when input method is activated, it start preediting to input multi-byte strings. i.e. We can not input alphabet letters. Since the default value of iminsert/imsearch/imcmdline is 2, input method is activated when insert mode. To input alphabet, we must type activation-key of input method to disable input method every time when Vim goes insert-mode or search-mode. This behavior often makes user confusing. In the case that beginners start to learn Vim using vimtutor, they will type keys as mentioned in lesson. They have should have frustration because they must type activation-key for each time to enter insert mode.

However, I don't know all of input method in the world. I'm not sure, even though input method is activated, but some of them may be possible to input alphabet So I want to collect the opinions whether we can change the default value of iminsert/imsearch/imcmdline.

If you want to keep it as 2, I want to suggest to change behavior as which vim set the best value for the locale.

I'm looking for your opinion.

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions