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

Plotting some variables in python - 564 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: 34
  • Position: #2 / 113
  • Number of attempts: 6
Transpose a python matrix - 323 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 23
  • Position: #5 / 63
  • Number of attempts: 11
Create a diamond comment - 133 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 28
  • Position: #8 / 36
  • Number of attempts: 10
Lowercase first characters - 185 entries

This is the (abridged) input for Day 3 in Advent of Code 2019. The output is a format more suitable for Prolog programming: the two lines of input become two lists of pairs, joined together in a wires functor.

  • Best score: 33
  • Best player score: 33
  • Position: #5 / 70
  • Number of attempts: 12
Increment number for every 10 lines - 118 entries

The file consists of 2 columns (code and percentage). We need to add 2 more columns with increasing number for 4th column (Xcols) and increment 3rd column (Ycols) only for every 10 lines with reset of 4th column

  • Best score: 25
  • Best player score: 45
  • Position: #23 / 36
  • Number of attempts: 8
simple replacements - 660 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #24 / 155
  • Number of attempts: 11
Inverting Lines - 957 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #86 / 263
  • Number of attempts: 7
Generate a very basic Python constructor - 172 entries

I actually needed to do this myself, so I look forward to learning how.

  • Best score: 38
  • Best player score: 38
  • Position: #12 / 47
  • Number of attempts: 17
Python dataclasses - 407 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #27 / 116
  • Number of attempts: 8
Count to 100 in word form - 45 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: 55
  • Best player score: 78
  • Position: #8 / 13
  • Number of attempts: 5
RUST match with enum for Coin - 135 entries

RUST match with enum for Coin rusty practice on vimgolf

  • Best score: 84
  • Best player score: 105
  • Position: #20 / 36
  • Number of attempts: 5
Making 3 line function a one liner. - 78 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #40 / 60
  • Number of attempts: 1
Modernise code - 630 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 41
  • Position: #70 / 146
  • Number of attempts: 1
sap
Twitter:

entered into 13 challenges

contributed 0 challenges