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 - 34033 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: 23
  • Position: #2481 / 7519
  • Number of attempts: 4
V to the i - 4887 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1108 / 1916
  • Number of attempts: 1
Search and Replace 0 - 5167 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #417 / 1677
  • Number of attempts: 3
Vice versa - 8021 entries

Little role switching.

  • Best score: 12
  • Best player score: 14
  • Position: #895 / 2158
  • Number of attempts: 1
Collect List - 4342 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #142 / 1200
  • Number of attempts: 2
Happy TvvO - 443 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 12
  • Position: #103 / 213
  • Number of attempts: 1
Where should I put the Newline? - 912 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #375 / 451
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10758 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #863 / 3717
  • Number of attempts: 2
SFD-ROC: vimvimvim - 1643 entries

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

  • Best score: 8
  • Best player score: 9
  • Position: #226 / 458
  • Number of attempts: 3
Switch function arguments - 2237 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #285 / 687
  • Number of attempts: 2
Solve the Sokoban - 202 entries

A wink for all Vimgolfers that play Nethack too.

  • Best score: 25
  • Best player score: 30
  • Position: #39 / 76
  • Number of attempts: 2
Compile C - 454 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 21
  • Position: #79 / 146
  • Number of attempts: 2
kiou
Twitter:

entered into 12 challenges

contributed 0 challenges