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

Swap columns and transform to CSV format - 319 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 17
  • Position: #19 / 118
  • Number of attempts: 4
extract struct tag in go - 89 entries

Can you extract all struct tags in the fewest keystrokes possible?

  • Best score: 29
  • Best player score: 47
  • Position: #22 / 29
  • Number of attempts: 2
Find fix point of cos - 1432 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: #260 / 424
  • Number of attempts: 2
delete swap - 1809 entries

delete all swap

  • Best score: 5
  • Best player score: 15
  • Position: #524 / 564
  • Number of attempts: 3
Java to JavaScript - 285 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 140
  • Position: #70 / 76
  • Number of attempts: 1
Migrated to Postgres! - 338 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 47
  • Position: #127 / 133
  • Number of attempts: 1
ssh config skills - 258 entries

Parse output from `kuebctl get no -o wide` into an .ssh/config file!

  • Best score: 41
  • Best player score: 91
  • Position: #56 / 66
  • Number of attempts: 2
One number per line - 18797 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 25
  • Position: #3388 / 3879
  • Number of attempts: 1
Line under headers - 2072 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 41
  • Position: #456 / 510
  • Number of attempts: 4
attr_aligner - 3525 entries

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

  • Best score: 19
  • Best player score: 26
  • Position: #283 / 706
  • Number of attempts: 4
Prefixes and suffixes - 637 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 187
  • Position: #200 / 202
  • Number of attempts: 1
Haruaki Tomida
Github:

entered into 11 challenges

contributed 0 challenges