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

Generate a very basic Python constructor - 172 entries

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

  • Best score: 38
  • Best player score: 46
  • Position: #24 / 47
  • Number of attempts: 3
Python dataclasses - 407 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 38
  • Position: #104 / 116
  • Number of attempts: 1
swap number pairs - 1251 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 30
  • Position: #147 / 236
  • Number of attempts: 2
ssh config skills - 163 entries

Parse output from `kuebctl get no -o wide` into an .ssh/config file!

  • Best score: 41
  • Best player score: 106
  • Position: #38 / 40
  • Number of attempts: 1
Rural Post - 3785 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #313 / 936
  • Number of attempts: 6
Replace pattern with 1, 2, 3, ... on each line - 954 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 30
  • Position: #125 / 193
  • Number of attempts: 5
Simple, Practical, and Common - 32765 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: 29
  • Position: #4847 / 7241
  • Number of attempts: 2
prepend * to every non-blank line - 5827 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Position: #310 / 1434
  • Number of attempts: 3
One number per line - 18294 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #693 / 3770
  • Number of attempts: 10
Add semicolons - 10467 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #13 / 2966
  • Number of attempts: 6
Chris Conte
Twitter:

amateur bike mechanic

entered into 10 challenges

contributed 0 challenges