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

A simple everyday task.

  • Best score: 39
  • Best player score: 46
  • Position: #46 / 172
  • Number of attempts: 4
Reordering properties - 825 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: 52
  • Position: #52 / 195
  • Number of attempts: 8
Changing date formats - 457 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 61
  • Position: #42 / 140
  • Number of attempts: 5
YAML to dotenv - 963 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 17
  • Position: #50 / 211
  • Number of attempts: 7
The Fibonacci Spacer - 135 entries

Split the words, remove punctuation and add spaces before each line following the Fibonacci sequence (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89)

  • Best score: 25
  • Best player score: 58
  • Position: #29 / 39
  • Number of attempts: 4
Reorganize Pokémon - 625 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 18
  • Position: #26 / 170
  • Number of attempts: 5
Copy punctuation - 599 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 33
  • Position: #63 / 149
  • Number of attempts: 5
lamb had a little Mary - 637 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 34
  • Position: #84 / 174
  • Number of attempts: 5
Change the content of a string - 1654 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #242 / 610
  • Number of attempts: 3
Simple text editing with Vim - 13123 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2057 / 3774
  • Number of attempts: 2
daviddcox
Github:

entered into 10 challenges

contributed 0 challenges