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

Put a newline after every 10 lines in vim - 1157 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #190 / 399
  • Number of attempts: 3
Wikitext headings to markdown - 709 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 22
  • Position: #61 / 157
  • Number of attempts: 13
hello-world-vimgolf - 1747 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #259 / 503
  • Number of attempts: 4
Contribute to keyboard mashing - 689 entries

Speak in tongues

  • Best score: 17
  • Best player score: 19
  • Position: #108 / 213
  • Number of attempts: 7
Reordering Lorem Ipsum - 210 entries

Who even sorted this?

  • Best score: 13
  • Best player score: 83
  • Position: #34 / 51
  • Number of attempts: 7
Learn to ask for :help - 447 entries

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

  • Best score: 19
  • Best player score: 35
  • Position: #69 / 102
  • Number of attempts: 4
Create a diamond comment - 260 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 47
  • Position: #41 / 60
  • Number of attempts: 2
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: 34
  • Position: #39 / 142
  • Number of attempts: 9
Migrated to Postgres! - 244 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 29
  • Position: #51 / 96
  • Number of attempts: 5
Inverting Lines - 1436 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #135 / 395
  • Number of attempts: 4
Generate a very basic Python constructor - 281 entries

I actually needed to do this myself, so I look forward to learning how.

  • Best score: 38
  • Best player score: 59
  • Position: #55 / 81
  • Number of attempts: 3
Python dataclasses - 710 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #43 / 183
  • Number of attempts: 6
Just the middle - 11281 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 10
  • Position: #3833 / 4139
  • Number of attempts: 1
deusthe
Twitter:

entered into 13 challenges

contributed 0 challenges