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: 28
  • Position: #4329 / 7489
  • Number of attempts: 5
Python Hello World! Reformatting - 1011 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 45
  • Position: #286 / 387
  • Number of attempts: 1
replacing each line of a block selection - 3026 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 21
  • Position: #342 / 783
  • Number of attempts: 6
switch variable - 5101 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1053 / 1756
  • Number of attempts: 6
The meaning - 577 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #14 / 364
  • Number of attempts: 5
formatted text to markdown - 184 entries

You're converting some posts from an old blog to markdown. The formatted text is far closer to the finished product than the html markup, so it seems like a good place to start. Word wrapping seems to be the main area for optimization.

  • Best score: 70
  • Best player score: 81
  • Position: #53 / 67
  • Number of attempts: 2
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: 29
  • Position: #298 / 338
  • Number of attempts: 2
Case preserving word replacement - 463 entries

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

  • Best score: 19
  • Best player score: 21
  • Position: #105 / 182
  • Number of attempts: 4
imports alignment (python) - 704 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 46
  • Position: #192 / 200
  • Number of attempts: 2
HTML to Haml - 883 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 55
  • Position: #188 / 206
  • Number of attempts: 2
Golf Sinteppadon
Twitter:

Engineer at Twitch

entered into 10 challenges

contributed 0 challenges