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 - 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: 25
  • Position: #38 / 216
  • Number of attempts: 8
π - 261 entries

1200 π chars

  • Best score: 16
  • Best player score: 17
  • Position: #29 / 65
  • Number of attempts: 6
Create json from a .env file - 1525 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 61
  • Position: #181 / 357
  • Number of attempts: 1
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: 121
  • Position: #232 / 272
  • Number of attempts: 1
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: 102
  • Position: #89 / 140
  • Number of attempts: 1
YAML to dotenv - 1476 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 16
  • Position: #55 / 301
  • Number of attempts: 9
Simple, Practical, and Common - 33930 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #2426 / 7490
  • Number of attempts: 10
Harun Koç
Github:

entered into 7 challenges

contributed 0 challenges