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 - 1661 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: #163 / 348
  • Number of attempts: 7
simple replacements - 1753 entries

The goal is to see the replacement commands in action.

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

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

  • Best score: 38
  • Best player score: 45
  • Position: #37 / 98
  • Number of attempts: 6
Python dataclasses - 1127 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 23
  • Position: #127 / 283
  • Number of attempts: 7
HS Final exam vimgolf - 897 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: #152 / 236
  • Number of attempts: 1
ssh config skills - 256 entries

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

  • Best score: 41
  • Best player score: 122
  • Position: #62 / 65
  • Number of attempts: 1
Rural Post - 4479 entries

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

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

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

  • Best score: 8
  • Best player score: 9
  • Position: #166 / 304
  • Number of attempts: 6
xrandr outputs and dashes - 704 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 / 221
  • Number of attempts: 7
Simple, Practical, and Common - 33612 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 / 7416
  • Number of attempts: 5
prepend * to every non-blank line - 6308 entries

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

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1328 / 3860
  • Number of attempts: 8
Add semicolons - 10850 entries

Simply add a semicolon at the end of each line

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

Create a box around a line.

  • Best score: 21
  • Best player score: 37
  • Position: #1672 / 1875
  • Number of attempts: 1

Contributed Challenges

Fix the shell script! - 2544 entries

Fix the shell script with the fewest keystrokes!

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