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 - 73 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: 52
  • Best player score: 64
  • Position: #17 / 26
  • Number of attempts: 1
HS exam question - 762 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 48
  • Position: #15 / 198
  • Number of attempts: 6
Reformat symbols in list - 636 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #52 / 146
  • Number of attempts: 5
Fizzbuzz - 235 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 47
  • Best player score: 78
  • Position: #43 / 72
  • Number of attempts: 2
Substraction (bis) - 298 entries

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

  • Best score: 22
  • Best player score: 28
  • Position: #25 / 65
  • Number of attempts: 2
Poorly indented Python comments - 744 entries

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

  • Best score: 15
  • Best player score: 21
  • Position: #36 / 141
  • Number of attempts: 8
Generate a very basic Python constructor (fixed) - 828 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 / 183
  • Number of attempts: 11
Fix the shell script! - 1377 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #69 / 343
  • Number of attempts: 6
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: 13
  • Position: #262 / 401
  • Number of attempts: 2
Wikitext headings to markdown - 709 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 21
  • Position: #41 / 157
  • Number of attempts: 6
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: #18 / 140
  • Number of attempts: 9
Learn to ask for :help - 447 entries

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

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

Rotate the matrix in 90 degrees.

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

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 23
  • Position: #79 / 183
  • Number of attempts: 3
Modernise code - 983 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 41
  • Position: #103 / 223
  • Number of attempts: 5
swap number pairs - 1664 entries

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

  • Best score: 16
  • Best player score: 20
  • Position: #116 / 311
  • Number of attempts: 3
HS Final exam vimgolf - 745 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: #67 / 200
  • Number of attempts: 10
Levenshtein distance - 85 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 / 29
  • Number of attempts: 4
Data reformat - 241 entries

Reformat this copy-paste data! #csv

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

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

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