Join GitHub today
[Chinese, Japanese, Korean] default value of iminsert should be 0 #2071
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.
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.
I know that there is at least one input method for Latin alphabet, so the user can type not only the 26x2 ASCII letters [A-Za-z] but also strange "modified" Latin letters as used in Turkish, Polish, Czech, Vietnamese, etc.; or even in my native French.
This said, I still favour defaulting 'iminsert' to 0 and 'imsearch' to -1 (which means "use 'iminsert' value for 'imsearch' too). A user wanting to input, say, Turkish, will then leave it unchanged if he has a native Turkish keyboard, set it to 1 (implicitly) by use of ":setlocal keymap=" with some Turkish keymap, or to 2 if he wants to use that "Latin" input method server.
Similarly, mutatis mutandis, for East Asian languages or for any other language for which an input method is available.
@brammool As I wrote in above, I want to change default value of iminsert/imsearch. How do you think?
I have no opinion, and I also see no other Asian people respond. I assume users either agree or haven't seen the proposal. I suppose we can make the change and undo it if some users complain.…
-- In a world without fences, who needs Gates and Windows? /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///