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 fix point of cos - 1303 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: 14
  • Position: #22 / 381
  • Number of attempts: 4
Insert column data on Confluence-style table - 444 entries

Add ip addresses into new "IP" column based on the last digits from the "Server" column

  • Best score: 33
  • Best player score: 50
  • Position: #64 / 106
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 532 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #110 / 294
  • Number of attempts: 1
Easier Align - 381 entries

Align the columns of a markdown table

  • Best score: 51
  • Best player score: 101
  • Position: #29 / 93
  • Number of attempts: 6
Filter number combinations that don't add to 11 - 398 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 28
  • Position: #68 / 113
  • Number of attempts: 6
Tabbed Table to Python Array - 706 entries

Not payed by the hour? So make it fast ;-) The table contains the relative occurencies of bigrams (two consecutive letters) in 1/100,000 in the german language, copy-pasted from http://www.mathe.tu-freiberg.de/~hebisch/cafe/kryptographie/bigramme.html

  • Best score: 50
  • Best player score: 53
  • Position: #37 / 174
  • Number of attempts: 16
HS exam question - 1539 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 77
  • Position: #245 / 410
  • Number of attempts: 3
Reformat symbols in list - 1570 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 27
  • Position: #156 / 337
  • Number of attempts: 2
Fizzbuzz - 556 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 69
  • Position: #57 / 165
  • Number of attempts: 4
Many duplicates - 1420 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #248 / 458
  • Number of attempts: 3
delete swap - 1754 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #265 / 542
  • Number of attempts: 6
Java to JavaScript - 267 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 91
  • Position: #44 / 72
  • Number of attempts: 2
hello-world-vimgolf - 2481 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #283 / 702
  • Number of attempts: 1
Plotting some variables in python - 1660 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 63
  • Position: #289 / 347
  • Number of attempts: 2
simple replacements - 1749 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 27
  • Position: #311 / 379
  • Number of attempts: 3
Inverting Lines - 1879 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 10
  • Position: #197 / 507
  • Number of attempts: 5
Python dataclasses - 1127 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 32
  • Position: #225 / 283
  • Number of attempts: 2
Count to 100 in word form - 138 entries

Write all the numbers from 1 to 100, using their word forms rather than the digit form. Most of the parts you will need are included in the input file. Use hyphens when appropriate.

  • Best score: 53
  • Best player score: 245
  • Position: #29 / 29
  • Number of attempts: 1
Put a cross in the square - 221 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 22
  • Position: #36 / 88
  • Number of attempts: 4
swap number pairs - 2064 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 16
  • Position: #55 / 375
  • Number of attempts: 17
李建宏
Twitter2:

entered into 20 challenges

contributed 0 challenges