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

Remove adjacent duplicates - 531 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 38
  • Position: #100 / 137
  • Number of attempts: 2
Move to corresponding lines - 251 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 29
  • Position: #42 / 57
  • Number of attempts: 5
Rearrange array to single level - 1396 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 27
  • Position: #127 / 229
  • Number of attempts: 8
Rearrange array to one line - 667 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 19
  • Position: #64 / 161
  • Number of attempts: 5
Copy punctuation - 521 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 34
  • Position: #59 / 133
  • Number of attempts: 4
Mirror image - 87 entries

Add the second eye

  • Best score: 15
  • Best player score: 24
  • Position: #17 / 31
  • Number of attempts: 1
New teacher - 1109 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 24
  • Position: #89 / 237
  • Number of attempts: 6
months to html list items - 1042 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 26
  • Position: #148 / 284
  • Number of attempts: 1
Tic-Tac-Toe Grid Transformation - 396 entries

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

  • Best score: 56
  • Best player score: 154
  • Position: #61 / 83
  • Number of attempts: 2
Populate 3D bone names list - 633 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 32
  • Position: #111 / 163
  • Number of attempts: 8
Find fix point of cos - 1408 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #242 / 418
  • Number of attempts: 5
Paste a column after a column - 2555 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 28
  • Position: #412 / 557
  • Number of attempts: 3
Fix the shell script! - 2596 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 64
  • Position: #546 / 603
  • Number of attempts: 1
Com(m)a Trouble - 3875 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #355 / 876
  • Number of attempts: 10
Python Hello World! Reformatting - 1000 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 44
  • Position: #259 / 382
  • Number of attempts: 4
Words in parens - 12967 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1183 / 3969
  • Number of attempts: 6
Stairs Indenting - 478 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 14
  • Position: #139 / 198
  • Number of attempts: 1
Sort entries based on date - 392 entries

Sort some entries in a Ledger-file based on date.

  • Best score: 11
  • Best player score: 12
  • Position: #68 / 117
  • Number of attempts: 7
Numbering a List - 1935 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 29
  • Position: #601 / 654
  • Number of attempts: 2
Round Round - 321 entries

Round Round

  • Best score: 19
  • Best player score: 103
  • Position: #67 / 88
  • Number of attempts: 3
Table Reshuffle - 439 entries

Fix the column order in this table... also append the new 'username' column.

  • Best score: 22
  • Best player score: 39
  • Position: #105 / 142
  • Number of attempts: 2
Hatsuyume - 540 entries

http://en.wikipedia.org/wiki/Hatsuyume

  • Best score: 15
  • Best player score: 23
  • Position: #58 / 187
  • Number of attempts: 6
Flodder-challenge - 1326 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 45
  • Position: #289 / 346
  • Number of attempts: 1
Simple text editing with Vim - 12996 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #2022 / 3739
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 7157 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 28
  • Best player score: 69
  • Position: #1661 / 1755
  • Number of attempts: 1
Willy
Twitter2:

entered into 25 challenges

contributed 0 challenges