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

199 Fibonacci Numbers - 35 entries

Generate 199 Fibonacci Numbers using, if you like, the function S(x,y), a vimscript to sum two big numbers in reverse order.

  • Best score: 51
  • Best player score: 62
  • Number of attempts: 2
Circle in a square - 125 entries

Probably looks more like "Egg in a rectangle" in most fonts, but it's actually 23x23.

  • Best score: 23
  • Best player score: 50
  • Number of attempts: 3
Flip the chessboard - 66 entries

White's turn is over. Flip the board to black's perspective. I added coordinates to frustrate you.

  • Best score: 18
  • Best player score: 51
  • Number of attempts: 1
html paragraph to table - 330 entries

reformat html paragraph to table

  • Best score: 7
  • Best player score: 48
  • Number of attempts: 13
C Reformatting - 638 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 42
  • Number of attempts: 1
Cartesian product - 201 entries

{1,2,3,4,5} X {1,2,3,4,5}

  • Best score: 24
  • Best player score: 26
  • Number of attempts: 3
Land of the Lost - 60 entries

Enter the tabs below the lyrics

  • Best score: 26
  • Best player score: 41
  • Number of attempts: 2
Square numbers - 57 entries

Boring math puzzle.

  • Best score: 16
  • Best player score: 25
  • Number of attempts: 1
Put the months in order - 403 entries

Our contractor thought that months should be in alphabetical order. Put them in calendar order please.

  • Best score: 23
  • Best player score: 23
  • Number of attempts: 10
-a-b-c- - 2549 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 7
Simple text editing with Vim - 10345 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 3
Com(m)a Trouble - 1619 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 6
Vice versa - 5884 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 8
Basic renumbering - 4571 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
Align commas - 833 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
Swap values - 3483 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 7
A HAPPY NEW YEAR 2014 ! - 9440 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 2
convert yml into java pojo field - 637 entries

How fast vim can create fields for java pojo i.e class declaration referring to a (simple) yml file

  • Best score: 29
  • Best player score: 29
  • Number of attempts: 4
Copy three lines - 2002 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 7
Interweave two blocks of text - 486 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 4
Count both ways - 864 entries

Right AND down.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 3
Applying same text modification in several lines - 1558 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 4
V to the i - 3872 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 5
Just the middle - 9087 entries

Delete the instructions at the top and bottom.

  • Best score: 7