Bug ID | 1216794 |
---|---|
Summary | Delay when switching to normal mode due to suse.vimrc mapping the escape key |
Classification | openSUSE |
Product | openSUSE Distribution |
Version | Leap 15.4 |
Hardware | Other |
OS | Other |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | Development |
Assignee | screening-team-bugs@suse.de |
Reporter | eecdc3.opensuse@coders-haven.net |
QA Contact | qa-bugs@suse.de |
Target Milestone | --- |
Found By | --- |
Blocker | --- |
As the title says $VIMRUNTIME/suse.vimrc adds mappings involving the escape key. This causes a delay of 'timeoutlen' when pressing the escape key to return to normal mode, which defaults to one second and makes using vim on openSUSE feel very sluggish. It seems that these mappings were introduced to make vim properly react on escape codes sent by various terminals such as screen and xterm when pressing modifier keys. I am not getting any issues with xterm when removing those mappings manually, so I was wondering if they really are still needed? Removing them manually is not a viable solution since suse.vimrc gets restored whenever I update the package, which I am current obtaining from the editors repository. I find this really weird by the way as I would expected have the rpmconfigcheck mechanism to prevent this. (If there is a way to prevent package updates from reverting my changes to suse.vimrc please let me know so that I at least have a local workaround for the time being.) I am not familiar with the implementation details of *nix terminals but `:help modifyOtherKeys` mentions an improvement available in xterm 377 and later. Maybe that information is of help? (X11:terminals providers xterm 387 so such a dependency can be fulfilled.)