Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option "imdisable" affects option "keymap". #6404

Open
Deni672 opened this issue Jul 6, 2020 · 0 comments
Open

Option "imdisable" affects option "keymap". #6404

Deni672 opened this issue Jul 6, 2020 · 0 comments

Comments

@Deni672
Copy link

Deni672 commented Jul 6, 2020

Option "imdisable" affects option "keymap".

Steps to reproduce.

Create vim from source code.
My version is 8.2 with patches 1-1127.

Run command

VIMRUNTIME=/not-existing-dir \
./path-to-git-vim/src/vim \
-u NONE \
-U NONE \
-i NONE \
--noplugin \
-n \
-N \
-g

In vim type command

:source ./path-to-git-vim/runtime/keymap/russian-jcuken.vim

and press "enter".

Go to insert mode (press "i").
Text in status line: "-- INSERT --".
Press "C-6".
Text in status line: "-- INSERT (ru) --".

Press "," and ".".
Result [1]: type text "бю" (expected).

Press "S-," (hold "shift" key and press comma key) and "S-." (hold "shift" key and press dot key).
Result [1]: type text "БЮ" (expected).

Exit from insert mode (press "esc").

Type command

:set imdisable

and press "enter".

Go to insert mode (press "i").
Text in status line: "-- INSERT --".
Press "C-6".
Text in status line: "-- INSERT (ru) --".

Press "," and "." again.
Result [2]: type text "бю" (expected).

Press "S-," and "S-." again.
Result [2]: type text "<>" (unexpected) (bug).
Expected result: type text "БЮ" (not "<>").

Not only "S-,", "S-." affected. Other key combinations also affected.

If type command

:set noimdisable

and press enter, when behavior is like [1].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant