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 - 1396 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: #7 / 295
  • Number of attempts: 10
Create a diamond comment - 271 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 28
  • Position: #16 / 66
  • Number of attempts: 9
Lowercase first characters - 421 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: 34
  • Position: #34 / 152
  • Number of attempts: 6
Migrated to Postgres! - 268 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 30
  • Position: #69 / 107
  • Number of attempts: 2
Increment number for every 10 lines - 180 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: 28
  • Position: #19 / 53
  • Number of attempts: 6
simple replacements - 1264 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #90 / 283
  • Number of attempts: 9
Inverting Lines - 1562 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #90 / 423
  • Number of attempts: 3
CSV to MD format - 330 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 40
  • Position: #20 / 77
  • Number of attempts: 6
Generate a very basic Python constructor - 292 entries

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

  • Best score: 38
  • Best player score: 38
  • Position: #13 / 85
  • Number of attempts: 8
Python dataclasses - 796 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #30 / 204
  • Number of attempts: 3
Count to 100 in word form - 54 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: 62
  • Position: #3 / 17
  • Number of attempts: 7
RUST Cargo.toml version to last - 283 entries

RUST Cargo.toml version to last. rusty practice on vimgolf

  • Best score: 16
  • Best player score: 17
  • Position: #40 / 80
  • Number of attempts: 7
Making 3 line function a one liner. - 237 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #42 / 157
  • Number of attempts: 1
Modernise code - 1103 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #37 / 261
  • Number of attempts: 7
Staircase - 83 entries

Going downstairs, while singing the alphabet song. Some vb practice to us all. Would it be much easier to make it go from left to right instead?

  • Best score: 21
  • Best player score: 32
  • Position: #9 / 25
  • Number of attempts: 1
Enumerate Bullets - 253 entries

We will need to refer to the bullet points in our document explicitly later, so we need to assign them some ID's!

  • Best score: 20
  • Best player score: 20
  • Position: #17 / 67
  • Number of attempts: 5
Put a cross in the square - 175 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 20
  • Position: #2 / 76
  • Number of attempts: 5
swap number pairs - 1871 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #32 / 346
  • Number of attempts: 12
HS Final exam vimgolf - 815 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 22
  • Position: #65 / 215
  • Number of attempts: 14
Extend shell script - 92 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 39
  • Position: #13 / 39
  • Number of attempts: 3
Easy modification of ssh config - 305 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 24
  • Position: #18 / 95
  • Number of attempts: 6
悟史
Twitter:

entered into 21 challenges

contributed 0 challenges