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 - 661 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: #105 / 153
  • Number of attempts: 2
π - 199 entries

1200 π chars

  • Best score: 16
  • Best player score: 21
  • Position: #29 / 53
  • Number of attempts: 3
Create json from a .env file - 1349 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 63
  • Position: #182 / 318
  • Number of attempts: 1
Reordering properties - 1068 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: #93 / 246
  • Number of attempts: 1
Reorganize Pokémon - 696 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 22
  • Position: #132 / 191
  • 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