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 - 1182 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: 38
  • Position: #147 / 259
  • Number of attempts: 2
Create json from a .env file - 1607 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 60
  • Position: #182 / 390
  • Number of attempts: 3
YAML to dotenv - 1557 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 24
  • Position: #165 / 322
  • Number of attempts: 1
Change class fields from snake case to camel case - 315 entries

Change the class fields in this Scala class from snake case to camel case

  • Best score: 13
  • Best player score: 13
  • Position: #56 / 118
  • Number of attempts: 1
Reorganize Pokémon - 840 entries

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 22
  • Position: #146 / 231
  • Number of attempts: 2
Replace csv column if it's not empty - 276 entries

Replace the credit_score_percentile column with the value 0.0 but leave the empty ones untouched

  • Best score: 15
  • Best player score: 15
  • Position: #30 / 94
  • Number of attempts: 2
Convert plain text into a markdown table - 96 entries

Convert the table to markdown to make it more usable

  • Best score: 56
  • Best player score: 170
  • Position: #24 / 30
  • Number of attempts: 1
Copy punctuation - 727 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 43
  • Position: #110 / 177
  • Number of attempts: 1
Deleting text - 337 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 45
  • Position: #56 / 108
  • Number of attempts: 3
Format a long line - 128 entries

Reformat long lines (gq), textwidth=78, no trailing spaces.

  • Best score: 17
  • Best player score: 31
  • Position: #25 / 36
  • Number of attempts: 2
Wrap the text of an email message to 79 characters - 858 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #335 / 444
  • Number of attempts: 1
The meaning - 580 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #328 / 365
  • Number of attempts: 2
Ugly spreadsheet copy/paste to CSV - 1016 entries

convert an ugly spreadsheet copy/paste into a CSV format.

  • Best score: 19
  • Best player score: 24
  • Position: #76 / 196
  • Number of attempts: 2
remove dupes from array - 1362 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 43
  • Position: #323 / 339
  • Number of attempts: 2
Remember FizzBuzz? - 789 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 65
  • Position: #145 / 205
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 7579 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 7
  • Best player score: 52
  • Position: #1542 / 1871
  • Number of attempts: 2
Henry Coggins
Github:

entered into 16 challenges

contributed 0 challenges