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 - 769 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: 64
  • Position: #114 / 184
  • Number of attempts: 1
HS exam question - 1611 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 72
  • Position: #220 / 421
  • Number of attempts: 3
Reformat symbols in list - 1649 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #141 / 355
  • Number of attempts: 6
Fizzbuzz - 612 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 44
  • Best player score: 104
  • Position: #142 / 171
  • Number of attempts: 1
Substraction (bis) - 637 entries

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

  • Best score: 21
  • Best player score: 32
  • Position: #65 / 116
  • Number of attempts: 9
Many duplicates - 1481 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #362 / 481
  • Number of attempts: 1
2 quick changes and a numbered list - 660 entries

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

  • Best score: 37
  • Best player score: 46
  • Position: #83 / 156
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1294 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 30
  • Position: #72 / 277
  • Number of attempts: 15
Fix the shell script! - 2676 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 44
  • Position: #467 / 622
  • Number of attempts: 2
Put a newline after every 10 lines in vim - 1685 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #379 / 566
  • Number of attempts: 2
hello-world-vimgolf - 2531 entries

Simple number generation

  • Best score: 10
  • Best player score: 12
  • Position: #457 / 725
  • Number of attempts: 4
Contribute to keyboard mashing - 905 entries

Speak in tongues

  • Best score: 17
  • Best player score: 20
  • Position: #201 / 275
  • Number of attempts: 1
Lowercase first characters - 499 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: 37
  • Position: #85 / 185
  • Number of attempts: 1
Inverting Lines - 1954 entries

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

  • Best score: 10
  • Best player score: 17
  • Position: #432 / 523
  • Number of attempts: 2
Add string initializers to an enum - 899 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 28
  • Position: #224 / 264
  • Number of attempts: 2
Wrap the text of an email message to 79 characters - 858 entries

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

  • Best score: 5
  • Best player score: 6
  • Position: #388 / 444
  • Number of attempts: 4
Search and Replace 0 - 5102 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 14
  • Position: #1091 / 1662
  • Number of attempts: 2
Python Hello World! Reformatting - 1015 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 47
  • Position: #331 / 390
  • Number of attempts: 1
replacing each line of a block selection - 3040 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 23
  • Position: #495 / 785
  • Number of attempts: 2
Shebangs for all - 2090 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: 21
  • Position: #443 / 529
  • Number of attempts: 1
A Simple One - 1076 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #556 / 676
  • Number of attempts: 3
Change the content of a string - 1764 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #343 / 647
  • Number of attempts: 1
Simple text editing with Vim - 13512 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1974 / 3875
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7579 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 7
  • Best player score: 49
  • Position: #1444 / 1871
  • Number of attempts: 1
jimmarq
Twitter:

entered into 24 challenges

contributed 0 challenges