##Emacs, 10 keystrokes <kbd>F3</kbd> <kbd>C-u</kbd> <kbd>1</kbd> <kbd>0</kbd> <kbd>*</kbd> <kbd>ENTER</kbd> <kbd>F4</kbd> <kbd>C-u</kbd> <kbd>9</kbd> <kbd>F4</kbd> ###Explanation F3 Starts a macro recording C-u 1 0 * Apply 10 times command '*': prints 10 asterix' ENTER Insert new line F4 Stops the macro record C-u 9 F4 Apply 9 times the macro