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

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: 132
  • Position: #250 / 279
  • Number of attempts: 1
YAML to dotenv - 1542 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 50
  • Position: #282 / 316
  • Number of attempts: 5
Generate an entry for each month - 372 entries

The input file contains a URI with a month in it. Generate the URIs for all the other months up to a couple of years

  • Best score: 27
  • Best player score: 331
  • Position: #91 / 92
  • Number of attempts: 1
Replace markdown sections with numbering - 309 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 123
  • Position: #78 / 85
  • Number of attempts: 1
Remove adjacent duplicates - 692 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 62
  • Position: #163 / 173
  • Number of attempts: 2
Paste a column after a column - 2662 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 83
  • Position: #555 / 576
  • Number of attempts: 1
Python dataclasses - 1248 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 56
  • Position: #297 / 311
  • Number of attempts: 1
Hello ${world} - 344 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 68
  • Position: #94 / 102
  • 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: 34
  • Position: #619 / 645
  • Number of attempts: 5
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: 27
  • Position: #3411 / 3865
  • Number of attempts: 2
Mustafa
Github:

entered into 10 challenges

contributed 0 challenges