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 - 932 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: #198 / 215
  • Number of attempts: 1
Create json from a .env file - 1518 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 40
  • Position: #35 / 353
  • Number of attempts: 10
Reordering properties - 1136 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: #138 / 269
  • Number of attempts: 3
Sort and Tag - 676 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: #71 / 140
  • Number of attempts: 2
YAML to dotenv - 1459 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 23
  • Position: #141 / 298
  • Number of attempts: 5
Vim's not included features - 250 entries

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

  • Best score: 23
  • Best player score: 39
  • Position: #59 / 67
  • Number of attempts: 4
comments galore - 1074 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 15
  • Position: #405 / 430
  • Number of attempts: 2
Mess in revision history - 1210 entries

Help Joe clean up what Steve has cobbled.

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

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2876 / 3703
  • Number of attempts: 1
Change the content of a string - 1750 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 29
  • Position: #568 / 639
  • Number of attempts: 1
Simple text editing with Vim - 13419 entries

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

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

entered into 11 challenges

contributed 0 challenges