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

Surround the 'z' character with brackets, quotes, and print as formatted string. - 494 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #36 / 278
  • Number of attempts: 1
Paste a column after a column - 2324 entries

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

  • Best score: 14
  • Best player score: 23
  • Position: #317 / 502
  • Number of attempts: 2
Tabbed Table to Python Array - 645 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: 66
  • Position: #120 / 167
  • Number of attempts: 2
HS exam question - 1517 entries

Convert the data to a python dictionary

  • Best score: 12
  • Best player score: 81
  • Position: #261 / 400
  • Number of attempts: 1
Fizzbuzz - 512 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 92
  • Position: #114 / 158
  • Number of attempts: 2
Poorly indented Python comments - 1217 entries

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

  • Best score: 15
  • Best player score: 60
  • Position: #171 / 206
  • Number of attempts: 1
2 quick changes and a numbered list - 610 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 48
  • Position: #88 / 146
  • Number of attempts: 1
delete swap - 1578 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #238 / 495
  • Number of attempts: 1
hello-world-vimgolf - 2402 entries

Simple number generation

  • Best score: 10
  • Best player score: 14
  • Position: #524 / 681
  • Number of attempts: 2
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: 58
  • Position: #247 / 342
  • Number of attempts: 1
Lowercase first characters - 480 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: 45
  • Position: #129 / 178
  • Number of attempts: 1
simple replacements - 1690 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 27
  • Position: #303 / 375
  • Number of attempts: 1
Inverting Lines - 1858 entries

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

  • Best score: 10
  • Best player score: 17
  • Position: #419 / 502
  • Number of attempts: 2
Making 3 line function a one liner. - 311 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #139 / 199
  • Number of attempts: 1
Modernise code - 1350 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 42
  • Position: #143 / 311
  • Number of attempts: 3
Put a cross in the square - 209 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 52
  • Position: #86 / 86
  • Number of attempts: 1
Wrap the text of an email message to 79 characters - 692 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #286 / 391
  • Number of attempts: 4
Shebangs for all - 1916 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 22
  • Position: #437 / 501
  • Number of attempts: 2
Increment, increment, increment.... - 665 entries

Vim likes macros

  • Best score: 10
  • Best player score: 13
  • Position: #382 / 402
  • Number of attempts: 1
Indentation - 498 entries

Indent each line according to the right number of spaces it needs.

  • Best score: 21
  • Best player score: 33
  • Position: #138 / 169
  • Number of attempts: 2
Reformat most common surnames - 662 entries

Reformat copy-pasted table into a list of the most common surnames

  • Best score: 23
  • Best player score: 46
  • Position: #170 / 201
  • Number of attempts: 1
Simple text editing with Vim - 12360 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 27
  • Position: #3194 / 3599
  • Number of attempts: 1
Spam Mail
Twitter2:

entered into 22 challenges

contributed 0 challenges