Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

command of vi?

Command Vi
0
Posted

command of vi?

0

(. is the redo command in vi. It redoes the last insertion/deletion.) As of Emacs 20.3, there is indeed a repeat command (C-x z) that repeats the last command. If you preface it with a prefix argument, the prefix arg is applied to the command. You can also type C-x ESC ESC (repeat-complex-command) to reinvoke commands that used the minibuffer to get arguments. In repeat-complex-command you can type M-p and M-n (and also up-arrow and down-arrow, if your keyboard has these keys) to scan through all the different complex commands you’ve typed. To repeat a set of commands, use keyboard macros. (See Info file `emacs’, node `Keyboard Macros’.) If you’re really desperate for the . command, use VIPER, a vi emulation mode which comes with Emacs, and which appears to support it. (See section 9.4 VIPER — vi emulation for Emacs.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.