Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put [challenge ID]

Played Challenges

Yo To Hello - 1154 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #105 / 535
  • Number of attempts: 4
Simple, Practical, and Common - 33965 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 32
  • Position: #6022 / 7501
  • Number of attempts: 2
Hogwarts Email Sorting - 948 entries

Given a list of emails, get the students full name and their associated house.

  • Best score: 20
  • Best player score: 39
  • Position: #252 / 268
  • Number of attempts: 1
Get mail address from outlook format - 656 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 17
  • Position: #133 / 205
  • Number of attempts: 1
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2572 / 3898
  • Number of attempts: 2
Aliases for cd - 908 entries

Create these beautiful aliases with as few strokes as possible. Are you up for the challenge?

  • Best score: 30
  • Best player score: 58
  • Position: #123 / 158
  • Number of attempts: 1
Unsemantic linewrapping - 943 entries

[Inspired by a blog post I read: https://scott.mn/2014/02/21/semantic_linewrapping/. Text adapted.] Sometimes when editing a Markdown file, I wrap the lines semantically. Instead of inserting a newline at 70 columns (or whatever), or making paragraphs one long line, I put in newlines at a point that seems logical to me. This may seem silly, but it produces better diffs. Semantic linewrapping also makes editing snappier. I can delete, edit or insert sentences easily using linewise operations. Code-oriented text editors like Vim and [REDACTED] are really good at this kind of manipulation. Editing text that hasn't been wrapped semantically is a pain, though:

  • Best score: 9
  • Best player score: 9
  • Position: #66 / 235
  • Number of attempts: 1
V to the i - 4853 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 9
  • Position: #1744 / 1909
  • Number of attempts: 3
Applying same text modification in several lines - 2927 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 16
  • Position: #620 / 865
  • Number of attempts: 1
Add string initializers to an enum - 899 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 28
  • Position: #220 / 264
  • Number of attempts: 1
Add semicolons - 10932 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Position: #1902 / 3091
  • Number of attempts: 2
remove lines containing the word "reader" - 3643 entries

easy stuff

  • Best score: 9
  • Best player score: 16
  • Position: #1125 / 1181
  • Number of attempts: 1
Com(m)a Trouble - 3988 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 17
  • Position: #592 / 908
  • Number of attempts: 1
Box it - 7997 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 31
  • Position: #1472 / 1897
  • Number of attempts: 1
Copy three lines - 2909 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 20
  • Position: #422 / 644
  • Number of attempts: 1
Just the middle - 11572 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3655 / 4240
  • Number of attempts: 1
One to Ten - 2247 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 15
  • Position: #543 / 685
  • Number of attempts: 1
Delete to the end of the current line - 865 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 6
  • Position: #357 / 415
  • Number of attempts: 1
Collect List - 4332 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Position: #1094 / 1196
  • Number of attempts: 1
I forgot quotes - 16176 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3394 / 4216
  • Number of attempts: 1
-a-b-c- - 3233 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #728 / 1143
  • Number of attempts: 1
Words in parens - 13028 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 17
  • Position: #2754 / 3984
  • Number of attempts: 1
Mack Hutsell
Twitter:

entered into 22 challenges

contributed 0 challenges