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 - 646 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: #102 / 168
  • Number of attempts: 1
HS exam question - 1517 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 72
  • Position: #208 / 401
  • Number of attempts: 3
Reformat symbols in list - 1482 entries

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

  • Best score: 24
  • Best player score: 27
  • Position: #130 / 328
  • Number of attempts: 6
Fizzbuzz - 534 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 104
  • Position: #133 / 160
  • Number of attempts: 1
Substraction (bis) - 580 entries

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

  • Best score: 21
  • Best player score: 32
  • Position: #61 / 109
  • Number of attempts: 9
Many duplicates - 1304 entries

Quick and easy

  • Best score: 6
  • Best player score: 10
  • Position: #321 / 427
  • 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: 46
  • Position: #79 / 146
  • Number of attempts: 2
Generate a very basic Python constructor (fixed) - 1214 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: #69 / 254
  • Number of attempts: 15
Fix the shell script! - 2399 entries

Fix the shell script with the fewest keystrokes!

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #371 / 542
  • Number of attempts: 2
hello-world-vimgolf - 2411 entries

Simple number generation

  • Best score: 10
  • Best player score: 12
  • Position: #430 / 686
  • Number of attempts: 4
Contribute to keyboard mashing - 869 entries

Speak in tongues

  • Best score: 17
  • Best player score: 20
  • Position: #194 / 263
  • Number of attempts: 1
Lowercase first characters - 482 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: #82 / 180
  • Number of attempts: 1
Inverting Lines - 1866 entries

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

  • Best score: 10
  • Best player score: 17
  • Position: #418 / 504
  • Number of attempts: 2
Add string initializers to an enum - 865 entries

Change Typescript enum so that it has string initializers.

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

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

  • Best score: 5
  • Best player score: 6
  • Position: #341 / 390
  • Number of attempts: 4
Search and Replace 0 - 4826 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1053 / 1596
  • Number of attempts: 2
Python Hello World! Reformatting - 941 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: #314 / 367
  • Number of attempts: 1
replacing each line of a block selection - 2947 entries

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

  • Best score: 18
  • Best player score: 23
  • Position: #485 / 768
  • Number of attempts: 2
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: 21
  • Position: #424 / 501
  • Number of attempts: 1
A Simple One - 1005 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 / 646
  • Number of attempts: 3
Change the content of a string - 1495 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #301 / 563
  • Number of attempts: 1
Simple text editing with Vim - 12395 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1913 / 3605
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 6683 entries

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

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

entered into 24 challenges

contributed 0 challenges