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

New teacher - 276 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 20
  • Position: #10 / 71
  • Number of attempts: 6
months to html list items - 619 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 24
  • Position: #33 / 175
  • Number of attempts: 3
Quicksort - 1611 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: 24
  • Position: #187 / 354
  • Number of attempts: 4
EDN reformat - 1061 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #30 / 149
  • Number of attempts: 6
Remove line numbers - 569 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 8
  • Best player score: 13
  • Position: #83 / 153
  • Number of attempts: 10
Paste a column after a column - 2283 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #10 / 494
  • Number of attempts: 8
Filter number combinations that don't add to 11 - 377 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 27
  • Position: #5 / 111
  • Number of attempts: 5
Tabbed Table to Python Array - 644 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: 51
  • Position: #7 / 167
  • Number of attempts: 8
HS exam question - 1510 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 47
  • Position: #2 / 397
  • Number of attempts: 5
Reformat symbols in list - 1474 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #6 / 325
  • Number of attempts: 5
Fizzbuzz - 511 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 47
  • Position: #6 / 157
  • Number of attempts: 12
Substraction (bis) - 579 entries

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

  • Best score: 21
  • Best player score: 22
  • Position: #7 / 108
  • Number of attempts: 6
Changing around text with citations - 323 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 28
  • Position: #2 / 89
  • Number of attempts: 4
Poorly indented Python comments - 1217 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #14 / 206
  • Number of attempts: 11
Many duplicates - 1265 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #103 / 416
  • Number of attempts: 1
2 quick changes and a numbered list - 599 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: #4 / 145
  • Number of attempts: 12
delete swap - 1549 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #24 / 485
  • Number of attempts: 4
Generate a very basic Python constructor (fixed) - 1189 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: #21 / 250
  • Number of attempts: 16
Fix the shell script! - 2360 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #84 / 545
  • Number of attempts: 6
Visual block training - 1019 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #23 / 187
  • Number of attempts: 11
Put a newline after every 10 lines in vim - 1581 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #128 / 527
  • Number of attempts: 5
Wikitext headings to markdown - 980 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 21
  • Position: #57 / 203
  • Number of attempts: 12
Fill in the chess board - 915 entries

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

  • Best score: 19
  • Best player score: 39
  • Position: #107 / 176
  • Number of attempts: 1
Learn to ask for :help - 544 entries

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

  • Best score: 19
  • Best player score: 24
  • Position: #38 / 124
  • Number of attempts: 6
Transpose a python matrix - 847 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 23
  • Position: #14 / 135
  • Number of attempts: 22
Lowercase first characters - 467 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: #25 / 175
  • Number of attempts: 6
simple replacements - 1662 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #60 / 371
  • Number of attempts: 14
Inverting Lines - 1837 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #287 / 498
  • Number of attempts: 5
CSV to MD format - 388 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 40
  • Position: #27 / 91
  • Number of attempts: 9
Modernise code - 1343 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #50 / 310
  • Number of attempts: 5
swap number pairs - 2011 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #42 / 370
  • Number of attempts: 14
ssh config skills - 249 entries

Parse output from `kuebctl get no -o wide` into an .ssh/config file!

  • Best score: 41
  • Best player score: 41
  • Position: #11 / 63
  • Number of attempts: 12
Python: Def to Lambda - 424 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 21
  • Position: #111 / 150
  • Number of attempts: 2
Get mail address from outlook format - 621 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #75 / 196
  • Number of attempts: 10
Add string initializers to an enum - 862 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 23
  • Position: #117 / 254
  • Number of attempts: 1
Vice versa - 7806 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #600 / 2102
  • Number of attempts: 7
Irakli Chigvaria
Twitter:

Ended up working in explosive atmospheres...

entered into 36 challenges

contributed 0 challenges