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

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

  • Best score: 38
  • Best player score: 46
  • Position: #30 / 57
  • Number of attempts: 3
Python dataclasses - 526 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 38
  • Position: #128 / 142
  • Number of attempts: 1
swap number pairs - 1357 entries

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

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

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

  • Best score: 41
  • Best player score: 106
  • Position: #42 / 44
  • Number of attempts: 1
Rural Post - 3894 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #318 / 964
  • Number of attempts: 6
Replace pattern with 1, 2, 3, ... on each line - 970 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: #127 / 199
  • Number of attempts: 5
Simple, Practical, and Common - 32803 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: #4852 / 7246
  • Number of attempts: 2
prepend * to every non-blank line - 5850 entries

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

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

Just give me the numbers.

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

Simply add a semicolon at the end of each line

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

amateur bike mechanic

entered into 10 challenges

contributed 0 challenges