EmacsGolf (2013)
jcarroll.com.au
jcarroll.com.au
https://github.com/melling/EditorNotes
Emacs and vim have been battling it out for 40 years. There's probably room to improve the typing efficiency of both.
Emacs has ergoemacs and god-mode, for example.
https://github.com/chrisdone/god-mode
Plus you can use vim key bindings.
Is a modal editor better? Should key bindings be built around a more efficient keyboard layout, like Programmer Dvorak, for example?
That was the idea behind aoeui/asdfg, whose commands are assigned to keys by position.
While I've found the mode very useful in developing my own setup I've moved on from it because it seems to make too many things randomly stop working for me. I like just picking my own bindings.
For me one good goal is to try to get as much as you can of the editing setup system-wide instead of a specific set of keybinds in just that one editor. With a non-modal one this is easier as there are standards like CUA and some other well-established shortcuts that tend to be present in many programs. The default placements just aren't all that great so a tool that can map keybindings to any kind of input can help you make use of them. I use xmonad to do it.
They were fun to watch, thanks for making them!
He has a series called Emacs Rocks of short (most are <5 minutes, I think) videos each showcasing one related set of commands, a series called Extending Emacs where he writes a new minor mode for Emacs and a series called Parens of the Dead where he write a webgame in ClojureScript (that last one doesn't star Emacs, but Emacs definitely plays a role).
You can find all of them at http://emacsrocks.com/
If the solution requires mental effort to do, some other way that is is easy and fast to arrive at in most cases could be faster in terms of time elapsed.
Would be fun to have the equivalent of typeracer for VimGolf with a series of tasks that would be similar to what you encounter when programming and a race against time. I wonder if it would be possible to come up with some kind of a "Edits Per Minute" that wouldn't be completely misleading.
Coincidentally (or not), re: the challenge in the above post, I wrote a command that solves exactly this problem: yank-interleaved. https://www.emacswiki.org/emacs/KillingAndYanking#toc3
How many keystrokes does it take to install and use that function?
1. control+g (Goto line number) 2&3. 11 (line 11) 4. enter 5. cmd+shift+down 6. cmd+x 7. backspace (delete trailing line) 8. cmd+shift+up 9. cmd+shift+l (multiple cursor mode) 10. right arrow (line up cursors) 11. tab 12. cmd+v
1. DOWN hold until line 11
2. SHIFT+DOWN hold until end of file to select
3. CMD+X to cut
4. BACKSPACE to remove space
5. CMD+A to select all
6. CMD+SHIFT+L to multiline
7. RIGHT to line up
8. TAB
9. CMD+V