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

From brakets to parens - 1134 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 24
  • Best player score: 65
  • Position: #230 / 249
  • Number of attempts: 1
Create json from a .env file - 1585 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 40
  • Position: #37 / 376
  • Number of attempts: 10
Reordering properties - 1220 entries

Arrange the CSS lines for the #topbar selector based on their complete line length, from shortest to longest.

  • Best score: 24
  • Best player score: 79
  • Position: #147 / 279
  • Number of attempts: 3
Sort and Tag - 685 entries

The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.

  • Best score: 36
  • Best player score: 86
  • Position: #73 / 145
  • Number of attempts: 2
YAML to dotenv - 1542 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 23
  • Position: #150 / 316
  • Number of attempts: 5
Vim's not included features - 256 entries

Filter not included (-) features in a hypothetical installation of vim.

  • Best score: 23
  • Best player score: 39
  • Position: #60 / 68
  • Number of attempts: 4
comments galore - 1079 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 15
  • Position: #406 / 431
  • Number of attempts: 2
Mess in revision history - 1212 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 37
  • Position: #224 / 255
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10743 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2879 / 3710
  • Number of attempts: 1
Change the content of a string - 1761 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 29
  • Position: #570 / 645
  • Number of attempts: 1
Simple text editing with Vim - 13468 entries

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

  • Best score: 13
  • Best player score: 19
  • Position: #2855 / 3865
  • Number of attempts: 3
Adrian Lym
Github:

entered into 11 challenges

contributed 0 challenges