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 values - 4390 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Position: #1016 / 1230
  • Number of attempts: 1
V to the i - 4596 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1217 / 1837
  • Number of attempts: 1
Todo list specification - 350 entries

The every item on the todo list must be done today. Modify the list to reflect that.

  • Best score: 37
  • Best player score: 39
  • Position: #112 / 161
  • Number of attempts: 1
Format java properties - 64 entries

Format java properties to a different format. The value which is the string following the first '=' cannot & should not change. All periods in the key get replaced with an underscore "_" and get a prefix of "b_".

  • Best score: 27
  • Best player score: 37
  • Position: #22 / 29
  • Number of attempts: 1
Adam's challenge - 903 entries

Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.

  • Best score: 18
  • Best player score: 23
  • Position: #201 / 251
  • Number of attempts: 2
Replace and keep the case - 390 entries

Replace all instance of plugin and Plugin to device and Device.

  • Best score: 26
  • Best player score: 32
  • Position: #91 / 109
  • Number of attempts: 1
Where should I put the Newline? - 830 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #377 / 415
  • Number of attempts: 2
quotes inside quotes - 2996 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 3
  • Best player score: 17
  • Position: #875 / 1037
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1441 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 14
  • Position: #349 / 411
  • Number of attempts: 1
Shebangs for all - 1719 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 19
  • Position: #373 / 458
  • Number of attempts: 2
Reconstruct the Sentence - 1045 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 20
  • Best player score: 25
  • Position: #280 / 328
  • Number of attempts: 1
Simple text editing with Vim - 11354 entries

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

  • Best score: 13
  • Best player score: 22
  • Position: #2689 / 3335
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 5800 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 47
  • Position: #1127 / 1437
  • Number of attempts: 1
Jonas Sunde V
Twitter:

entered into 13 challenges

contributed 0 challenges