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

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 27
  • Position: #184 / 226
  • Number of attempts: 4
Rearrange array to one line - 840 entries

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

  • Best score: 13
  • Best player score: 20
  • Position: #106 / 197
  • Number of attempts: 3
String decompression - 39 entries

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

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

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Position: #1111 / 1289
  • Number of attempts: 3
Search and Replace 0 - 5089 entries

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

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

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 49
  • Position: #433 / 458
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10743 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 21
  • Position: #3597 / 3710
  • Number of attempts: 1
replacing each line of a block selection - 3040 entries

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

  • Best score: 18
  • Best player score: 27
  • Position: #597 / 785
  • Number of attempts: 2
Ruby 1.9 hashes - 1287 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: #336 / 415
  • Number of attempts: 9
Reverse characters in a line - 813 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: #256 / 274
  • Number of attempts: 1
Simple text editing with Vim - 13468 entries

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

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

entered into 11 challenges

contributed 0 challenges