Emulate vi’s dot (.) command in Emacs
One of the most powerful commands vi has that emacs doesn’t have is the dot (.) command that repeats the previous command. If you use emacs what will you do if you are addicted to vi’s dot command?
There is no adequate answer. Some answers are
- Use the key sequence C-x z if you have version 20.3. or later. Equivalent to the command repeat.
- Use the key sequence C-x <ESC> <ESC>, for repeat-complex-command. You can even navigate to the previous complex command using M-p and M-n.
- Get vi-dot.el by Will Mengarini. Check Will Mengarini’s homepage. If not found, try a google search on vi-dot.el.
- Use macros for repeating complex commands.
- Use any vi-emulating modes in emacs, like VIPER.
- Use vi