Question: For typed in commands invoked via M-x I am having difficulty understanding how Emacs allows recalling and rerunning the commands. The command-history works quite differently from Vim. It puts the commands in a buffer rather than the ‘minibuffer’.
Is there a way to get something similar to Vim’s approach (i.e., previously typed commands can be scrolled through simply using the arrow up-down keys)?
C-x ESC ESC,C-x M-ESC, orC-x M-:puts your history in the minibuffer, after which you can scroll back and forth as you like with the arrow keys.M-x list-command-historyputs the whole history in a buffer from which you can execute commands.C-x zrepeats the last command.Look at EMACS manual (info) section 8.5 Minibuffer History.