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 - 97 entries

There is one special character per line

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

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

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

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 34
  • Position: #115 / 128
  • Number of attempts: 1
Truth Table to ModelSim - 44 entries

Convert this truth table to simulator instructions!

  • Best score: 64
  • Best player score: 222
  • Position: #15 / 15
  • Number of attempts: 1
Quicksort - 1735 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: #315 / 380
  • Number of attempts: 1
Populate 3D bone names list - 521 entries

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

  • Best score: 21
  • Best player score: 50
  • Position: #135 / 140
  • Number of attempts: 1
Find fix point of cos - 1199 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: #330 / 363
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 505 entries

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

  • Best score: 17
  • Best player score: 22
  • Position: #280 / 285
  • Number of attempts: 1
Substraction (bis) - 582 entries

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

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

Quick and easy

  • Best score: 7
  • Best player score: 12
  • Position: #396 / 436
  • Number of attempts: 1
delete swap - 1639 entries

delete all swap

  • Best score: 5
  • Best player score: 14
  • Position: #471 / 512
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 1223 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: #228 / 258
  • Number of attempts: 1
Visual block training - 1047 entries

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

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

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

  • Best score: 10
  • Best player score: 24
  • Position: #517 / 548
  • Number of attempts: 1
Extract argument from function - 2337 entries

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

  • Best score: 13
  • Best player score: 19
  • Position: #687 / 750
  • 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 - 184 entries

Change this piece of HAML code back into erb

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

Start with a, get up to z.

  • Best score: 19
  • Best player score: 61
  • Position: #201 / 205
  • Number of attempts: 1
Change the content of a string - 1502 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 29
  • Position: #503 / 567
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3492 entries

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

  • Best score: 16
  • Best player score: 43
  • Position: #716 / 756
  • Number of attempts: 1
Simple text editing with Vim - 12467 entries

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

  • Best score: 13
  • Best player score: 29
  • Position: #3307 / 3621
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6736 entries

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

  • Best score: 31
  • Best player score: 66
  • Position: #1561 / 1651
  • Number of attempts: 1
dennis
Github:

entered into 23 challenges

contributed 0 challenges