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

Create json from a .env file - 1648 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 60
  • Position: #188 / 403
  • Number of attempts: 8
YAML to dotenv - 1584 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 17
  • Position: #82 / 331
  • Number of attempts: 5
Remove adjacent duplicates - 718 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 35
  • Position: #121 / 179
  • Number of attempts: 6
Rearrange array to single level - 1811 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 26
  • Position: #155 / 306
  • Number of attempts: 4
Quicksort - 2109 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 30
  • Position: #363 / 471
  • Number of attempts: 1
Paste a column after a column - 2666 entries

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

  • Best score: 14
  • Best player score: 17
  • Position: #247 / 577
  • Number of attempts: 4
Python dataclasses - 1248 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 32
  • Position: #249 / 311
  • Number of attempts: 1
Swap values - 4703 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #798 / 1291
  • Number of attempts: 1
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2602 / 3898
  • Number of attempts: 3
From argument to object - 1552 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 18
  • Position: #278 / 469
  • Number of attempts: 4
attr_aligner - 3565 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 22
  • Position: #229 / 709
  • Number of attempts: 1
Prefixes and suffixes - 664 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 22
  • Position: #49 / 206
  • Number of attempts: 2
saito ren
Github:

entered into 12 challenges

contributed 0 challenges