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

Simple, Practical, and Common - 33929 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #866 / 7489
  • Number of attempts: 6
Swap values - 4667 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #151 / 1284
  • Number of attempts: 4
One number per line - 18840 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1205 / 3893
  • Number of attempts: 5
Just the middle - 11555 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2420 / 4234
  • Number of attempts: 1
Append semicolon after expressions - 1061 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #108 / 421
  • Number of attempts: 3
remove dupes from array - 1361 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: 26
  • Position: #260 / 338
  • Number of attempts: 2
Simple text editing with Vim - 13419 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #472 / 3846
  • Number of attempts: 6
Akash Khan
Twitter:

entered into 7 challenges

contributed 0 challenges