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 - 1012 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 60
  • Position: #122 / 235
  • Number of attempts: 8
YAML to dotenv - 1079 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 17
  • Position: #62 / 237
  • Number of attempts: 5
Remove adjacent duplicates - 595 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 35
  • Position: #101 / 155
  • Number of attempts: 6
Rearrange array to single level - 1570 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: #137 / 262
  • Number of attempts: 4
Quicksort - 2049 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: #353 / 454
  • Number of attempts: 1
Paste a column after a column - 2620 entries

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

  • Best score: 14
  • Best player score: 17
  • Position: #241 / 568
  • Number of attempts: 4
Python dataclasses - 1220 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 32
  • Position: #243 / 303
  • Number of attempts: 1
Swap values - 4651 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #793 / 1278
  • Number of attempts: 1
One number per line - 18811 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2594 / 3883
  • Number of attempts: 3
From argument to object - 1534 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: #276 / 465
  • Number of attempts: 4
attr_aligner - 3525 entries

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

  • Best score: 19
  • Best player score: 22
  • Position: #227 / 706
  • Number of attempts: 1
Prefixes and suffixes - 637 entries

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

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

entered into 12 challenges

contributed 0 challenges