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

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: #42 / 111
  • Number of attempts: 1
HS exam question - 1517 entries

Convert the data to a python dictionary

  • Best score: 12
  • Best player score: 67
  • Position: #166 / 400
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1190 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 44
  • Position: #129 / 251
  • Number of attempts: 3
Put a newline after every 10 lines in vim - 1594 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #261 / 532
  • Number of attempts: 2
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: 41
  • Position: #129 / 339
  • Number of attempts: 3
Transpose a python matrix - 847 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 89
  • Position: #125 / 135
  • Number of attempts: 1
Inverting Lines - 1843 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #134 / 500
  • Number of attempts: 4
Generate a very basic Python constructor - 309 entries

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

  • Best score: 38
  • Best player score: 38
  • Position: #18 / 95
  • Number of attempts: 10
Python dataclasses - 1113 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #41 / 279
  • Number of attempts: 4
Easy modification of ssh config - 335 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 25
  • Position: #26 / 104
  • Number of attempts: 6
Python: Def to Lambda - 432 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 25
  • Position: #140 / 151
  • Number of attempts: 1
Com(m)a Trouble - 3682 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 12
  • Position: #148 / 830
  • Number of attempts: 2

Contributed Challenges

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.

José Medrano
Twitter:

My cat is better dressed than I am. He/him

entered into 12 challenges

contributed 1 challenges