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 - 574 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: 35
  • Position: #28 / 117
  • Number of attempts: 4
Transpose a python matrix - 324 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 33
  • Position: #18 / 64
  • Number of attempts: 3
Create a diamond comment - 134 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 28
  • Position: #9 / 37
  • Number of attempts: 6
Lowercase first characters - 186 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: #6 / 71
  • Number of attempts: 1
Make list of numbers from 1 to 30 more compact, but more confusing - 61 entries

Change the naming logic of numbers to end up with less lines.

  • Best score: 77
  • Best player score: 91
  • Position: #4 / 22
  • 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: 29
  • Position: #32 / 62
  • Number of attempts: 2
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: 26
  • Position: #11 / 36
  • Number of attempts: 2
simple replacements - 674 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #48 / 157
  • Number of attempts: 2
Inverting Lines - 976 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #88 / 267
  • Number of attempts: 1
CSV to MD format - 190 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 40
  • Position: #18 / 49
  • Number of attempts: 6
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: #11 / 47
  • Number of attempts: 2
Python dataclasses - 418 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #28 / 118
  • Number of attempts: 2
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: 62
  • Position: #2 / 13
  • Number of attempts: 7
Making 3 line function a one liner. - 81 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #38 / 62
  • Number of attempts: 1
Staircase - 17 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: 31
  • Position: #5 / 11
  • Number of attempts: 2
swap number pairs - 1258 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #70 / 239
  • Number of attempts: 6
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: 22
  • Position: #49 / 153
  • Number of attempts: 2
Extend shell script - 64 entries

Just add some more stuff

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

Just add another alias to each worker

  • Best score: 24
  • Best player score: 25
  • Position: #20 / 49
  • Number of attempts: 3
Rural Post - 3797 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #387 / 938
  • Number of attempts: 1
Satisfy the go linter - 1624 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 21
  • Position: #133 / 333
  • Number of attempts: 1
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: #142 / 179
  • Number of attempts: 1
Capitalize the Names - 280 entries

I want to capitalize the names in quotes, but just the people's names, not the file names.

  • Best score: 21
  • Best player score: 21
  • Position: #35 / 71
  • Number of attempts: 6
Yo To Hello - 980 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #320 / 452
  • Number of attempts: 1
Replace pattern with 1, 2, 3, ... on each line - 954 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 22
  • Position: #78 / 193
  • Number of attempts: 1
Simple, Practical, and Common - 32765 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #2346 / 7241
  • 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: 16
  • Position: #105 / 173
  • Number of attempts: 2
Swap values - 4409 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #508 / 1235
  • Number of attempts: 4
One number per line - 18295 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #733 / 3770
  • Number of attempts: 3
SCREAMING_SNAKE_CASE to Title Case - 1089 entries

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

  • Best score: 19
  • Best player score: 19
  • Position: #55 / 227
  • Number of attempts: 5
Box it - 7657 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #435 / 1829
  • Number of attempts: 2
Cool or not? - 748 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 15
  • Position: #67 / 214
  • Number of attempts: 6
Two pairs of cluster of letters creates word - 706 entries

Clean and group.

  • Best score: 17
  • Best player score: 18
  • Position: #86 / 165
  • Number of attempts: 2
Flip the bit - 102 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 9
  • Position: #33 / 62
  • Number of attempts: 1
Build a six - 267 entries

Just enjoy building "a" floors...

  • Best score: 22
  • Best player score: 23
  • Position: #71 / 89
  • Number of attempts: 1
Increment each number - 946 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 16
  • Position: #81 / 233
  • Number of attempts: 5
Letter case trickery - 1524 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 10
  • Position: #161 / 494
  • Number of attempts: 2
Alphabet soup - 353 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 26
  • Position: #44 / 83
  • Number of attempts: 3
A Simple One - 880 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #517 / 589
  • Number of attempts: 1
Almost encrypted - 178 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #117 / 134
  • Number of attempts: 1
Reconstruct the Sentence - 1077 entries

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

  • Best score: 20
  • Best player score: 20
  • Position: #111 / 333
  • Number of attempts: 4
Simple text editing with Vim - 11433 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1821 / 3358
  • Number of attempts: 2
Georg Bökman
Twitter:

entered into 42 challenges

contributed 0 challenges