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

π - 193 entries

1200 π chars

  • Best score: 16
  • Best player score: 1214
  • Position: #44 / 52
  • Number of attempts: 7
Create json from a .env file - 1339 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 57
  • Position: #138 / 313
  • Number of attempts: 2
Reordering properties - 1067 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: 45
  • Position: #55 / 245
  • Number of attempts: 6
YAML to dotenv - 1256 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 16
  • Position: #13 / 267
  • Number of attempts: 4
Swap columns and transform to CSV format - 387 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 22
  • Position: #106 / 144
  • Number of attempts: 2
Rearrange array to single level - 1649 entries

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

  • Best score: 14
  • Best player score: 28
  • Position: #158 / 272
  • Number of attempts: 7
Rearrange array to one line - 774 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 16
  • Position: #57 / 183
  • Number of attempts: 3
months to html list items - 1110 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 27
  • Position: #181 / 301
  • Number of attempts: 8
Simple, Practical, and Common - 33868 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: #2411 / 7475
  • Number of attempts: 8
Com(m)a Trouble - 3944 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 13
  • Position: #363 / 894
  • Number of attempts: 9
Just the middle - 11541 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3226 / 4230
  • Number of attempts: 4
I forgot quotes - 16093 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1400 / 4202
  • Number of attempts: 8
Simple text editing with Vim - 13274 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #2054 / 3811
  • Number of attempts: 5
JohanNorberg
Github:

entered into 13 challenges

contributed 0 challenges