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 - 699 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: #109 / 160
  • Number of attempts: 2
π - 211 entries

1200 π chars

  • Best score: 16
  • Best player score: 21
  • Position: #30 / 55
  • Number of attempts: 3
Create json from a .env file - 1368 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 63
  • Position: #186 / 323
  • Number of attempts: 1
Reordering properties - 1079 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: #94 / 250
  • Number of attempts: 1
Reorganize Pokémon - 699 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 22
  • Position: #133 / 193
  • Number of attempts: 2
Remove adjacent duplicates - 646 entries

Try to find a way to remove adjacent duplicate letters.

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

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

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

entered into 7 challenges

contributed 0 challenges