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

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 25
  • Position: #174 / 262
  • Number of attempts: 2
Inverting Lines - 1447 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #29 / 396
  • Number of attempts: 4
CSV to MD format - 328 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 40
  • Position: #14 / 75
  • Number of attempts: 4
Python dataclasses - 712 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 32
  • Position: #132 / 184
  • Number of attempts: 2
Modernise code - 1001 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 53
  • Position: #171 / 226
  • Number of attempts: 1
HS Final exam vimgolf - 754 entries

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

  • Best score: 21
  • Best player score: 41
  • Position: #168 / 202
  • Number of attempts: 1
Rural Post - 4160 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 13
  • Position: #579 / 1030
  • Number of attempts: 2
Simple, Practical, and Common - 33029 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 30
  • Position: #5149 / 7290
  • Number of attempts: 2
Swap values inside brackets - 2440 entries

Easy challenge.

  • Best score: 14
  • Best player score: 16
  • Position: #231 / 563
  • Number of attempts: 4
sort python functions and methods alphabetically - 18 entries

* sort functions in the python file alphabetically * sort functions within a Class alphabetically * sort Classes alphabetically

  • Best score: 20
  • Best player score: 26
  • Position: #11 / 11
  • Number of attempts: 1
Words in parens - 12775 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 17
  • Position: #2683 / 3926
  • Number of attempts: 2
foobarbazqux12345
Twitter:

entered into 11 challenges

contributed 0 challenges