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

Change attribute to getter - 88 entries

Wrap attributes with a getter method.

  • Best score: 24
  • Best player score: 25
  • Number of attempts: 2
Just the middle - 10337 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 2
Switch function arguments - 1876 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 15
  • Number of attempts: 2
That hyphen - 2376 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 5
I forgot quotes - 14294 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 7
Extract HTML option values from tag values - 73 entries

Generate HTML option values from the text in the option tag. If the text contains multiple words, replace the spaces with an underscore and convert all capital letters to small letters.

  • Best score: 34
  • Best player score: 44
  • Number of attempts: 2
From argument to object - 1212 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 20
  • Number of attempts: 3
V to the i - 4339 entries

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

  • Best score: 7
  • Best player score: 16
  • Number of attempts: 1
switch variable - 4614 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
jack
Twitter:

I do business.

entered into 9 challenges

contributed 0 challenges