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 - 1543 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: #154 / 329
  • Number of attempts: 7
simple replacements - 1536 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #31 / 336
  • Number of attempts: 7
Generate a very basic Python constructor - 307 entries

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

  • Best score: 38
  • Best player score: 45
  • Position: #35 / 94
  • Number of attempts: 6
Python dataclasses - 982 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 23
  • Position: #105 / 248
  • Number of attempts: 7
HS Final exam vimgolf - 864 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: #144 / 227
  • Number of attempts: 1
ssh config skills - 249 entries

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

  • Best score: 41
  • Best player score: 122
  • Position: #60 / 63
  • Number of attempts: 1
Rural Post - 4351 entries

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

  • Best score: 9
  • Best player score: 9
  • Position: #40 / 1066
  • Number of attempts: 8
Add quotes to ansible playbook - 872 entries

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

  • Best score: 8
  • Best player score: 9
  • Position: #160 / 274
  • Number of attempts: 6
xrandr outputs and dashes - 652 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 / 213
  • Number of attempts: 7
Simple, Practical, and Common - 33353 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: #2274 / 7358
  • Number of attempts: 5
prepend * to every non-blank line - 6201 entries

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

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1321 / 3841
  • Number of attempts: 8
Add semicolons - 10785 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #658 / 3042
  • Number of attempts: 3
Box it - 7818 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 37
  • Position: #1659 / 1861
  • Number of attempts: 1

Contributed Challenges

Fix the shell script! - 2064 entries

Fix the shell script with the fewest keystrokes!

HS Final exam vimgolf - 864 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