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 - 556 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #31 / 130
  • Number of attempts: 6
Inverting Lines - 855 entries

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

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

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 40
  • Position: #13 / 43
  • Number of attempts: 7
Generate a very basic Python constructor - 167 entries

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

  • Best score: 30
  • Best player score: 38
  • Position: #7 / 43
  • Number of attempts: 4
Python dataclasses - 351 entries

Simple challenge to extract fields from a Python class

  • Best score: 9
  • Best player score: 20
  • Position: #35 / 98
  • Number of attempts: 2
RUST Cargo.toml version to last - 168 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #26 / 53
  • Number of attempts: 3
RUST match with enum for Coin - 109 entries

RUST match with enum for Coin rusty practice on vimgolf

  • Best score: 85
  • Best player score: 96
  • Position: #11 / 32
  • Number of attempts: 3
Modernise code - 596 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #29 / 139
  • Number of attempts: 8
HS Final exam vimgolf - 540 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 / 148
  • Number of attempts: 4
Change double quotes to single quotes, but with a twist - 204 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 / 43
  • Number of attempts: 9
Add quotes to ansible playbook - 539 entries

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

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

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

  • Best score: 5
  • Best player score: 5
  • Position: #115 / 163
  • Number of attempts: 1
xrandr outputs and dashes - 528 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 / 175
  • Number of attempts: 4
Com(m)a Trouble - 3287 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #298 / 743
  • Number of attempts: 4
Vice versa - 7434 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1388 / 2016
  • Number of attempts: 2
Alphabet soup - 337 entries

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

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

entered into 16 challenges

contributed 0 challenges