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 - 737 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: #104 / 156
  • Number of attempts: 4
Changing date formats - 751 entries

Change the date format to Y/M/D.

  • Best score: 36
  • Best player score: 147
  • Position: #191 / 211
  • Number of attempts: 1
YAML to dotenv - 1637 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 23
  • Position: #155 / 342
  • Number of attempts: 7
Change to ascending order - 549 entries

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

  • Best score: 17
  • Best player score: 114
  • Position: #110 / 134
  • Number of attempts: 4
Swap columns and transform to CSV format - 494 entries

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

  • Best score: 16
  • Best player score: 19
  • Position: #103 / 177
  • Number of attempts: 9
Copy punctuation - 747 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: #49 / 183
  • Number of attempts: 9
HS exam question - 1613 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 133
  • Position: #390 / 422
  • Number of attempts: 1
delete swap - 1912 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #357 / 580
  • Number of attempts: 9
Generate a very basic Python constructor (fixed) - 1297 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: #201 / 278
  • Number of attempts: 5
Fix the shell script! - 2681 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 62
  • Position: #563 / 624
  • Number of attempts: 1
Copy three lines - 2924 entries

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

  • Best score: 13
  • Best player score: 26
  • Position: #587 / 647
  • Number of attempts: 5
Array of characters - 198 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: #49 / 50
  • Number of attempts: 3
A grid of punctuation - 156 entries

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

  • Best score: 16
  • Best player score: 22
  • Position: #60 / 65
  • Number of attempts: 2
Where should I put the Newline? - 912 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #417 / 451
  • Number of attempts: 3
Line Zipper - 480 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 15
  • Position: #96 / 217
  • Number of attempts: 3
Whitespace, empty lines and tabs - 4054 entries

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

  • Best score: 16
  • Best player score: 20
  • Position: #246 / 866
  • Number of attempts: 8
Flodder-challenge - 1501 entries

Replace the text the most efficient and win!

  • Best score: 27
  • Best player score: 39
  • Position: #270 / 379
  • Number of attempts: 6
Simple text editing with Vim - 13645 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2084 / 3907
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 7694 entries

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

  • Best score: 7
  • Best player score: 50
  • Position: #1497 / 1893
  • Number of attempts: 2
e.cousinet
Github:

entered into 19 challenges

contributed 0 challenges