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 - 1155 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 / 348
  • Number of attempts: 4
Insert column data on Confluence-style table - 436 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: #62 / 101
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 491 entries

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

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

Align the columns of a markdown table

  • Best score: 51
  • Best player score: 101
  • Position: #29 / 91
  • Number of attempts: 6
Filter number combinations that don't add to 11 - 377 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: #66 / 111
  • Number of attempts: 6
Tabbed Table to Python Array - 644 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: #34 / 167
  • Number of attempts: 16
HS exam question - 1514 entries

Convert the data to a python dictionary

  • Best score: 12
  • Best player score: 77
  • Position: #241 / 399
  • Number of attempts: 3
Reformat symbols in list - 1476 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #152 / 326
  • Number of attempts: 2
Fizzbuzz - 511 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 69
  • Position: #56 / 157
  • Number of attempts: 4
Many duplicates - 1281 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #242 / 420
  • Number of attempts: 3
delete swap - 1565 entries

delete all swap

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

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 91
  • Position: #43 / 68
  • Number of attempts: 2
hello-world-vimgolf - 2389 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #283 / 678
  • Number of attempts: 1
Plotting some variables in python - 1592 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: #283 / 339
  • Number of attempts: 2
simple replacements - 1669 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 27
  • Position: #305 / 373
  • Number of attempts: 3
Inverting Lines - 1843 entries

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

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

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 32
  • Position: #223 / 279
  • Number of attempts: 2
Count to 100 in word form - 107 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: #26 / 26
  • Number of attempts: 1
Put a cross in the square - 204 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 22
  • Position: #33 / 85
  • Number of attempts: 4
swap number pairs - 2013 entries

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

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

entered into 20 challenges

contributed 0 challenges