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

V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1111 / 1857
  • Number of attempts: 1
Search and Replace 0 - 4676 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #426 / 1549
  • Number of attempts: 1
JS notation to Immutable.js notation - 155 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: 35
  • Best player score: 47
  • Position: #50 / 59
  • Number of attempts: 1
lipsum lines - 247 entries

Convert a quoted block of text into strings in a list.

  • Best score: 28
  • Best player score: 31
  • Position: #44 / 89
  • Number of attempts: 2
Angular naming conventions - 283 entries

In angular, a directive name follows the camelCase convention. When the directive is used in an HTML template, the words are instead separated by a dash. Go from to the other the fastest!

  • Best score: 18
  • Best player score: 22
  • Position: #75 / 110
  • Number of attempts: 1
Fix the XML - 958 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 24
  • Position: #130 / 279
  • Number of attempts: 1
Condensed Cases - 758 entries

Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.

  • Best score: 12
  • Best player score: 15
  • Position: #159 / 231
  • Number of attempts: 1
-a-b-c- - 3118 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 16
  • Position: #792 / 1112
  • Number of attempts: 1
Count both ways - 962 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Position: #236 / 342
  • Number of attempts: 1
Don't know what this is - 1951 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 14
  • Position: #335 / 572
  • Number of attempts: 1
Letter case trickery - 1553 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 11
  • Position: #270 / 500
  • Number of attempts: 1
replacing each line of a block selection - 2800 entries

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

  • Best score: 18
  • Best player score: 23
  • Position: #454 / 735
  • Number of attempts: 1
Kostas
Twitter:

阪神タイガース・Baltimore Ravens

entered into 12 challenges

contributed 0 challenges