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 - 931 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: 47
  • Position: #172 / 214
  • Number of attempts: 2
Create json from a .env file - 1518 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 128
  • Position: #331 / 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: 145
  • Position: #251 / 269
  • Number of attempts: 1
Changing date formats - 687 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 336
  • Position: #184 / 188
  • Number of attempts: 1
YAML to dotenv - 1459 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 31
  • Position: #211 / 298
  • Number of attempts: 9
Swap columns and transform to CSV format - 426 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 18
  • Position: #84 / 154
  • Number of attempts: 6
Just the middle - 11555 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 11
  • Position: #4005 / 4234
  • Number of attempts: 2
pratik Sharma
Github:

entered into 7 challenges

contributed 0 challenges