lexima.vim icon indicating copy to clipboard operation
lexima.vim copied to clipboard

Possibility of supressing flickering of Command mode while pressing backspace

Open ajitid opened this issue 2 years ago • 3 comments

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 avatar Feb 02 '23 12:02 ajitid

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

ajitid avatar Feb 02 '23 16:02 ajitid

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>.

cohama avatar Feb 03 '23 15:02 cohama

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

ajitid avatar Feb 03 '23 16:02 ajitid