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

Avoid InsertLeave event for insert mode mapping #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ozars
Copy link

@ozars ozars commented Mar 18, 2019

I am using lessspace.vim plugin to remove white spaces when I switch to normal mode. Currently switching windows/panes while insert mode triggers InserrtLeave due to inoremap command prefix and it causes white spaces to be removed in insert mode. Prepending ctrl-c in insert mode instead of ctrl-\ + ctrl-o fixes this issue.

- Triggering InsertLeave causes whitespaces to be removed when focus is
lost while in insert mode, if user has a whitespace plugin checking on
InsertLeave.
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.

1 participant