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 - 32758 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 / 7239
  • Number of attempts: 6
Swap values - 4401 entries

Well, swap the values...

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1159 / 3768
  • Number of attempts: 5
Just the middle - 11080 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2375 / 4091
  • Number of attempts: 1
Append semicolon after expressions - 930 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #108 / 377
  • Number of attempts: 3
remove dupes from array - 1260 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: #247 / 321
  • Number of attempts: 2
Simple text editing with Vim - 11396 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 / 3349
  • Number of attempts: 6
Akash Khan
Twitter:

entered into 7 challenges

contributed 0 challenges