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

Reorganize Pokémon - 871 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 27
  • Position: #195 / 239
  • Number of attempts: 4
Rearrange array to one line - 889 entries

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

  • Best score: 13
  • Best player score: 20
  • Position: #111 / 205
  • Number of attempts: 3
String decompression - 43 entries

3a4b2c => aaabbbbcc. Start a new line when you exceed 79 columns.

  • Best score: 27
  • Best player score: 64
  • Position: #15 / 15
  • Number of attempts: 2
Swap values - 4703 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Position: #1112 / 1291
  • Number of attempts: 3
Search and Replace 0 - 5124 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #758 / 1670
  • Number of attempts: 3
Array transposition - 2474 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 49
  • Position: #434 / 459
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10749 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 21
  • Position: #3599 / 3712
  • Number of attempts: 1
replacing each line of a block selection - 3050 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 27
  • Position: #598 / 787
  • Number of attempts: 2
Ruby 1.9 hashes - 1293 entries

Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!

  • Best score: 12
  • Best player score: 17
  • Position: #338 / 417
  • Number of attempts: 9
Reverse characters in a line - 832 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 8
  • Best player score: 32
  • Position: #259 / 278
  • Number of attempts: 1
Simple text editing with Vim - 13576 entries

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

  • Best score: 13
  • Best player score: 28
  • Position: #3494 / 3892
  • Number of attempts: 2
Damien
Github:

entered into 11 challenges

contributed 0 challenges