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

simple replacements - 685 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #31 / 162
  • Number of attempts: 7
HS Final exam vimgolf - 578 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: #95 / 156
  • Number of attempts: 1
ssh config skills - 173 entries

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

  • Best score: 41
  • Best player score: 122
  • Position: #41 / 42
  • Number of attempts: 1
Rural Post - 3807 entries

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

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

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

  • Best score: 8
  • Best player score: 9
  • Position: #125 / 190
  • Number of attempts: 6
xrandr outputs and dashes - 572 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 / 185
  • Number of attempts: 7
Simple, Practical, and Common - 32781 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 / 7242
  • Number of attempts: 5
prepend * to every non-blank line - 5829 entries

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

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1289 / 3770
  • Number of attempts: 8
Add semicolons - 10467 entries

Simply add a semicolon at the end of each line

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

Create a box around a line.

  • Best score: 21
  • Best player score: 37
  • Position: #1629 / 1830
  • Number of attempts: 1

Contributed Challenges

HS Final exam vimgolf - 578 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 11 challenges

contributed 1 challenges