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

HS exam question - 1589 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 73
  • Position: #224 / 417
  • Number of attempts: 1
delete swap - 1788 entries

delete all swap

  • Best score: 5
  • Best player score: 10
  • Position: #439 / 557
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1253 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 69
  • Position: #241 / 271
  • Number of attempts: 1
Fill in the chess board - 959 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 47
  • Position: #135 / 185
  • Number of attempts: 1
Swap values - 4639 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #852 / 1273
  • Number of attempts: 1
V to the i - 4813 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1182 / 1897
  • Number of attempts: 3
Split line with dots - 2154 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 19
  • Position: #329 / 635
  • Number of attempts: 5
Com(m)a Trouble - 3865 entries

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

  • Best score: 12
  • Best player score: 17
  • Position: #562 / 873
  • Number of attempts: 1
Just the middle - 11479 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2236 / 4207
  • Number of attempts: 1
Vice versa - 7942 entries

Little role switching.

  • Best score: 12
  • Best player score: 14
  • Position: #930 / 2137
  • Number of attempts: 3
C Reformatting - 690 entries

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

  • Best score: 30
  • Best player score: 43
  • Position: #69 / 163
  • Number of attempts: 2
Paragraph sort - 450 entries

My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.

  • Best score: 14
  • Best player score: 18
  • Position: #83 / 125
  • Number of attempts: 2
Generate a list of numbers - 295 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 16
  • Position: #120 / 140
  • Number of attempts: 2
Mirror Symmetry - 822 entries

Add backslashes.

  • Best score: 7
  • Best player score: 14
  • Position: #242 / 269
  • Number of attempts: 1
Space out the alphabet - 1658 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 22
  • Position: #327 / 445
  • Number of attempts: 3
learn vim in short time - 240 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 8
  • Position: #99 / 161
  • Number of attempts: 2
-a-b-c- - 3216 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #968 / 1138
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10679 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 13
  • Position: #2580 / 3688
  • Number of attempts: 2
attr_aligner - 3522 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 35
  • Position: #589 / 703
  • Number of attempts: 1
Stairs Indenting - 478 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 12
  • Position: #16 / 198
  • Number of attempts: 1
Append semicolon after expressions - 1056 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #348 / 419
  • Number of attempts: 1
Remove noise from HTTP log - 717 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 17
  • Position: #229 / 273
  • Number of attempts: 2
Increment, increment, increment.... - 692 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #343 / 410
  • Number of attempts: 1
The Cake is a Lie - 1359 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #454 / 530
  • Number of attempts: 1
Sort and add attributes - 1476 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 37
  • Position: #464 / 574
  • Number of attempts: 1
Reconstruct the Sentence - 1580 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 19
  • Best player score: 21
  • Position: #233 / 424
  • Number of attempts: 1
Simple text editing with Vim - 12959 entries

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

  • Best score: 13
  • Best player score: 21
  • Position: #2915 / 3731
  • Number of attempts: 1
jn
Twitter:

entered into 27 challenges

contributed 0 challenges