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 - 33930 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: 30
  • Position: #5059 / 7490
  • Number of attempts: 1
Search and Replace 0 - 5045 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #228 / 1644
  • Number of attempts: 5
JS notation to Immutable.js notation - 186 entries

Now Immutable.js made its way into many frontends. This challenge consists of a typical refactoring that many of us are facing now.

  • Best score: 34
  • Best player score: 41
  • Position: #40 / 63
  • Number of attempts: 2
Vice versa - 7981 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1210 / 2147
  • Number of attempts: 2
Lisp Condense - 460 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 17
  • Position: #122 / 158
  • Number of attempts: 3
Words in parens - 13005 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 20
  • Position: #3188 / 3979
  • Number of attempts: 4
Pairs of numbers - 364 entries

Line 1 represents x, line 2 y-data. Bring the corresponding pairs in the form "[x,y]\n"

  • Best score: 26
  • Best player score: 43
  • Position: #96 / 137
  • Number of attempts: 3
The name of the game - 678 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #115 / 363
  • Number of attempts: 4
Append semicolon after expressions - 1065 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #44 / 422
  • Number of attempts: 3
switch variable - 5101 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 17
  • Position: #1612 / 1756
  • Number of attempts: 1
Change the content of a string - 1750 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 25
  • Position: #405 / 639
  • Number of attempts: 2
Simple text editing with Vim - 13427 entries

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

  • Best score: 13
  • Best player score: 26
  • Position: #3308 / 3849
  • Number of attempts: 2
Todd Branchflower
Twitter:

Former Air Force officer and Air Force Academy computer engineering teacher. Now trying to be a programmer at @goconspire.

entered into 12 challenges

contributed 0 challenges