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

VIM-1756: Fix escape key when moving from insert mode to select mode #265

Closed

Conversation

shaunpatterson
Copy link
Contributor

Bug fix for VIM-1756. Original PR: #251

When moving from Insert mode to Select mode, the escape key would only exit select mode.

Steps to reproduce:

With ideavimrc settings

set selectmode+=key
set keymodel^=startsel

From anywhere in an editor, enter insert mode, select+arrow left, escape. Your cursor will still be in insert mode. This fix escapes Insert mode as well.

Not sure if this is the BEST fix. Open to suggestions.

@AlexPl292
Copy link
Member

Hi! Sorry for such a big delay. Actually, I'm not sure that the current behaviour of IdeaVim is incorrect. I've checked this in vim and neovim and it looks like they both exit only select mode in this case and leave the editor in insert mode.
2021-04-28 10 45 42

@AlexPl292 AlexPl292 closed this Oct 7, 2021
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

Successfully merging this pull request may close these issues.

2 participants