Skip to main content
added 8 characters in body
Source Link
Sean
  • 8k
  • 11
  • 15

Emacs, 43 35 keystrokes

M-9 x RET : nine x's, return
C-SPC : set mark
| M-3 SPC | M-3 SPC | RET : pipe, three spaces, pipe, three spaces, pipe, return
M-9 - RET : nine hyphens, return
| M-7 SPC | RET : pipe, seven spaces, pipe, return
M-9 - RET : nine hyphens, return
C-x C-x : exchange point and mark, selecting region
M-w : copy region
C-p : previous line
C-y : yank copied text
M-x rev-r RET : execute reverse-region command

Emacs, 43 35 keystrokes

M-9 x RET : nine x's, return
C-SPC : set mark
| M-3 SPC | M-3 SPC | RET : pipe, three spaces, pipe, three spaces, pipe, return
M-9 - RET : nine hyphens
| M-7 SPC | RET : pipe, seven spaces, pipe, return
M-9 - RET : nine hyphens, return
C-x C-x : exchange point and mark, selecting region
M-w : copy region
C-p : previous line
C-y : yank copied text
M-x rev-r RET : execute reverse-region command

Emacs, 43 35 keystrokes

M-9 x RET : nine x's, return
C-SPC : set mark
| M-3 SPC | M-3 SPC | RET : pipe, three spaces, pipe, three spaces, pipe, return
M-9 - RET : nine hyphens, return
| M-7 SPC | RET : pipe, seven spaces, pipe, return
M-9 - RET : nine hyphens, return
C-x C-x : exchange point and mark, selecting region
M-w : copy region
C-p : previous line
C-y : yank copied text
M-x rev-r RET : execute reverse-region command

deleted 192 characters in body
Source Link
Sean
  • 8k
  • 11
  • 15

Emacs, 4343 35 keystrokes

Pretty straightforward macro-based solution.

C-x ( start new macro
M-9 -x RET : nine hyphens andx's, return
C-xSPC ) end macro: set mark
| M-3 C-x e execute macro 3 times
C-p previous line
C-xSPC ( start new macro
| M-73 SPC | RET : pipe, seventhree spaces, pipe, three spaces, pipe, return
C-x ) end macro
M-3 C-p go back three lines
C-x9 e- execute macro
C-n next line
C-xRET ( start new macro: nine hyphens
| M-37 SPC | M-3RET : pipe, seven spaces, pipe, return
SPCM-9 |- RET pipe, three spaces, pipe, three spaces, pipe: nine hyphens, return
C-x ) end macro
C-x e execute macro: exchange point and mark, selecting region
M-w : copy region
C-p : previous line
C-y : yank copied text
M-9x xrev-r RET nine x's, return: execute reverse-region command

Emacs, 43 keystrokes

Pretty straightforward macro-based solution.

C-x ( start new macro
M-9 - RET nine hyphens and return
C-x ) end macro
M-3 C-x e execute macro 3 times
C-p previous line
C-x ( start new macro
| M-7 SPC | RET pipe, seven spaces, pipe, return
C-x ) end macro
M-3 C-p go back three lines
C-x e execute macro
C-n next line
C-x ( start new macro
| M-3 SPC | M-3 SPC | RET pipe, three spaces, pipe, three spaces, pipe, return
C-x ) end macro
C-x e execute macro
C-p previous line
M-9 x RET nine x's, return

Emacs, 43 35 keystrokes

M-9 x RET : nine x's, return
C-SPC : set mark
| M-3 SPC | M-3 SPC | RET : pipe, three spaces, pipe, three spaces, pipe, return
M-9 - RET : nine hyphens
| M-7 SPC | RET : pipe, seven spaces, pipe, return
M-9 - RET : nine hyphens, return
C-x C-x : exchange point and mark, selecting region
M-w : copy region
C-p : previous line
C-y : yank copied text
M-x rev-r RET : execute reverse-region command

Source Link
Sean
  • 8k
  • 11
  • 15

Emacs, 43 keystrokes

Pretty straightforward macro-based solution.

C-x ( start new macro
M-9 - RET nine hyphens and return
C-x ) end macro
M-3 C-x e execute macro 3 times
C-p previous line
C-x ( start new macro
| M-7 SPC | RET pipe, seven spaces, pipe, return
C-x ) end macro
M-3 C-p go back three lines
C-x e execute macro
C-n next line
C-x ( start new macro
| M-3 SPC | M-3 SPC | RET pipe, three spaces, pipe, three spaces, pipe, return
C-x ) end macro
C-x e execute macro
C-p previous line
M-9 x RET nine x's, return