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 - 581 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: 56
  • Position: #71 / 118
  • Number of attempts: 1
Transpose a python matrix - 331 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 62
  • Position: #47 / 67
  • Number of attempts: 3
Lowercase first characters - 188 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: 43
  • Position: #48 / 72
  • Number of attempts: 3
Migrated to Postgres! - 147 entries

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

  • Best score: 26
  • Best player score: 30
  • Position: #46 / 62
  • Number of attempts: 3
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: 70
  • Position: #29 / 36
  • Number of attempts: 1
simple replacements - 674 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #49 / 157
  • Number of attempts: 6
Inverting Lines - 978 entries

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

  • Best score: 10
  • Best player score: 14
  • Position: #189 / 268
  • Number of attempts: 2
Python dataclasses - 418 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 26
  • Position: #64 / 118
  • Number of attempts: 3
Modernise code - 645 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 43
  • Position: #79 / 149
  • Number of attempts: 1
HS Final exam vimgolf - 569 entries

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

  • Best score: 21
  • Best player score: 39
  • Position: #122 / 153
  • Number of attempts: 1
Extend shell script - 64 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 66
  • Position: #19 / 25
  • Number of attempts: 1
Rural Post - 3797 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 9
  • Position: #164 / 938
  • Number of attempts: 6
Multiline to Single Line - 378 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #140 / 179
  • Number of attempts: 1
Yo To Hello - 983 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #317 / 454
  • Number of attempts: 1
Get mail address from outlook format - 558 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 18
  • Position: #119 / 173
  • Number of attempts: 3
prepend * to every non-blank line - 5829 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Position: #406 / 1434
  • Number of attempts: 7
Python Hello World! Reformatting - 881 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 43
  • Position: #176 / 340
  • Number of attempts: 4
underscore_to_camelCase - 147 entries

Pointy haired boss decided we need to switch to camelCase. Let's get this over with.

  • Best score: 14
  • Best player score: 16
  • Position: #61 / 74
  • Number of attempts: 2
Triangle of arrows - 114 entries

I made this by accident when working on another challenge. How would you go about making this?

  • Best score: 14
  • Best player score: 22
  • Position: #19 / 31
  • Number of attempts: 7
Sorting paragraphs - 477 entries

Order the paragraphs correctly, per prefixed index

  • Best score: 18
  • Best player score: 31
  • Position: #80 / 148
  • Number of attempts: 1
Simple text editing with Vim - 11438 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #1823 / 3359
  • Number of attempts: 4
Patrick Martin
Twitter:

entered into 21 challenges

contributed 0 challenges