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

HS exam question - 477 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 108
  • Position: #98 / 119
  • Number of attempts: 3
Reformat symbols in list - 433 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 33
  • Position: #56 / 102
  • Number of attempts: 10
Fizzbuzz - 155 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 47
  • Best player score: 105
  • Position: #43 / 52
  • Number of attempts: 1
Substraction (bis) - 238 entries

Solve the equations (adapted from the original @Caek_'s challenge).

  • Best score: 22
  • Best player score: 22
  • Position: #10 / 55
  • Number of attempts: 16
Changing around text with citations - 116 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 28
  • Position: #11 / 35
  • Number of attempts: 7
Poorly indented Python comments - 659 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 15
  • Position: #24 / 124
  • Number of attempts: 16
Many duplicates - 461 entries

Quick and easy

  • Best score: 7
  • Best player score: 7
  • Position: #11 / 167
  • Number of attempts: 4
2 quick changes and a numbered list - 319 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 37
  • Position: #17 / 77
  • Number of attempts: 10
delete swap - 592 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #131 / 203
  • Number of attempts: 1
Generate a very basic Python constructor (fixed) - 723 entries

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

  • Best score: 29
  • Best player score: 51
  • Position: #114 / 165
  • Number of attempts: 6
Fix the shell script! - 1237 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #71 / 308
  • Number of attempts: 8
Visual block training - 587 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 17
  • Position: #3 / 112
  • Number of attempts: 26
Innocent Monster - 128 entries

You have the tools, just create him!

  • Best score: 60
  • Best player score: 68
  • Position: #14 / 38
  • Number of attempts: 5
Put a newline after every 10 lines in vim - 1078 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #39 / 372
  • Number of attempts: 4
Java to JavaScript - 187 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 64
  • Position: #12 / 46
  • Number of attempts: 9
Wikitext headings to markdown - 671 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 20
  • Position: #29 / 149
  • Number of attempts: 14
hello-world-vimgolf - 1657 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #110 / 475
  • Number of attempts: 3
Contribute to keyboard mashing - 680 entries

Speak in tongues

  • Best score: 17
  • Best player score: 18
  • Position: #85 / 205
  • Number of attempts: 4
Reordering Lorem Ipsum - 201 entries

Who even sorted this?

  • Best score: 13
  • Best player score: 76
  • Position: #31 / 48
  • Number of attempts: 5
Plotting some variables in python - 1233 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 / 258
  • Number of attempts: 6
Transpose a python matrix - 608 entries

Rotate the matrix in 90 degrees.

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

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 28
  • Position: #12 / 57
  • Number of attempts: 10
Lowercase first characters - 370 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 / 133
  • Number of attempts: 12
Increment number for every 10 lines - 161 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: #27 / 47
  • Number of attempts: 8
simple replacements - 1137 entries

The goal is to see the replacement commands in action.

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

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

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

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

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

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #27 / 178
  • Number of attempts: 8
Count to 100 in word form - 52 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: #9 / 15
  • Number of attempts: 5
RUST match with enum for Coin - 145 entries

RUST match with enum for Coin rusty practice on vimgolf

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

Simple challenge for frequent action while programming.

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

Modernise and clean up some C++ code.

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

entered into 32 challenges

contributed 0 challenges