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

Shuffle and Sort - 172 entries

The values where sorted incorrectly. Get them back to how they are supposed to be

  • Best score: 17
  • Best player score: 29
  • Position: #48 / 59
  • Number of attempts: 2
Cleanining up 80 column concatenated text - 185 entries

1. Put the whole query on one line, remove the concatenation operators 2. Remove the double spaces that appear a few times in the query 3. Use string-interpolated variable statementPid rather than the ugly concatenation

  • Best score: 31
  • Best player score: 55
  • Position: #67 / 74
  • Number of attempts: 2
Whitespace, empty lines and tabs - 2797 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 26
  • Position: #326 / 638
  • Number of attempts: 1
Flodder-challenge - 846 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 34
  • Position: #88 / 260
  • Number of attempts: 3
Simple text editing with Vim - 11431 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #761 / 3357
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 5864 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 52
  • Position: #1251 / 1449
  • Number of attempts: 3
Mateusz Zawisza
Twitter:

DevOps at @getbase

entered into 6 challenges

contributed 0 challenges