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 - 932 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: #143 / 215
  • Number of attempts: 2
π - 261 entries

1200 π chars

  • Best score: 16
  • Best player score: 21
  • Position: #35 / 65
  • Number of attempts: 3
Create json from a .env file - 1518 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 63
  • Position: #199 / 353
  • Number of attempts: 1
Reordering properties - 1136 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: #102 / 269
  • Number of attempts: 1
Reorganize Pokémon - 772 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 22
  • Position: #141 / 214
  • Number of attempts: 2
Remove adjacent duplicates - 671 entries

Try to find a way to remove adjacent duplicate letters.

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

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

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

entered into 7 challenges

contributed 0 challenges