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

Plotting some variables in python - 1134 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 44
  • Position: #109 / 238
  • Number of attempts: 7
simple replacements - 1046 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #31 / 232
  • 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: 45
  • Position: #31 / 74
  • Number of attempts: 6
Python dataclasses - 631 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 23
  • Position: #70 / 165
  • Number of attempts: 7
HS Final exam vimgolf - 647 entries

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

  • Best score: 21
  • Best player score: 32
  • Position: #107 / 173
  • Number of attempts: 1
ssh config skills - 196 entries

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

  • Best score: 41
  • Best player score: 122
  • Position: #47 / 48
  • Number of attempts: 1
Rural Post - 4087 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #40 / 1010
  • Number of attempts: 8
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: 9
  • Position: #153 / 246
  • Number of attempts: 6
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: #120 / 192
  • Number of attempts: 7
Simple, Practical, and Common - 32881 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: 22
  • Position: #2275 / 7266
  • Number of attempts: 5
prepend * to every non-blank line - 5948 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #334 / 1460
  • Number of attempts: 3
One number per line - 18369 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1298 / 3786
  • Number of attempts: 8
Add semicolons - 10527 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #659 / 2986
  • Number of attempts: 3
Box it - 7678 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 37
  • Position: #1632 / 1834
  • Number of attempts: 1

Contributed Challenges

Fix the shell script! - 807 entries

Fix the shell script with the fewest keystrokes!

HS Final exam vimgolf - 647 entries

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

Hossein Yousefi 💙
Twitter:

Co-founder and CTO at identi 💙 University Lecturer 💙 #Flutter & #Dart Enthusiast

entered into 14 challenges

contributed 2 challenges