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

Search and Replace 0 - 5170 entries

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

  • Best score: 7
  • Best player score: 12
  • Position: #74 / 1680
  • Number of attempts: 2
Cartesian product - 277 entries

{1,2,3,4,5} X {1,2,3,4,5}

  • Best score: 24
  • Best player score: 30
  • Position: #31 / 102
  • Number of attempts: 3
Reformat long lines - 390 entries

Rearrange this ruby method call to put each parameter on its own line. Could become a useful macro.

  • Best score: 15
  • Best player score: 18
  • Position: #73 / 142
  • Number of attempts: 2
Generate English Alphabets - 540 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 25
  • Position: #94 / 216
  • Number of attempts: 2
The holy-grail may help - 408 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 16
  • Position: #45 / 222
  • Number of attempts: 2
Assignment Alignment - 909 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 22
  • Position: #98 / 226
  • Number of attempts: 3
Shebangs for all - 2105 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 12
  • Position: #95 / 534
  • Number of attempts: 3
Reverse and count - 502 entries

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

  • Best score: 18
  • Best player score: 22
  • Position: #34 / 182
  • Number of attempts: 3
Letters are numbers - 179 entries

Letters and numbers are interchangeable. A lot of programming languages give you simple ways to convert individual letters to hex, binary and decimal but does Vim?

  • Best score: 20
  • Best player score: 26
  • Position: #21 / 78
  • Number of attempts: 1
Reverse Simple Deletion - 875 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #164 / 467
  • Number of attempts: 1
Almost encrypted - 212 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #37 / 150
  • Number of attempts: 1
Remember FizzBuzz? - 837 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 55
  • Position: #69 / 214
  • Number of attempts: 1
BenoƮt Ryder
Twitter:

entered into 12 challenges

contributed 0 challenges