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: 38
  • Position: #121 / 215
  • Number of attempts: 1
Create json from a .env file - 1518 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 60
  • Position: #170 / 353
  • Number of attempts: 3
YAML to dotenv - 1459 entries

Convert this YAML config file to a .env file.

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

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

  • Best score: 13
  • Best player score: 13
  • Position: #56 / 108
  • 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: #139 / 214
  • Number of attempts: 2
Replace csv column if it's not empty - 255 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 / 87
  • Number of attempts: 2
Convert plain text into a markdown table - 87 entries

Convert the table to markdown to make it more usable

  • Best score: 56
  • Best player score: 170
  • Position: #22 / 28
  • Number of attempts: 1
Copy punctuation - 684 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: #106 / 167
  • Number of attempts: 1
Deleting text - 329 entries

Delete everything except some specific numbers.

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

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

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

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

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

Numbers are fun!

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

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

  • Best score: 19
  • Best player score: 24
  • Position: #76 / 195
  • Number of attempts: 2
remove dupes from array - 1361 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 / 338
  • Number of attempts: 2
Remember FizzBuzz? - 787 entries

Output FizzBuzz to 100. Start with nothing.

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

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

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

entered into 16 challenges

contributed 0 challenges