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 - 1306 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: #272 / 295
  • Number of attempts: 1
Create json from a .env file - 1716 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 40
  • Position: #41 / 416
  • Number of attempts: 10
Reordering properties - 1372 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: #160 / 298
  • Number of attempts: 3
Sort and Tag - 737 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: #77 / 156
  • Number of attempts: 2
YAML to dotenv - 1637 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 23
  • Position: #161 / 342
  • Number of attempts: 5
Vim's not included features - 266 entries

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

  • Best score: 23
  • Best player score: 39
  • Position: #62 / 70
  • Number of attempts: 4
comments galore - 1101 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 15
  • Position: #408 / 433
  • Number of attempts: 2
Mess in revision history - 1238 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 37
  • Position: #227 / 260
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10758 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2884 / 3717
  • Number of attempts: 1
Change the content of a string - 1803 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 29
  • Position: #580 / 656
  • Number of attempts: 1
Simple text editing with Vim - 13645 entries

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

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

entered into 11 challenges

contributed 0 challenges