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 - 858 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: #161 / 200
  • Number of attempts: 2
Create json from a .env file - 1485 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 128
  • Position: #323 / 345
  • Number of attempts: 1
Reordering properties - 1120 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: #247 / 264
  • Number of attempts: 1
Changing date formats - 684 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 336
  • Position: #182 / 186
  • Number of attempts: 1
YAML to dotenv - 1431 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 31
  • Position: #208 / 295
  • Number of attempts: 9
Swap columns and transform to CSV format - 411 entries

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

  • Best score: 16
  • Best player score: 18
  • Position: #82 / 152
  • Number of attempts: 6
Just the middle - 11551 entries

Delete the instructions at the top and bottom.

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

entered into 7 challenges

contributed 0 challenges