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

Mirror image - 42 entries

Add the second eye

  • Best score: 15
  • Best player score: 21
  • Position: #8 / 21
  • Number of attempts: 6
months to html list items - 778 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 28
  • Position: #134 / 213
  • Number of attempts: 2
Quicksort - 1703 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 6
  • Position: #75 / 373
  • Number of attempts: 8
EDN reformat - 1085 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 18
  • Position: #20 / 151
  • Number of attempts: 4
Tic-Tac-Toe Grid Transformation - 326 entries

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

  • Best score: 56
  • Best player score: 75
  • Position: #22 / 79
  • Number of attempts: 9
Populate 3D bone names list - 492 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 21
  • Position: #15 / 136
  • Number of attempts: 7
Paste a column after a column - 2367 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 14
  • Position: #51 / 514
  • Number of attempts: 7
Tabbed Table to Python Array - 646 entries

Not payed by the hour? So make it fast ;-) The table contains the relative occurencies of bigrams (two consecutive letters) in 1/100,000 in the german language, copy-pasted from http://www.mathe.tu-freiberg.de/~hebisch/cafe/kryptographie/bigramme.html

  • Best score: 50
  • Best player score: 60
  • Position: #80 / 168
  • Number of attempts: 6
HS exam question - 1517 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 48
  • Position: #24 / 401
  • Number of attempts: 6
Reformat symbols in list - 1482 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #114 / 328
  • Number of attempts: 5
Fizzbuzz - 534 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 78
  • Position: #81 / 160
  • Number of attempts: 2
Substraction (bis) - 580 entries

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

  • Best score: 21
  • Best player score: 28
  • Position: #47 / 109
  • Number of attempts: 2
Poorly indented Python comments - 1263 entries

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

  • Best score: 15
  • Best player score: 16
  • Position: #56 / 211
  • Number of attempts: 12
Generate a very basic Python constructor (fixed) - 1217 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: #25 / 256
  • Number of attempts: 11
Fix the shell script! - 2414 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #86 / 559
  • Number of attempts: 6
Put a newline after every 10 lines in vim - 1636 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #344 / 544
  • Number of attempts: 2
Wikitext headings to markdown - 984 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 21
  • Position: #59 / 206
  • Number of attempts: 6
Fill in the chess board - 932 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: #18 / 179
  • Number of attempts: 9
Learn to ask for :help - 571 entries

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

  • Best score: 19
  • Best player score: 25
  • Position: #46 / 127
  • Number of attempts: 4
Plotting some variables in python - 1597 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: #40 / 342
  • Number of attempts: 10
Transpose a python matrix - 847 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 23
  • Position: #15 / 135
  • Number of attempts: 9
Python dataclasses - 1120 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 23
  • Position: #129 / 280
  • Number of attempts: 3
Modernise code - 1352 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 41
  • Position: #131 / 313
  • Number of attempts: 5
swap number pairs - 2022 entries

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

  • Best score: 16
  • Best player score: 20
  • Position: #139 / 373
  • Number of attempts: 3
HS Final exam vimgolf - 887 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: #75 / 233
  • Number of attempts: 10
Levenshtein distance - 104 entries

Compute distance for each pair. Notice that this recursive implementation is very inefficient. Wagner-Fischer algorithm is iterative and much faster. #vimscript

  • Best score: 27
  • Best player score: 34
  • Position: #18 / 36
  • Number of attempts: 4
Data reformat - 285 entries

Reformat this copy-paste data! #csv

  • Best score: 36
  • Best player score: 55
  • Position: #43 / 62
  • Number of attempts: 3
Get mail address from outlook format - 641 entries

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

  • Best score: 15
  • Best player score: 16
  • Position: #122 / 201
  • Number of attempts: 3
Conway sequence - 23 entries

Generate the the first fifteen numbers. See here for more information: http://en.wikipedia.org/wiki/Look-and-say_sequence

  • Best score: 43
  • Best player score: 64
  • Position: #18 / 18
  • Number of attempts: 1
Pascal's Triangle - 34 entries

Generate the first 17 left-justified rows of Pascal's triangle.

  • Best score: 36
  • Best player score: 36
  • Position: #10 / 15
  • Number of attempts: 3
ShookerAndBeta
Twitter:

entered into 30 challenges

contributed 0 challenges