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 - 90 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: #20 / 31
  • Number of attempts: 1
HS exam question - 790 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 72
  • Position: #108 / 204
  • Number of attempts: 3
Reformat symbols in list - 662 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #69 / 150
  • Number of attempts: 6
Fizzbuzz - 236 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 47
  • Best player score: 104
  • Position: #60 / 73
  • Number of attempts: 1
Substraction (bis) - 300 entries

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

  • Best score: 22
  • Best player score: 32
  • Position: #34 / 67
  • Number of attempts: 9
Many duplicates - 610 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #172 / 212
  • Number of attempts: 1
2 quick changes and a numbered list - 359 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: #51 / 88
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 832 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: #46 / 183
  • Number of attempts: 15
Fix the shell script! - 1402 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 44
  • Position: #255 / 347
  • Number of attempts: 2
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: #291 / 401
  • Number of attempts: 2
hello-world-vimgolf - 1762 entries

Simple number generation

  • Best score: 10
  • Best player score: 12
  • Position: #321 / 507
  • Number of attempts: 4
Contribute to keyboard mashing - 692 entries

Speak in tongues

  • Best score: 17
  • Best player score: 20
  • Position: #162 / 214
  • Number of attempts: 1
Lowercase first characters - 387 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: #64 / 142
  • Number of attempts: 1
Inverting Lines - 1447 entries

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

  • Best score: 10
  • Best player score: 17
  • Position: #331 / 396
  • Number of attempts: 2
Add string initializers to an enum - 802 entries

Change Typescript enum so that it has string initializers.

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

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

  • Best score: 5
  • Best player score: 6
  • Position: #319 / 363
  • Number of attempts: 4
Search and Replace 0 - 4722 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1033 / 1562
  • Number of attempts: 2
Python Hello World! Reformatting - 910 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: #305 / 355
  • Number of attempts: 1
replacing each line of a block selection - 2871 entries

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

  • Best score: 18
  • Best player score: 23
  • Position: #478 / 751
  • Number of attempts: 2
Shebangs for all - 1788 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: #407 / 471
  • Number of attempts: 1
A Simple One - 968 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 / 629
  • Number of attempts: 3
Change the content of a string - 1393 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #285 / 531
  • Number of attempts: 1
Simple text editing with Vim - 11753 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1884 / 3447
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 6141 entries

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

  • Best score: 32
  • Best player score: 49
  • Position: #1251 / 1514
  • Number of attempts: 1
jimmarq
Twitter:

entered into 24 challenges

contributed 0 challenges