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

Sort and Tag - 228 entries

The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.

  • Best score: 36
  • Best player score: 113
  • Position: #45 / 57
  • Number of attempts: 4
Changing date formats - 258 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 147
  • Position: #79 / 87
  • Number of attempts: 1
YAML to dotenv - 508 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 23
  • Position: #56 / 123
  • Number of attempts: 7
Change to ascending order - 252 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 114
  • Position: #51 / 67
  • Number of attempts: 4
Swap columns and transform to CSV format - 217 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #51 / 79
  • Number of attempts: 9
Copy punctuation - 521 entries

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

  • Best score: 19
  • Best player score: 30
  • Position: #37 / 133
  • Number of attempts: 9
HS exam question - 1589 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 133
  • Position: #385 / 417
  • Number of attempts: 1
delete swap - 1788 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #357 / 557
  • Number of attempts: 9
Generate a very basic Python constructor (fixed) - 1253 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 52
  • Position: #195 / 271
  • Number of attempts: 5
Fix the shell script! - 2596 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 62
  • Position: #542 / 603
  • Number of attempts: 1
Copy three lines - 2875 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 26
  • Position: #582 / 641
  • Number of attempts: 5
Array of characters - 175 entries

We all copy paste things off the internet, but the syntax doesn't look right. Fix it as fast as possible.

  • Best score: 33
  • Best player score: 57
  • Position: #46 / 47
  • Number of attempts: 3
A grid of punctuation - 137 entries

Create a checkerboard of = and - in an 80×24 grid!

  • Best score: 16
  • Best player score: 22
  • Position: #56 / 61
  • Number of attempts: 2
Where should I put the Newline? - 881 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #413 / 437
  • Number of attempts: 3
Line Zipper - 477 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 15
  • Position: #95 / 216
  • Number of attempts: 3
Whitespace, empty lines and tabs - 3742 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 20
  • Position: #227 / 803
  • Number of attempts: 8
Flodder-challenge - 1326 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 39
  • Position: #246 / 346
  • Number of attempts: 6
Simple text editing with Vim - 12989 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #2045 / 3737
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 7154 entries

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

  • Best score: 28
  • Best player score: 50
  • Position: #1412 / 1754
  • Number of attempts: 2
e.cousinet
Github:

entered into 19 challenges

contributed 0 challenges