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

simple replacements - 1046 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #65 / 232
  • Number of attempts: 6
Inverting Lines - 1279 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #40 / 355
  • Number of attempts: 3
CSV to MD format - 276 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 40
  • Position: #14 / 64
  • Number of attempts: 7
Generate a very basic Python constructor - 268 entries

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

  • Best score: 38
  • Best player score: 38
  • Position: #6 / 74
  • Number of attempts: 4
Python dataclasses - 631 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 20
  • Position: #46 / 165
  • Number of attempts: 2
RUST Cargo.toml version to last - 222 entries

RUST Cargo.toml version to last. rusty practice on vimgolf

  • Best score: 16
  • Best player score: 17
  • Position: #29 / 65
  • Number of attempts: 3
RUST match with enum for Coin - 143 entries

RUST match with enum for Coin rusty practice on vimgolf

  • Best score: 84
  • Best player score: 96
  • Position: #14 / 39
  • Number of attempts: 3
Modernise code - 816 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #29 / 188
  • Number of attempts: 8
HS Final exam vimgolf - 649 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: #16 / 174
  • Number of attempts: 4
Change double quotes to single quotes, but with a twist - 248 entries

Although this challenge is in the context of a Python function, you don't need to know Python to do this challenge. It is to add contexts and interesting constraints. The file contains a function that prints a multi-line string literal. I wrote the string literal with double quotes, but then I decided to use single quotes instead, and that's your challenge. However, interestingly enough, the string itself contains single and double quotes. This means, inside the string literal, the originally escaped double quotes no longer need to be escaped, but the single quotes now need to be escaped. Note that the triple double quotes in the docstring should be left alone.

  • Best score: 22
  • Best player score: 22
  • Position: #15 / 48
  • Number of attempts: 9
Add quotes to ansible playbook - 781 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 8
  • Position: #37 / 246
  • Number of attempts: 4
Multiline to Single Line - 516 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #115 / 234
  • Number of attempts: 1
xrandr outputs and dashes - 588 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 12
  • Position: #109 / 192
  • Number of attempts: 4
Com(m)a Trouble - 3375 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 13
  • Position: #304 / 759
  • Number of attempts: 4
Vice versa - 7512 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1396 / 2039
  • Number of attempts: 2
Alphabet soup - 386 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 26
  • Position: #41 / 91
  • Number of attempts: 5
der tanzbaer
Twitter:

entered into 16 challenges

contributed 0 challenges