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

Tabbed Table to Python Array - 375 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: 51
  • Best player score: 64
  • Position: #59 / 108
  • Number of attempts: 1
HS exam question - 1124 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 48
  • Position: #17 / 306
  • Number of attempts: 6
Reformat symbols in list - 1021 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #76 / 233
  • Number of attempts: 5
Fizzbuzz - 343 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 47
  • Best player score: 78
  • Position: #55 / 110
  • Number of attempts: 2
Substraction (bis) - 383 entries

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

  • Best score: 22
  • Best player score: 28
  • Position: #32 / 80
  • Number of attempts: 2
Poorly indented Python comments - 866 entries

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

  • Best score: 15
  • Best player score: 21
  • Position: #43 / 168
  • Number of attempts: 8
Generate a very basic Python constructor (fixed) - 924 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 / 207
  • Number of attempts: 11
Fix the shell script! - 1728 entries

Fix the shell script with the fewest keystrokes!

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #294 / 458
  • Number of attempts: 2
Wikitext headings to markdown - 781 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 21
  • Position: #45 / 172
  • Number of attempts: 6
Fill in the chess board - 737 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 / 155
  • Number of attempts: 9
Learn to ask for :help - 461 entries

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

  • Best score: 19
  • Best player score: 25
  • Position: #40 / 107
  • Number of attempts: 4
Plotting some variables in python - 1396 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 / 295
  • Number of attempts: 10
Transpose a python matrix - 684 entries

Rotate the matrix in 90 degrees.

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

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 23
  • Position: #91 / 204
  • Number of attempts: 3
Modernise code - 1103 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 41
  • Position: #111 / 261
  • Number of attempts: 5
swap number pairs - 1871 entries

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

  • Best score: 16
  • Best player score: 20
  • Position: #126 / 346
  • Number of attempts: 3
HS Final exam vimgolf - 815 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: #72 / 215
  • Number of attempts: 10
Levenshtein distance - 88 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: 28
  • Best player score: 34
  • Position: #15 / 31
  • Number of attempts: 4
Data reformat - 251 entries

Reformat this copy-paste data! #csv

  • Best score: 38
  • Best player score: 55
  • Position: #39 / 58
  • Number of attempts: 3
Get mail address from outlook format - 604 entries

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

  • Best score: 15
  • Best player score: 16
  • Position: #117 / 190
  • 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 23 challenges

contributed 0 challenges