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 - 4695 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #73 / 1556
  • Number of attempts: 2
Cartesian product - 218 entries

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

  • Best score: 24
  • Best player score: 30
  • Position: #28 / 92
  • Number of attempts: 3
Reformat long lines - 329 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: #66 / 129
  • Number of attempts: 2
Generate English Alphabets - 448 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 25
  • Position: #87 / 196
  • Number of attempts: 2
The holy-grail may help - 324 entries

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

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

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 22
  • Position: #93 / 214
  • Number of attempts: 3
Shebangs for all - 1787 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: #81 / 470
  • Number of attempts: 3
Reverse and count - 420 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: #23 / 161
  • Number of attempts: 3
Letters are numbers - 138 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: #17 / 69
  • Number of attempts: 1
Reverse Simple Deletion - 787 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #155 / 437
  • Number of attempts: 1
Almost encrypted - 185 entries

Convert the first paragraph to be even less readable.

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

Output FizzBuzz to 100. Start with nothing.

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

entered into 12 challenges

contributed 0 challenges