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

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 73
  • Position: #227 / 420
  • Number of attempts: 1
delete swap - 1834 entries

delete all swap

  • Best score: 5
  • Best player score: 10
  • Position: #450 / 570
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1294 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: #247 / 277
  • Number of attempts: 1
Fill in the chess board - 979 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: #136 / 186
  • Number of attempts: 1
Swap values - 4667 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #855 / 1284
  • Number of attempts: 1
V to the i - 4833 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1187 / 1904
  • Number of attempts: 3
Split line with dots - 2156 entries

This line is too long, split it.

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

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

  • Best score: 12
  • Best player score: 17
  • Position: #580 / 901
  • Number of attempts: 1
Just the middle - 11555 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2244 / 4234
  • Number of attempts: 1
Vice versa - 7981 entries

Little role switching.

  • Best score: 12
  • Best player score: 14
  • Position: #933 / 2147
  • Number of attempts: 3
C Reformatting - 692 entries

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

  • Best score: 30
  • Best player score: 43
  • Position: #69 / 164
  • 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 - 299 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 16
  • Position: #121 / 141
  • 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 - 1659 entries

Put 3 spaces between adjacent letters.

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

so happy to learn vim.because vim is awesome

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

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #970 / 1140
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10720 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 13
  • Position: #2592 / 3703
  • Number of attempts: 2
attr_aligner - 3525 entries

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

  • Best score: 19
  • Best player score: 35
  • Position: #590 / 706
  • Number of attempts: 1
Stairs Indenting - 479 entries

Indent each line with <line number> whitespaces.

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

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #350 / 421
  • Number of attempts: 1
Remove noise from HTTP log - 732 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: #234 / 278
  • Number of attempts: 2
Increment, increment, increment.... - 703 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #346 / 414
  • Number of attempts: 1
The Cake is a Lie - 1389 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #460 / 538
  • Number of attempts: 1
Sort and add attributes - 1557 entries

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

  • Best score: 33
  • Best player score: 37
  • Position: #486 / 601
  • Number of attempts: 1
Reconstruct the Sentence - 1697 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: #242 / 445
  • Number of attempts: 1
Simple text editing with Vim - 13419 entries

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

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

entered into 27 challenges

contributed 0 challenges