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

Create a diamond comment - 40 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 30
  • Position: #6 / 16
  • Number of attempts: 4
Make list of numbers from 1 to 30 more compact, but more confusing - 41 entries

Change the naming logic of numbers to end up with less lines.

  • Best score: 77
  • Best player score: 151
  • Position: #12 / 15
  • Number of attempts: 2
Migrated to Postgres! - 90 entries

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

  • Best score: 25
  • Best player score: 27
  • Position: #13 / 41
  • Number of attempts: 4
simple replacements - 452 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 22
  • Position: #50 / 111
  • Number of attempts: 4
Inverting Lines - 691 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #71 / 195
  • Number of attempts: 4
CSV to MD format - 146 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 65
  • Position: #21 / 38
  • Number of attempts: 2
Modernise code - 506 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #34 / 117
  • Number of attempts: 7
HS Final exam vimgolf - 499 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 21
  • Position: #17 / 136
  • Number of attempts: 4

Contributed Challenges

Lowercase first characters - 56 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.

Peter Salvi
Twitter:

Programming (Common Lisp, Julia, Rust, ...), Languages (Japanese, Chinese, Indonesian, Hindi/Urdu, Arabic, Persian...), Games (Bridge, IF, German-style, Go...)

entered into 8 challenges

contributed 1 challenges