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 - 611 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: #112 / 139
  • Number of attempts: 2
Create json from a .env file - 1303 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 128
  • Position: #283 / 303
  • Number of attempts: 1
Reordering properties - 1042 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: #223 / 240
  • Number of attempts: 1
Changing date formats - 615 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 336
  • Position: #167 / 170
  • Number of attempts: 1
YAML to dotenv - 1226 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 31
  • Position: #186 / 262
  • Number of attempts: 9
Swap columns and transform to CSV format - 386 entries

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

  • Best score: 16
  • Best player score: 18
  • Position: #79 / 143
  • Number of attempts: 6
Just the middle - 11541 entries

Delete the instructions at the top and bottom.

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

entered into 7 challenges

contributed 0 challenges