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

replacing each line of a block selection - 2999 entries

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

  • Best score: 18
  • Best player score: 22
  • Position: #420 / 777
  • Number of attempts: 1
Switch function arguments - 2130 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #218 / 661
  • Number of attempts: 3
constructor - 182 entries

coding a constructor for a simple class

  • Best score: 59
  • Best player score: 99
  • Position: #33 / 60
  • Number of attempts: 1
switch variable - 5071 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #84 / 1748
  • Number of attempts: 3
Ugly spreadsheet copy/paste to CSV - 1009 entries

convert an ugly spreadsheet copy/paste into a CSV format.

  • Best score: 19
  • Best player score: 21
  • Position: #41 / 193
  • Number of attempts: 4
Multiplication table. - 232 entries

Create a multiplication table.

  • Best score: 31
  • Best player score: 68
  • Position: #29 / 68
  • Number of attempts: 2
remove dupes from array - 1354 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 31
  • Position: #308 / 335
  • Number of attempts: 3
imports alignment (python) - 700 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 17
  • Position: #30 / 198
  • Number of attempts: 5
Ruby 1.9 hashes - 1244 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: 13
  • Position: #152 / 406
  • Number of attempts: 2
Assignment Alignment - 883 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 27
  • Position: #129 / 220
  • Number of attempts: 1

Contributed Challenges

un-C-escape string - 58 entries

Convert escape sequences to characters

Jomo
Twitter:

entered into 10 challenges

contributed 1 challenges