Ideavim how to close the command line after starting: mark or: reg

I had this strange problem with the AppCode IdeaVim plugin. After installation, everything works correctly. However, I experience some really annoying things. Whenever I try to list the labels by running the command :marks or :registers , they are listed, a screenshot from the command line:

screenshot of the command-prompt

but I can not close the command line. It says Hit ENTER or type command , but pressing Enter does not close it, and does not enter another command.

Usually in vim, after pressing esc command line closes. So I thought it might be by design. Or am I missing a shortcut key?

Thanks in advance,

+5
source share
1 answer

The default keys are (RET: line, SPACE: page, d: half page, q: quit) , from https://github.com/JetBrains/ideavim/blob/f33f73d2f5f89d9ff50c336dcd75e2ef13db0c33/src/com/maddyhome/idea/vim/ /ExOutputPanel.java#L282-L331

The problem is that the key listener is added to the command line by default .

But after you type something like :marks , the focus is still in the editor. You can check it by typing j , the editor still scrolls.

Of course, the command line does not know that you are typing or performing any action.

At least right now there is no better way than manually clicking on the command line first, then you can enter shortcuts that you like.

0
source

Source: https://habr.com/ru/post/1270497/


All Articles