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

Find anomalies - 125 entries

There is one special character per line

  • Best score: 30
  • Best player score: 59
  • Position: #27 / 34
  • Number of attempts: 2
Coordinate extraction - 51 entries

Get the coordinates of all "M"s from the Vim logo

  • Best score: 43
  • Best player score: 106
  • Position: #15 / 15
  • Number of attempts: 1
New teacher - 845 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 34
  • Position: #158 / 177
  • Number of attempts: 1
Truth Table to ModelSim - 58 entries

Convert this truth table to simulator instructions!

  • Best score: 64
  • Best player score: 222
  • Position: #17 / 17
  • Number of attempts: 1
Quicksort - 1890 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 33
  • Position: #344 / 415
  • Number of attempts: 1
Populate 3D bone names list - 610 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 50
  • Position: #151 / 157
  • Number of attempts: 1
Find fix point of cos - 1379 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 48
  • Position: #366 / 402
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 546 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 22
  • Position: #299 / 304
  • Number of attempts: 1
Substraction (bis) - 584 entries

Solve the equations (adapted from the original @Caek_'s challenge).

  • Best score: 21
  • Best player score: 41
  • Position: #88 / 111
  • Number of attempts: 1
Many duplicates - 1443 entries

Quick and easy

  • Best score: 7
  • Best player score: 12
  • Position: #420 / 467
  • Number of attempts: 1
delete swap - 1773 entries

delete all swap

  • Best score: 5
  • Best player score: 14
  • Position: #505 / 549
  • Number of attempts: 1
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: 64
  • Position: #237 / 271
  • Number of attempts: 1
Visual block training - 1069 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 166
  • Position: #199 / 203
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 1656 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 24
  • Position: #524 / 555
  • Number of attempts: 1
Extract argument from function - 2355 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 19
  • Position: #688 / 752
  • Number of attempts: 2
Two become one - 713 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 40
  • Position: #185 / 208
  • Number of attempts: 1
Mess in revision history - 1183 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 65
  • Position: #247 / 249
  • Number of attempts: 1
Dehamlizing - 185 entries

Change this piece of HAML code back into erb

  • Best score: 32
  • Best player score: 56
  • Position: #65 / 72
  • Number of attempts: 3
Generate English Alphabets - 487 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 61
  • Position: #202 / 206
  • Number of attempts: 1
Change the content of a string - 1556 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 29
  • Position: #515 / 581
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3591 entries

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

  • Best score: 16
  • Best player score: 43
  • Position: #734 / 776
  • Number of attempts: 1
Simple text editing with Vim - 12712 entries

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

  • Best score: 13
  • Best player score: 29
  • Position: #3352 / 3671
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6898 entries

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

  • Best score: 28
  • Best player score: 66
  • Position: #1591 / 1689
  • Number of attempts: 1
dennis
Github:

entered into 23 challenges

contributed 0 challenges