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 - 1290 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: 41
  • Position: #192 / 290
  • Number of attempts: 2
π - 327 entries

1200 π chars

  • Best score: 16
  • Best player score: 21
  • Position: #42 / 80
  • Number of attempts: 3
Create json from a .env file - 1682 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 63
  • Position: #222 / 411
  • Number of attempts: 1
Reordering properties - 1368 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: 64
  • Position: #117 / 296
  • Number of attempts: 1
Reorganize Pokémon - 875 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 22
  • Position: #152 / 240
  • Number of attempts: 2
Remove adjacent duplicates - 727 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 22
  • Position: #76 / 182
  • Number of attempts: 3
Put a newline after every 10 lines in vim - 1688 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 11
  • Position: #211 / 567
  • Number of attempts: 1
Martijn
Github:

entered into 7 challenges

contributed 0 challenges