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 - 1280 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: #160 / 289
  • Number of attempts: 2
Create json from a .env file - 1661 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 60
  • Position: #189 / 409
  • Number of attempts: 3
YAML to dotenv - 1603 entries

Convert this YAML config file to a .env file.

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

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

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

Change the format of the each line and sort alphabetically.

  • Best score: 18
  • Best player score: 22
  • Position: #150 / 240
  • Number of attempts: 2
Replace csv column if it's not empty - 295 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 / 99
  • Number of attempts: 2
Convert plain text into a markdown table - 102 entries

Convert the table to markdown to make it more usable

  • Best score: 56
  • Best player score: 170
  • Position: #25 / 33
  • Number of attempts: 1
Copy punctuation - 739 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: #115 / 181
  • Number of attempts: 1
Deleting text - 343 entries

Delete everything except some specific numbers.

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

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

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

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

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

Numbers are fun!

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

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

  • Best score: 19
  • Best player score: 24
  • Position: #78 / 198
  • Number of attempts: 2
remove dupes from array - 1375 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: #324 / 340
  • Number of attempts: 2
Remember FizzBuzz? - 812 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 65
  • Position: #147 / 208
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 7664 entries

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

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

entered into 16 challenges

contributed 0 challenges