2
2
Once you grok vi, your muscle memory learns tricks like ggVGx
to delete all the text in a file. Trouble is, ggVGx
is not an English word, so it makes a terrible mnemonic.
This challenge is about constructing a single Vi[m] command that can be reasonably read as an English word, phrase or sentence. One point per letter.
Modifier keys such as meta/alt, control, and shift should be written as they are in VimScript, e.g. <C-c>
so we can read them, but will be pronounced as two consecutive letters: cc
, for a score of 2.
Vim commands that start with :
are only count toward your scrore if they build a word out of non-words. So :%s/aword/anotherword/gi
would only add 3 to your score, for sgi
(and only then if sgi
is part of an actual English word or phrase, such as hasgills
. Similarly :help
would add zero to your score.
No user-defined mappings. Your answer should work on a fresh install of Vim with no .vimrc or other gizmos.
Finally, the command has to do something other than throw an error.
Example Entry:
cap (3)
cap
, change a paragraph
Are you excluding commands that start with
:
? Most of them are pretty obviously English words. – Greg Hewgill – 2014-05-29T01:26:33.960ah good point, updating... – hoosierEE – 2014-05-29T01:37:52.800
Wait, people still use vim? Don't they know that it's 2014? – Kyle Kanos – 2014-05-29T01:38:04.660
1The proper command to delete the entire buffer is obviously
ggdG
(orGdgg
) – Geoff Reedy – 2014-05-29T02:19:55.353Slightly related, someone on SO asked for a way to "insert a space in normal mode," so I gave him a mapping that would insert a space any time he typed the keys
space
. – Kevin – 2014-05-29T02:47:50.8502@KyleKanos Wait, you mean there's people who don't use vim? – Kevin – 2014-05-29T02:48:14.440
@Kevin but did you make it so
spaaace
inserted 3 spaces, etc? – hoosierEE – 2014-05-29T02:51:13.150Which brings up another point. We can't just use mappings, right? – Kevin – 2014-05-29T02:51:55.700
Correct, no mappings. I assumed that would fall under the standard loopholes, but I'll add it to the question to be clear. – hoosierEE – 2014-05-29T02:58:26.543
This question is offensive to my religion – Digital Trauma – 2014-05-29T03:52:53.987