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 - 790 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 47
  • Position: #11 / 204
  • Number of attempts: 16
Reformat symbols in list - 662 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #24 / 150
  • Number of attempts: 5
Fizzbuzz - 236 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 47
  • Best player score: 47
  • Position: #11 / 73
  • Number of attempts: 1
Substraction (bis) - 300 entries

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

  • Best score: 22
  • Best player score: 22
  • Position: #11 / 67
  • Number of attempts: 13
Changing around text with citations - 162 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 28
  • Position: #15 / 47
  • Number of attempts: 7
Poorly indented Python comments - 747 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #27 / 142
  • Number of attempts: 1
Many duplicates - 610 entries

Quick and easy

  • Best score: 7
  • Best player score: 7
  • Position: #15 / 212
  • Number of attempts: 2
2 quick changes and a numbered list - 359 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: #18 / 88
  • Number of attempts: 2
delete swap - 740 entries

delete all swap

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

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

  • Best score: 29
  • Best player score: 29
  • Position: #39 / 183
  • Number of attempts: 6
Fix the shell script! - 1402 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 26
  • Position: #37 / 347
  • Number of attempts: 1
Visual block training - 630 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #22 / 121
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 1163 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #28 / 401
  • Number of attempts: 3
Java to JavaScript - 207 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 59
  • Position: #9 / 52
  • Number of attempts: 1
Wikitext headings to markdown - 709 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 20
  • Position: #31 / 157
  • Number of attempts: 1
hello-world-vimgolf - 1762 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #228 / 507
  • Number of attempts: 1
Contribute to keyboard mashing - 692 entries

Speak in tongues

  • Best score: 17
  • Best player score: 17
  • Position: #44 / 214
  • Number of attempts: 1
Reordering Lorem Ipsum - 210 entries

Who even sorted this?

  • Best score: 13
  • Best player score: 13
  • Position: #18 / 51
  • Number of attempts: 1
Solve anagram with ASCII letters - 27 entries

ASCII created by TOIlet command

  • Best score: 48
  • Best player score: 48
  • Position: #4 / 11
  • Number of attempts: 1
Fill in the chess board - 665 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 19
  • Position: #26 / 140
  • Number of attempts: 1
Learn to ask for :help - 447 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 21
  • Position: #20 / 102
  • Number of attempts: 4
Plotting some variables in python - 1269 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: #45 / 270
  • Number of attempts: 1
Transpose a python matrix - 629 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 23
  • Position: #16 / 112
  • Number of attempts: 1
Create a diamond comment - 260 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 27
  • Position: #10 / 60
  • Number of attempts: 1
Lowercase first characters - 387 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: #28 / 142
  • Number of attempts: 1
Make list of numbers from 1 to 30 more compact, but more confusing - 81 entries

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

  • Best score: 75
  • Best player score: 75
  • Position: #2 / 33
  • Number of attempts: 1
Migrated to Postgres! - 244 entries

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

  • Best score: 26
  • Best player score: 26
  • Position: #11 / 96
  • Number of attempts: 5
Increment number for every 10 lines - 173 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: 25
  • Position: #5 / 50
  • Number of attempts: 1
simple replacements - 1177 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #66 / 262
  • Number of attempts: 1
Inverting Lines - 1447 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #178 / 396
  • Number of attempts: 1
CSV to MD format - 328 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 36
  • Position: #11 / 75
  • Number of attempts: 1
Modernise code - 999 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #55 / 225
  • Number of attempts: 1
Extend shell script - 90 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 37
  • Position: #6 / 37
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 6141 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 34
  • Position: #305 / 1514
  • Number of attempts: 2
Topvimgolf Score
Twitter:

Working through Vimgolf example till the top or second top score, to be able to see all of the solutions, and practice them.

entered into 34 challenges

contributed 0 challenges