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 - 1134 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: #164 / 249
  • Number of attempts: 2
π - 298 entries

1200 π chars

  • Best score: 16
  • Best player score: 21
  • Position: #39 / 71
  • Number of attempts: 3
Create json from a .env file - 1585 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 63
  • Position: #207 / 376
  • Number of attempts: 1
Reordering properties - 1221 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: #106 / 280
  • Number of attempts: 1
Reorganize Pokémon - 829 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 22
  • Position: #146 / 226
  • Number of attempts: 2
Remove adjacent duplicates - 692 entries

Try to find a way to remove adjacent duplicate letters.

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

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

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

entered into 7 challenges

contributed 0 challenges