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

Possibility of supressing flickering of Command mode while pressing backspace #144

Open
ajitid opened this issue Feb 2, 2023 · 3 comments

Comments

@ajitid
Copy link

ajitid commented Feb 2, 2023

While pressing backspace, I've noticed that the editor goes to Insert → Command → Insert mode. This causes a flicker in statusline. I assume you probably you know about this, if not, you can slow down the video to see this transition. Is it possible that we can hide it somehow?

Screencast.from.2023-02-02.17-48-28.webm

Vim: NVIM v0.9.0-dev-843+g860fea1a3
OS: Fedora 37

@ajitid
Copy link
Author

ajitid commented Feb 2, 2023

I noticed this happens on pressing space key too (in insert mode).

@cohama
Copy link
Owner

cohama commented Feb 3, 2023

Thank you for your feedback. I noticed this issue and plan to fix in the future version.

Technically, this is caused by <C-r>= mapping internally used in lexima.vim. In the past, this was the only way to achieve complex features (e.g. calling function) in insert mode. However newer version of vim or neovim can use <Cmd> instead, which does not trigger CmdlineEnter.
I decided to throw away the old version of vim and introduce new engine powered by <Cmd>.

@ajitid
Copy link
Author

ajitid commented Feb 3, 2023

Good idea 👍
Let me know when I can test these changes

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

2 participants