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 - 1155 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #105 / 536
  • Number of attempts: 4
Simple, Practical, and Common - 33988 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: #6026 / 7509
  • Number of attempts: 2
Hogwarts Email Sorting - 952 entries

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

  • Best score: 20
  • Best player score: 39
  • Position: #255 / 271
  • Number of attempts: 1
Get mail address from outlook format - 660 entries

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

  • Best score: 15
  • Best player score: 17
  • Position: #135 / 207
  • Number of attempts: 1
One number per line - 18896 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2574 / 3902
  • Number of attempts: 2
Aliases for cd - 909 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: #124 / 159
  • Number of attempts: 1
Unsemantic linewrapping - 947 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 / 237
  • Number of attempts: 1
V to the i - 4866 entries

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

  • Best score: 7
  • Best player score: 9
  • Position: #1748 / 1913
  • Number of attempts: 3
Applying same text modification in several lines - 2929 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #621 / 866
  • Number of attempts: 1
Add string initializers to an enum - 903 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 28
  • Position: #222 / 266
  • Number of attempts: 1
Add semicolons - 10955 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Position: #1908 / 3098
  • Number of attempts: 2
remove lines containing the word "reader" - 3649 entries

easy stuff

  • Best score: 9
  • Best player score: 16
  • Position: #1128 / 1184
  • Number of attempts: 1
Com(m)a Trouble - 3990 entries

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

  • Best score: 12
  • Best player score: 17
  • Position: #593 / 909
  • Number of attempts: 1
Box it - 8002 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 31
  • Position: #1475 / 1900
  • Number of attempts: 1
Copy three lines - 2911 entries

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

  • Best score: 13
  • Best player score: 20
  • Position: #423 / 645
  • Number of attempts: 1
Just the middle - 11613 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3663 / 4253
  • Number of attempts: 1
One to Ten - 2249 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: #544 / 687
  • Number of attempts: 1
Delete to the end of the current line - 867 entries

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

  • Best score: 5
  • Best player score: 6
  • Position: #358 / 417
  • Number of attempts: 1
Collect List - 4336 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Position: #1096 / 1198
  • Number of attempts: 1
I forgot quotes - 16187 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3398 / 4222
  • Number of attempts: 1
-a-b-c- - 3240 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #730 / 1146
  • Number of attempts: 1
Words in parens - 13034 entries

We should all ace this, right?

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

entered into 22 challenges

contributed 0 challenges