What is this view in vim called, and what is it for?
Somehow when I type colon to enter a command in vim I accidentally bring up a view that looks like this. But I can't get it to happen consistently, and I don't know what it is.
Edit:
It seems to happen if I type "q:", instead of ":q".
Best Answer
It's the command-line window (keyboard shortcut
q:
, quit withctrl+c
,ctrl+c
)It shows a history of your previous commands, which you can navigate to and edit with normal (command) mode. Once you've finished you can hit
enter
to run the edited or reselected command.A similar history window is available for searches (keyboard shortcut
q/
, quit withctrl+c
,ctrl+c
).Reference: http://vim.wikia.com/wiki/Using_command-line_history