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 - 276 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: 25
  • Best player score: 25
  • Position: #8 / 66
  • Number of attempts: 7
Create json from a .env file - 1012 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 45
  • Position: #59 / 235
  • Number of attempts: 5
Reordering properties - 894 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: #56 / 210
  • Number of attempts: 8
Changing date formats - 509 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 61
  • Position: #45 / 151
  • Number of attempts: 5
YAML to dotenv - 1079 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 17
  • Position: #56 / 237
  • Number of attempts: 7
The Fibonacci Spacer - 148 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: #30 / 41
  • Number of attempts: 4
Reorganize Pokémon - 651 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 18
  • Position: #26 / 178
  • Number of attempts: 5
Copy punctuation - 606 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 / 152
  • Number of attempts: 5
lamb had a little Mary - 638 entries

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

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

This docstring is a complete lie. Fix it.

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

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

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

entered into 11 challenges

contributed 0 challenges