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

Find the devices that have no revoked time, and extract out the duration left on their leases. - 55 entries

Extract non-revoked devices and the duration of their leases.

  • Best score: 50
  • Best player score: 70
  • Position: #10 / 21
  • Number of attempts: 6
From brakets to parens - 933 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: 26
  • Position: #59 / 216
  • Number of attempts: 5
π - 261 entries

1200 π chars

  • Best score: 16
  • Best player score: 1216
  • Position: #59 / 65
  • Number of attempts: 1
Create json from a .env file - 1523 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 44
  • Position: #80 / 356
  • Number of attempts: 7
Reordering properties - 1162 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: 48
  • Position: #69 / 272
  • Number of attempts: 8
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: 84
  • Position: #68 / 140
  • Number of attempts: 3
YAML to dotenv - 1476 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 25
  • Position: #169 / 301
  • Number of attempts: 5
Replace markdown sections with numbering - 303 entries

Replace each section and subsection with their respective numbers

  • Best score: 29
  • Best player score: 49
  • Position: #26 / 80
  • Number of attempts: 5
Convert plain text into a markdown table - 87 entries

Convert the table to markdown to make it more usable

  • Best score: 56
  • Best player score: 132
  • Position: #21 / 28
  • Number of attempts: 3
CaN yOuR ViM dO ThAt? #2 - 93 entries

Tsoding's famous "Can your Vim do that?" https://www.youtube.com/watch?v=F4xc4jQO7ck&t=1429s

  • Best score: 49
  • Best player score: 69
  • Position: #12 / 22
  • Number of attempts: 9
Rearrange array to single level - 1737 entries

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

  • Best score: 14
  • Best player score: 19
  • Position: #76 / 290
  • Number of attempts: 17
MartinDanesh
Github:

entered into 11 challenges

contributed 0 challenges